metal-cli icon indicating copy to clipboard operation
metal-cli copied to clipboard

Base URL alternative should be configurable via the environment

Open displague opened this issue 3 years ago • 2 comments

Alternate base URLs, such as the legacy https://api.packet.net/, may be useful during testing. A --metal-api-base-url argument (for example) would allow a user to override this value. Through Viper, this variable would also be environment and configuration file configurable.

Related packngo issue: https://github.com/packethost/packngo/issues/322

displague avatar Feb 22 '22 16:02 displague

https://github.com/equinix/metal-cli/blob/main/cmd/cli.go#L55 could take a cobra/viper config value.

displague avatar Sep 15 '22 16:09 displague

Today, there was a temporary outage of api.equinix.com that did not affect api.packet.net. The ability to toggle can be handy.

displague avatar Nov 07 '22 18:11 displague