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
- Homebrew
- Script
- Manual
brew upgrade costgraph.costgraph version.
Sign in
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 thefocus:read scope, store it as a secret, and expose it to the job:
Where it is used
Runcostgraph --help, or --help after any command, for every command and flag.