Cortex CLI usage
Run Cortex CLI scans with global flags and module-specific options.
Run a Cortex CLI scan
Run scans with this command structure:
cortexcli [global flags] [module name] scan [module flags]Place global flags before the module name. Place module flags after scan.
Command components
cortexcli— The Cortex CLI binary.Global flags — Apply across supported modules. Place them between
cortexcliand the module name.--api-base-url <value>--api-key <value>--api-key-id <value>
AppSec and CWP support additional global flags. WAAS does not. See the Cortex CLI common command line reference guide.
Module name — Select the environment to scan.
api— API Security. See Cortex CLI for API Security.image— Cloud Workload Protection (CWP). See Cortex CLI for Cloud Workload Protection.code— Cortex Cloud Application Security. See Cortex CLI for Code Security.
Examples
Global flags
Global flags apply to all modules. Place them between cortexcli and the module name.
Global flags for AppSec and CWP
Upload mode, exit-code handling, and log output are not supported by WAAS.
Cortex Cloud Application Security scan
Scan source code for IaC misconfigurations, SCA vulnerabilities, and secrets:
Cloud Workload Protection scan
Scan a container image for vulnerabilities:
API Security scan
Scan APIs for security issues. Global flags (other than authentication) are not supported:
Last updated
Was this helpful?
