CLI Reference

Command Flags

Complete reference of all Cloudsploit command-line flags. Configure scan scope, output, performance, and advanced options.

Basic Scan Command

The basic structure of a Cloudsploit scan:

bash
1cloudsploit scan [provider] [options]

Info

Omit the provider to scan all configured cloud accounts, or specify one or more: aws, azure, gcp

Scan Control Flags

FlagArgumentsDescription
--provider / -p[aws|azure|gcp|all]Cloud provider to scan (default: all configured)
--regions / -rcomma,separated,listSpecific regions to scan (AWS/Azure/GCP)
--exclude-regionscomma,separated,listRegions to skip
--services / -scomma,separated,listOnly scan specific services (e.g., s3,ec2,iam)
--exclude-servicescomma,separated,listSkip specified services
--suppressDETECTOR_ID1,DETECTOR_ID2Suppress specific detector IDs (comma-separated)
--suppress-file/path/to/file.txtFile containing detector IDs to suppress (one per line)
--severitycritical,high,medium,lowOnly report findings at or above this severity
--output / -o[table|json|csv|html|junit]Output format (default: table)
--outfile/path/to/file.extWrite output to specified file
--config/path/to/config.jsonPath to custom configuration file
--profileprofile_nameAWS/Azure profile name to use
--account-name"Account Label"Friendly name for cloud account in reports
--threads / -tNUMBERNumber of concurrent scan threads (default: 10)
--timeoutMILLISECONDSAPI call timeout (default: 30000)
--retryNUMBERNumber of retries for failed API calls (default: 3)
--rate-limitNUMBERAPI calls per second limit per region
--quickRun quick scan with common detectors only
--comprehensiveRun all detectors across all regions
--compliance[cis|nist|pci|hipaa]Run compliance-specific checks only
--dry-runShow what would be scanned without executing
--list-detectorsList all available detectors and exit
--list-resourcesList discovered resources without scanning
--help / -hShow help message
--version / -vShow version number

Global Flags

These flags apply to all Cloudsploit commands:

FlagArgumentsDescription
--verbose / -vEnable verbose logging (show API calls, debug info)
--quiet / -qSuppress non-essential output (only show findings)
--no-colorDisable colored output in terminal
--log-file/path/to/cloudsploit.logWrite detailed logs to specified file
--proxyhttp://proxy:portHTTP proxy for API calls
--ca-cert/path/to/cert.pemCustom CA certificate bundle

Common Combinations

Practical examples combining multiple flags:

Quick AWS Audit

bash
1cloudsploit scan aws --quick --output html --outfile audit.html

Fast scan with common detectors, HTML report output

Production Scan (All AWS Regions)

bash
1cloudsploit scan aws --severity high,critical --threads 20 --output json --outfile prod-scan.json

Only high/critical findings, multi-threaded, JSON output

CI/CD Pipeline Scan

bash
1cloudsploit scan aws --compliance cis --output junit --outfile results.xml --quiet

CIS compliance only, JUnit for CI integration, minimal output

Exclude Known Safe Resources

bash
1cloudsploit scan aws --suppress-file ~/cloudsploit/suppressions.txt --exclude-regions us-gov-*

Skip known false positives and government regions