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.
Projects
Section titled “Projects”List Projects
Section titled “List Projects”dg projects --listSwitch Project
Section titled “Switch Project”dg projects --set-default <project-id>
dg projects --currentAPI Keys
Section titled “API Keys”List Keys
Section titled “List Keys”dg keys --listCreate Key
Section titled “Create Key”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.
Delete Key
Section titled “Delete Key”dg keys --delete <key-id>Use --dry-run to preview:
dg keys --delete <key-id> --dry-runTeam Members
Section titled “Team Members”List Members
Section titled “List Members”dg members --list
dg members --invites # Pending invitesInvite Member
Section titled “Invite Member”dg members --invite user@example.com --scope adminAvailable scopes: owner, admin, member. See Working With Roles & API Scopes.
Remove Member
Section titled “Remove Member”dg members --remove <member-id> --yes
dg members --revoke-invite user@example.com --yesView Usage
Section titled “View Usage”dg usage
dg usage --start-date 2024-01-01 --end-date 2024-01-31
dg usage --current-monthExport Usage
Section titled “Export Usage”-o belongs to dg itself, so it goes before the subcommand name:
dg -o json usage > usage.json
dg -o csv usage > usage.csvBilling
Section titled “Billing”View Balance
Section titled “View Balance”dg billing
dg billing --balancesDirect API Access
Section titled “Direct API Access”Use dg api to call any Deepgram API endpoint. The endpoint is positional; set the method with -X and body fields with -f:
dg api /v1/projects
dg api -X POST /v1/listen -f url=https://example.com/audio.mp3Authentication is handled automatically.