equinix is the command line interface (CLI) for interacting with Equinix resources and services.
Equinix CLI releases contain precompiled binaries for a variety of operating systems and architectures.
- Download the appropriate zip archive for your platform from the desired Equinix CLI release
- Run
unzip <zip file name>to expand the zip archive you downloaded - You can run the command immediately as
./equinixor, if you prefer,cp equinix <directory>where<directory>is a location on your local filesystem that is already included in yourPATH.
If you prefer, you can also install equinix with Homebrew by running the following commands:
brew tap equinix/homebrew-tap
brew install equinixThe full CLI documentation can be found in the docs directory.
The CLI uses reflection to automatically register commands from the Equinix SDK. This approach:
- Automatically discovers all API services in the SDK client
- Generates commands for each service and method at build time
- Reduces maintenance - new SDK services are automatically available
- Ensures consistency - command structure mirrors the SDK structure
To onboard a new Equinix service (e.g., fabricv5), use the onboard target:
make onboard SERVICE=fabricv5This will scaffold:
cmd/<service>.go- Command registrationinternal/api/<service>.go- API client setupcmd/descriptions/<service>.json- Field descriptions to embed for help
After scaffolding, you'll need to:
- Review and adjust the generated files
- Ensure the SDK package exists in
github.com/equinix/equinix-sdk-go/services/<service> - Run
make buildto verify the integration
make buildmake lintmake docs