Skip to main content
The costgraph command line tool queries your costs and runs the CI and Terraform cost comments from a terminal or any CI system. It runs on macOS and Linux.

Install

To update later, run brew upgrade costgraph.
Check the install with costgraph version.

Sign in

Your browser opens CostGraph. Sign in, pick the tenant to work in, and approve the CLI. costgraph auth status shows who you are signed in as and which tenant you are using. To switch tenants, run costgraph tenant use.

In CI

Skip the browser sign-in and use an API key. Create one under Settings > API keys with the focus:read scope, store it as a secret, and expose it to the job:
In GitHub Actions, the CostGraph actions install the CLI for you.

Where it is used

Run costgraph --help, or --help after any command, for every command and flag.