mctl is a CLI utility to interact with the metal-automata ecosystem of services.
- Install the latest available version using
go install github.com/metal-automata/mctl@latest. Please note themctlbinary will install in thebindirectory of your$GOPATH. - Create a configuration file as
.mctl.yml, for sample configuration files checkout samples/mctl.yml. - Export
MCTLCONFIG=~/.mctl.yml.
For the updated list of all commands available, check out the CLI docs
- Create hardware vendor, model records -
mctl create hardware-model --vendor-name ace --model-name s551 - Import list of servers (note this requires the hw vendor, model to be created) -
mctl create server --from-file samples/lab-servers.json - Get component information on a server -
mctl get component --server-id <> - List available firmware -
mctl list firmware - List firmware sets -
mctl list firmware-set - Retrieve information about a firmware -
mctl get firmware --id <> - Install a firmware set on a server -
mctl install firmware-set --server <> - Import firmware, firmware-set from file -
mctl create firmware-set --from-file samples/fw-set.json, where the JSON file contents is the output ofmctl list firmware-set