Skip to main content
Version: 4.0.0-preview

Costs

Estimate, compare, and optimize cloud deployment costs across major providers.

expressots costs <action> [options]
# aliases
expressots cost ...
expressots pricing ...

The pricing data behind these commands is updated independently from the CLI. See Pricing Data Management for sources and overrides.

Actions

ActionPurpose
estimateEstimate monthly cost for a single provider.
compareCompare every supported provider for the same workload.
optimizeRecommend cost-saving changes (right-sizing, region selection, reserved instances).
pricingPrint the underlying per-resource prices for a provider.
updateRefresh the local pricing cache from the remote pricing index.
infoShow the active pricing data version and where it came from (API / remote JSON / local).

Supported providers

aws, gcp, azure, railway, render, fly, digitalocean, heroku.

Options

OptionAliasDefaultDescription
--provider-p(none)One of the providers above.
--service-s(auto)Specific service tier (e.g. aws-fargate).
--instances-i1Number of instances.
--cpu-c1CPU cores per instance.
--memory-m1Memory in GB per instance.
--storage10Storage in GB.
--bandwidth100Outbound bandwidth in GB / month.
--region-rus-east-1Region (provider-specific names).
--hours720Hours per month (use 730 for full month).
--formattexttext / json.
--output-ostdoutWrite the report to a file.

Examples

# Estimate AWS Fargate for a small app
expressots costs estimate aws --cpu 1 --memory 2

# Compare every provider for the same workload
expressots costs compare --cpu 2 --memory 4 --bandwidth 250

# Optimize my current setup
expressots costs optimize --provider aws

# Print AWS pricing detail
expressots costs pricing aws

# Refresh pricing data
expressots costs update

Output

compare produces a side-by-side cost table:

Workload: 2 vCPU / 4 GB / 250 GB egress / us-east-1 / 730 h

Provider Service Compute Storage Egress Total
-------------- ---------------------- ----------- ---------- ---------- ----------
railway Pro $40.00 $0.25 $9.00 $49.25
render Standard $42.00 $0.50 $9.00 $51.50
fly shared-cpu-2x $50.40 $0.15 $5.00 $55.55
digitalocean App Platform Pro $58.00 $0.10 $0.00 $58.10
gcp Cloud Run $61.00 $0.20 $12.00 $73.20
azure Container Apps $68.00 $0.18 $11.00 $79.18
aws Fargate $72.00 $0.23 $22.50 $94.73
heroku Performance-M $250.00 $0.00 $0.00 $250.00
Pricing accuracy

Cloud pricing changes constantly. Run expressots costs update regularly, and treat the output as an estimate. Always verify in the provider's calculator before committing to a deployment.

See also

  • Pricing Data Management: sources, cascading fallback, and contributing pricing corrections.
  • migrate: once you've chosen a target, generate the migration scaffold.