Linux command
doctl-balance 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Get current account balance
doctl balance get
Get balance in JSON format
doctl balance get --output json
Show only month-to-date usage
doctl balance get --format MonthToDateUsage
说明
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. The get subcommand (alias g) is the only available subcommand.
参数
- get
- Retrieve current account balance, month-to-date usage, and balance as of last invoice.
- --format _COLUMNS_
- Display specific columns (e.g., MonthToDateUsage, AccountBalance, MonthToDateBalance, GeneratedAt).
- --output _FORMAT_
- Output format: text or json.
- --help
- Display help information.
FAQ
What is the doctl-balance command used for?
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. The get subcommand (alias g) is the only available subcommand.
How do I run a basic doctl-balance example?
Run `doctl balance get` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does get do in doctl-balance?
Retrieve current account balance, month-to-date usage, and balance as of last invoice.