metalctl
metalctl is the command line client to access the metal-api.
Installation
Download locations:
Installation on Linux
curl -LO https://github.com/metal-stack/metalctl/releases/download/v0.8.3/metalctl-linux-amd64
chmod +x metalctl-linux-amd64
sudo mv metalctl-linux-amd64 /usr/local/bin/metalctl
Installation on MacOS
curl -LO https://github.com/metal-stack/metalctl/releases/download/v0.8.3/metalctl-darwin-amd64
chmod +x metalctl-darwin-amd64
sudo mv metalctl-darwin-amd64 /usr/local/bin/metalctl
Installation on Windows
curl -LO https://github.com/metal-stack/metalctl/releases/download/v0.8.3/metalctl-windows-amd64
copy metalctl-windows-amd64 metalctl.exe
metalctl update
In order to keep your local metalctl
installation up to date, you can update the binary like this:
metalctl update check
latest version:v0.8.3 from:2020-08-13T11:55:14Z
local version:v0.8.2 from:2020-08-12T09:27:39Z
metalctl is not up to date
metalctl update do
# a download with progress bar starts and replaces the binary. If the binary has root permissions please execute
sudo metalctl update do
# instead
Built from project
make
sudo ln -sf $(pwd)/bin/metalctl /usr/local/bin/metalctl
Configuration
Set up auto-completion for metalctl
, e.g. add to your ~/.bashrc
:
source <(metalctl completion bash)
Set up metalctl
config, by first creating the config folder (mkdir -p ~/.metalctl
), then set the values according to your installation in ~/.metalctl/config.yaml
:
---
current: prod
contexts:
prod:
url: https://api.metal-stack.io/metal
issuer_url: https://dex.metal-stack.io/dex
client_id: metal_client
client_secret: 456
hmac: YOUR_HMAC
Available commands
Full documentation is generated out of the cobra command implementation with:
metalctl markdown
generated markdown is here and here
Page Tree
- metalctl
- metalctl
- metalctl completion
- ~/.bashrc or ~/.profile
- metalctl context
- metalctl context short
- metalctl firewall
- metalctl firewall create
- metalctl firewall describe
- metalctl firewall destroy
- metalctl firewall list
- metalctl firewall reserve
- metalctl image
- metalctl image apply
- metalctl image create
- metalctl image delete
- metalctl image describe
- metalctl image edit
- metalctl image list
- metalctl image update
- metalctl login
- metalctl machine
- metalctl machine console
- metalctl machine create
- metalctl machine describe
- metalctl machine destroy
- metalctl machine identify
- metalctl machine identify off
- metalctl machine identify on
- metalctl machine ipmi
- metalctl machine issues
- metalctl machine list
- metalctl machine lock
- metalctl machine logs
- metalctl machine power
- metalctl machine power bios
- metalctl machine power off
- metalctl machine power on
- metalctl machine power reset
- metalctl machine reinstall
- metalctl machine reserve
- metalctl markdown
- metalctl network
- metalctl network allocate
- metalctl network apply
- metalctl network create
- metalctl network delete
- metalctl network describe
- metalctl network free
- metalctl network ip
- metalctl network ip allocate
- metalctl network ip apply
- metalctl network ip edit
- metalctl network ip free
- metalctl network ip issues
- metalctl network ip list
- metalctl network list
- metalctl network prefix
- metalctl network prefix add
- metalctl network prefix remove
- metalctl partition
- metalctl partition apply
- metalctl partition capacity
- metalctl partition create
- metalctl partition delete
- metalctl partition describe
- metalctl partition edit
- metalctl partition list
- metalctl partition update
- metalctl project
- metalctl project apply
- metalctl project create
- metalctl project describe
- metalctl project edit
- metalctl project list
- metalctl project remove
- metalctl size
- metalctl size apply
- metalctl size create
- metalctl size delete
- metalctl size describe
- metalctl size edit
- metalctl size list
- metalctl size try
- metalctl size update
- metalctl switch
- metalctl switch detail
- metalctl switch edit
- metalctl switch list
- metalctl switch replace
- metalctl switch update
- metalctl update
- metalctl update check
- metalctl update do
- metalctl whoami
- metalctl zsh-completion