Manage the CLI after installation
Upgrade, pin, uninstall, or update Cortex CLI through automated downloads.
Manage Cortex CLI with a package manager or download script. Use either method in CI/CD pipelines or local environments.
Package managers
macOS and Linux
Upgrade to the latest version
brew upgrade cortexcliPin the installed version
brew pin cortexcliUninstall the CLI
brew uninstall cortexcli
Windows
Upgrade to the latest version
scoop update cortexcliPrevent upgrades
scoop hold cortexcliAllow upgrades again
scoop unhold cortexcliUninstall the CLI
scoop uninstall cortexcli
Automate binary downloads
Use this script for a manual installation. It downloads the latest release for your operating system and architecture. Replace your existing binary with the downloaded file. On macOS and Linux, make it executable with chmod +x.
Replace the placeholders
CORTEX_API_KEY: Your API key<CORTEX_API_URL>: Your tenant API base URL<AUTH_ID>: Your API key ID value<OS>: Your operating system —linux,darwin, orwindows<ARCH>: Your system architecture — such asamd64orarm64
For credential configuration options, see Authenticate credentials.
How the script works
The script:
Requests a signed download link from Cortex Cloud for the latest release matching your OS and architecture.
Uses
jqto extract the signed URL and binary filename.Downloads the binary from the signed URL.
Last updated
Was this helpful?
