LinuxCommandLibrary

doctl-balance

retrieve DigitalOcean account billing balance

TLDR

Get account balance

$ doctl balance get
copy
Get balance in JSON format
$ doctl balance get --output json
copy

SYNOPSIS

doctl balance command [options]

DESCRIPTION

doctl balance retrieves billing balance information for your DigitalOcean account. It shows the current balance, month-to-date usage, and account balance as of the last invoice.
The command provides a quick way to check spending and remaining credits without accessing the web console. This is useful for monitoring costs in automated workflows or scripts.
Balance information includes prepaid credits, current usage, and any outstanding charges.

PARAMETERS

COMMAND

Operation: get.
get
Retrieve current account balance.
--output FORMAT
Output format: text, json.
--help
Display help information.

CAVEATS

Balance updates may have slight delay. Does not show detailed cost breakdown. Requires account with billing access.

HISTORY

doctl balance is part of the doctl CLI, providing programmatic access to DigitalOcean billing information for account monitoring and cost management.

SEE ALSO

doctl(1), doctl-auth(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community