> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli.md).

# Cortex CLI

- [About Cortex CLI](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli.md): The Cortex CLI is a unified command-line tool integrating Cloud Workload Protection, API Security, and Code Security scans into a single executable.
- [Connect Cortex CLI](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/connect-cortex-cli.md): Install Cortex CLI, configure authentication, and review module requirements.
- [Installation workflows](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/connect-cortex-cli/installation-workflows.md): Install Cortex CLI using a package manager, manual download, or the Cortex Cloud interface.
- [Manage the CLI after installation](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/connect-cortex-cli/manage-the-cli-after-installation.md): Upgrade, pin, uninstall, or update Cortex CLI through automated downloads.
- [Authenticate credentials](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/connect-cortex-cli/authenticate-credentials.md): Configure Cortex CLI credentials using a file, environment variables, or command-line flags.
- [Self-service API keys for CLI scans](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/connect-cortex-cli/self-service-api-keys-for-cli-scans.md): Create role-restricted API keys for Cortex CLI and IDE scans.
- [Cortex CLI usage](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-usage.md): Run Cortex CLI scans with global flags and module-specific options.
- [Cortex CLI common command line reference guide](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-common-command-line-reference-guide.md): Reference common and global flags for Cortex CLI scans.
- [Cortex CLI for Code Security](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security.md): Run Code Security scans for secrets, IaC, and third-party dependencies.
- [Cortex CLI usage for Cortex Cloud Application Security](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-usage-for-cortex-cloud-application-security.md): Run Cortex Cloud Application Security scans and configure scan output.
- [Cortex CLI Cortex Cloud Application Security command line reference](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-cortex-cloud-application-security-command-line-reference.md): Reference commands and flags for Cortex Cloud Application Security scans.
- [Custom Cortex checks and signature verification](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-cortex-cloud-application-security-command-line-reference/custom-cortex-checks-and-signature-verification.md): Load custom Cortex checks and optionally verify their signatures.
- [Cortex CLI pre-commit hooks](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-pre-commit-hooks.md): Integrate Application Security secrets scanner as pre-commit hooks into your workflows to scan for errors on your machine before local commits.
- [Pre-commit hook usage](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-pre-commit-hooks/pre-commit-hook-usage.md): Configure pre-commit hooks for local secrets scans and suppression.
- [Cortex CLI pre-receive hooks](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-pre-receive-hooks.md): Integrate the Application Security secrets scanner as a pre-receive hook into your workflows to scan for errors before code is accepted into your repository.
- [Pre-receive hook usage](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-code-security/cortex-cli-pre-receive-hooks/pre-receive-hook-usage.md): Configure pre-receive hooks for server-side secrets scans.
- [Cortex CLI for Cloud Workload Protection](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-cloud-workload-protection.md): Scan container images and export SBOMs with Cloud Workload Protection.
- [Cloud Workload Protection command line reference](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-cloud-workload-protection/cloud-workload-protection-command-line-reference.md): Reference Cloud Workload Protection commands and flags for image scans.
- [Cortex CLI for API Security](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-api-security.md): Scan APIs for vulnerabilities and misconfigurations using Cortex CLI.
- [Cortex CLI API Security command line reference guide](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-api-security/cortex-cli-api-security-command-line-reference-guide.md): Reference commands and flags for Cortex CLI API Security scans.
- [API Security scan report schema](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-api-security/api-security-scan-report-schema.md): Reference schema for API Security scan reports.
- [API Security scan output example](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli/cortex-cli-for-api-security/api-security-scan-output-example.md): Example API Security scan report output.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/cortex-cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
