Installation workflows
Install Cortex CLI using a package manager, manual download, or the Cortex Cloud interface.
Choose the installation workflow that fits your environment.
Install through a package manager
Using a package manager is the recommended method for installing the Cortex CLI. Use Homebrew for macOS and Linux, or Scoop for Windows.
Homebrew for macOS and Linux
Supported on macOS, Apple Silicon and Intel, and Linux, x86_64 and arm64.
Requires Homebrew.
Standard installation
brew tap paloaltonetworks/cortexcli
brew install cortexcli
cortexcli --versionPin a specific version (optional)
If your workflow requires a specific version, use one of these methods.
Pin a release line
For example, stay on the 0.18.x release line.
This locks the CLI to a minor version. Security patches continue automatically.
Pin an exact version
For example, install exactly 0.18.0.
This locks the CLI to one build. It prevents automatic updates.
Scoop for Windows
Supported on Windows x64.
Requires Scoop.
Standard installation
Install a specific version (optional)
If your workflow requires a specific version, use:
Manual download
You can manually download the binaries for macOS, Linux, or Windows.
Download the archive from the releases page. Verify it against SHA256SUMS, then extract it.
Download
Download the .tar.gz archive for your architecture
Download the .zip archive
Extract
The executable is named cortexcli
The executable is named cortexcli.exe
Add to PATH
Move cortexcli to a directory such as /usr/local/bin/
Move cortexcli.exe to a dedicated folder. Add that folder to Environment Variables
UI-based installation
Install the CLI directly from your Cortex tenant. The UI generates a tenant-specific command that downloads and authenticates the binary.
Generate the installation command
Navigate to Settings → Data Sources → + Data Source.
Search for Cortex CLI.
Select Connect or Connect Another Instance on the Cortex CLI card.
In Configure, select your operating system. Then click Next.
In Authenticate, generate an API key.
Select With upload results permissions to create a CLI View/Edit role.
Otherwise, the key receives a CLI Read Only role with CLI View permissions.
Save the generated API Key ID and API key.
Copy the command from Retrieve your API key.
Verify the key appears in the API Keys inventory.
Download the CLI
Before you run the command, replace any placeholders with your credentials:
Replace
${API_KEY}with the saved API key.If needed, copy the API URL from Settings → Configurations → API Keys.
Paste the completed command into your terminal. Then press Enter.
The generated command follows this syntax:
This securely connects to your specific Cortex tenant ($CORTEX_FQDN) and downloads the cortexcli application directly to your current folder.
Configure credentials before running scans. See Authenticate credentials.
Last updated
Was this helpful?
