metal-cli-v0.6.0
The Packet CLI is now the Equinix Metal CLI.
metal init
will now configure your token and default project. This saves time when running commands, like metal device list
, which previously required the project UUID as an argument. This new config file sets the groundwork for other tools to take advantage of a default token, organization, and project ID. Any common argument, such as metro, device plan, or operating system, can be predefined in the config file.
Some arguments and the config file have changed (now ~/.config/equinix/metal.yaml
). Notably, use -o json
rather than -j
, -o yaml
rather than -y
. Inconsistently used flags have been modified for more consistency. Use metal help
and metal help [command]
for detailed usage arguments.
This is a semver 0.x release. Check with the changelog when updating. More changes (including breaking changes) may be introduced on the way to 1.0.0.
Build the package with go or download the binary for your OS.
Breaking Changes
- #101 The URL of the project and package is now github.com/equinix/metal-cli.
- #124 Package and binary renamed from
packet
tometal
The default git branch is nowmain
- #111 short flags have been changed from
packet-cli
. Check the help for each command. - #126
METAL_AUTH_TOKEN
environment now overrides the config file settings - #132 Volume support has been removed
Features
- #54 added
metal init
defaults can now be set for arguments via config file.
EnvironmentMETAL_PROJECT
can be used to override the default project (when set). - #121 added optional
--tags
for elastic IP request
Improvements
- #150 go/ci/makefile: update to use go 1.16 and fixes on makefile and ci files
- #148 docs: add support page that was referenced but missing
- #149 readme: update table of contents
- #33 Variable scoping is clearer
- #120 dont hide docs,env,completion commands
Thanks go to @cpanato, @jmarhee, @deitch, @mdemeke, @JT804, @desmondpare1, and @eeelijah-333 for helping to prepare and providing feedback on the prereleases leading up to this release.