Requirements
Thecostgraph recommendations commands need a signed-in CLI session. They don’t accept API keys. Refer to Install and sign in. costgraph recs is a shorter name for the same commands.
List recommendations
The following command lists recommendations for virtual machines, largest savings first.
In a script or pipe, the command prints a static table. Each row includes the resource, provider, region, current and recommended shape, and monthly savings.
Kubernetes node recommendations
Recommendations cover virtual machines by default. Add--type kubernetes_node for Kubernetes nodes.
Pagination
The command returns 50 rows by default. Use--limit for up to 200 rows, --offset to skip rows, or --all to fetch every page.
Filter recommendations
costgraph recommendations list and costgraph recommendations summary accept the same filters. Separate several values with commas.
The following command lists high-confidence downsizing and termination recommendations on AWS that save at least 50 US dollars a month.
--sort orders the list by savings_desc, the default, generated_at_desc, or generated_at_asc.
Total the savings
costgraph recommendations summary reports fleet totals for the same filters. The totals include savings, coverage, and the number of recommendations for each action.
-o json to use the totals in a report.
Command reference
Commands are shown without thecostgraph prefix. Add --help for the complete flag list.
Recommendation commands
These commands require a saved session.recs is an alias for recommendations.
Lists rightsizing recommendations. Opens a browser in a terminal, a table in pipes, or JSON with
-o json.Totals monthly savings, coverage, and recommendation counts by action. Does not apply changes.
Shared filters
Both commands accept these filters. Separate multiple values with commas.List pagination and sorting
Pass these flags tocostgraph recommendations list.