Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Account Management Commands

Account commands are flag-based: the action is a flag, not a subcommand. Run dg keys --help, dg projects --help, or dg members --help for the full set.

Shell
dg projects --list
Shell
dg projects --set-default <project-id>
dg projects --current
Shell
dg keys --list
Shell
dg keys --create --comment "ci-runner"
dg keys --create --comment "production" --scopes member --tags prod

--scopes takes comma-separated scope names and defaults to member. See Working With Roles & API Scopes for what each scope grants.

Shell
dg keys --delete <key-id>

Use --dry-run to preview:

Shell
dg keys --delete <key-id> --dry-run
Shell
dg members --list
dg members --invites   # Pending invites
Shell
dg members --invite user@example.com --scope admin

Available scopes: owner, admin, member. See Working With Roles & API Scopes.

Shell
dg members --remove <member-id> --yes
dg members --revoke-invite user@example.com --yes
Shell
dg usage
dg usage --start-date 2024-01-01 --end-date 2024-01-31
dg usage --current-month

-o belongs to dg itself, so it goes before the subcommand name:

Shell
dg -o json usage > usage.json
dg -o csv usage > usage.csv
Shell
dg billing
dg billing --balances

Use dg api to call any Deepgram API endpoint. The endpoint is positional; set the method with -X and body fields with -f:

Shell
dg api /v1/projects
dg api -X POST /v1/listen -f url=https://example.com/audio.mp3

Authentication is handled automatically.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu