Forrest logo
back to the doctl tool

doctl-balance:tldr:92d13

doctl-balance: Get the balance of an account associated with an access token.
$ doctl balance get --access-token ${access_token}
try on your machine

This command is a command-line instruction for the "doctl" utility, which is a command-line interface (CLI) for managing resources in DigitalOcean, a cloud infrastructure provider.

The specific command is doctl balance get, which is used to retrieve the account balance associated with your DigitalOcean account. It fetches information about your current account balance, including the available credits, pending credits, and the total balance.

The --access-token flag is used to authenticate your request. In this command, the ${access_token} is a placeholder indicating that you need to replace it with your actual DigitalOcean access token. An access token is a unique authorization key that verifies your identity and permissions to access and manage resources on a DigitalOcean account.

So, when you run this command and replace ${access_token} with your real DigitalOcean access token, it will retrieve and display your account balance information in the command-line interface.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the doctl tool