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:
# Sync all providers
infraudit cost sync

# Sync a specific provider
infraudit cost sync --provider aws

cost overview

Show a current cost summary across all connected providers:
infraudit cost overview

cost report

Fetch a cost report for a specific provider and time period. Synopsis:
infraudit cost report [flags]
FlagValuesDescription
--providerprovider IDFilter by provider
--period30d, 60d, 90dTime period for the report
Example:
infraudit cost report --provider 1 --period 30d
Show spend trends over time with optional provider and period filters:
# All providers, default period
infraudit cost trends

# AWS spend over the last 30 days
infraudit cost trends --provider aws --period 30d
FlagValuesDescription
--provideraws, gcp, azureFilter by provider type
--period7d, 30d, 90dHistorical period

cost forecast

Project future cloud spend based on historical usage patterns. Synopsis:
infraudit cost forecast [flags]
FlagValuesDescription
--providerprovider IDLimit forecast to one provider
--days30, 60, 90Forecast horizon in days
Example:
infraudit cost forecast --provider 1 --days 90

cost anomalies

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

cost detect-anomalies

Trigger a fresh anomaly detection run against current billing data:
infraudit cost detect-anomalies

cost optimizations

Show cloud resource optimization opportunities identified by InfraAudit:
infraudit cost optimizations

cost savings

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