Skip to main content
The cost command group provides cloud spend analytics: current costs, historical trends, forecasts, anomaly detection, and optimization recommendations. Billing data is pulled from provider APIs using cost sync.

cost sync

Pull the latest billing data from all connected cloud providers, or a specific one:

cost overview

Show a current cost summary across all connected providers:

cost report

Fetch a cost report for a specific provider and time period. Synopsis:
Example:
Show spend trends over time with optional provider and period filters:

cost forecast

Project future cloud spend based on historical usage patterns. Synopsis:
Example:

cost anomalies

List detected cost anomalies — unusual spikes or drops in spend that may indicate misconfiguration or unexpected usage:

cost detect-anomalies

Trigger a fresh anomaly detection run against current billing data:

cost optimizations

Show cloud resource optimization opportunities identified by InfraAudit:

cost savings

Show total potential savings across all identified optimization opportunities:
For AI-powered savings recommendations with estimated dollar amounts, use infraudit recommendation list --type cost.