• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

doctl balance: Show the balance of a Digital Ocean account

by admin

The command “doctl balance” is a feature provided by the DigitalOcean command-line interface (CLI) tool, which allows you to interact with your DigitalOcean account from the command line. Specifically, the “doctl balance” command enables you to view the balance of your DigitalOcean account.

When you execute the “doctl balance” command, it retrieves information about the current balance of your DigitalOcean account. This balance represents the amount of funds available in your account that can be used to pay for services and resources provided by DigitalOcean, such as virtual machines (Droplets), storage volumes, databases, and other cloud-based services.

The output of the “doctl balance” command typically includes details about the account’s balance, which may include the currency used, the total amount available, and any pending charges or credits. This information helps you keep track of your account’s financial status and make informed decisions about resource allocation and usage on the DigitalOcean platform.

By using the “doctl balance” command, you can quickly check your DigitalOcean account’s balance without having to log in to the DigitalOcean web interface. This can be particularly useful when you want to monitor your account’s finances, budget your spending, or ensure that you have sufficient funds to cover your usage.

Please note that the specific output and format of the “doctl balance” command may vary based on updates and changes made to the DigitalOcean CLI tool. It’s always a good idea to consult the official documentation or run the command with the “–help” flag for the most up-to-date information and usage instructions.

doctl balance Command Examples

1. Get balance of the account associated with the current context:

# doctl balance get

2. Get the balance of an account associated with an access token:

# doctl balance get --access-token access_token

3. Get the balance of an account associated with a specified context:

# doctl balance get --context

Filed Under: Linux

Some more articles you might also be interested in …

  1. paccache Command Examples in Linux
  2. what does .tar file mean
  3. aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI
  4. radeontop Command Examples in Linux
  5. qsub Command Examples in Linux
  6. blackfire: A command-line profiling tool for PHP (Command Examples)
  7. How to uninstall steam from Ubuntu
  8. v4l2-ctl Command Examples in Linux
  9. loginctl: command not found
  10. usermod: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright