infraudit CLI is a single static binary that mirrors everything the web platform offers. You can connect cloud accounts, trigger scans, review findings, approve remediations, and pipe structured output to downstream tools — all without opening a browser.
What you can do with the CLI
- Log in once and let scripts reuse the stored session token
- Run drift detection, vulnerability scans, and compliance assessments on demand
- Fetch results as
table,json, oryamloutput - Integrate security gates into CI/CD pipelines using
--output jsonwithjq - Manage multiple InfraAudit instances by switching config files or setting
INFRAUDIT_SERVER_URL
Command groups
provider
Connect, sync, and disconnect AWS, GCP, and Azure accounts.
resource
List and inspect cloud resources discovered by provider syncs.
drift
Detect, list, and resolve infrastructure configuration drift.
vulnerability
Run vulnerability scans and review CVE findings by severity.
cost
View cost trends, forecasts, anomalies, and savings opportunities.
compliance
Run CIS, SOC2, NIST, PCI-DSS, and HIPAA assessments.
kubernetes
Register clusters and inspect workloads, pods, and services.
iac
Upload Terraform or CloudFormation files and detect IaC drift.
remediation
Approve, execute, and roll back automated fix actions.
recommendation
View AI-powered cost, security, and compliance suggestions.
alert
List, acknowledge, and resolve security and operational alerts.
webhook
Register and test outbound webhooks for InfraAudit events.
auth and config commands are covered in Authentication and Configuration.
Global flags
These flags apply to every command:| Flag | Short | Default | Description |
|---|---|---|---|
--server | from config | Override the API server URL for a single request | |
--output | -o | table | Output format: table, json, or yaml |
--config | ~/.infraudit/config.yaml | Path to the config file | |
--no-color | false | Disable colored terminal output | |
--help | -h | Show help for any command |
Output formats
The CLI supports three output formats. Switch between them with-o:
Table — human-readable columns, suitable for interactive use:
jq for filtering: