🌊
Cloud CLI

DigitalOcean CLI

Manage DigitalOcean droplets, K8s, and DNS from terminal

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

doctl manages DigitalOcean droplets, Kubernetes clusters, and DNS from the command line.

📥

Step 01

Install DigitalOcean CLI

(01)Install DigitalOcean CLI

Linux
1cd ~ && wget https://github.com/digitalocean/doctl/releases/download/v1.104.0/doctl-1.104.0-linux-amd64.tar.gz
2tar xf doctl-1.104.0-linux-amd64.tar.gz && sudo mv doctl /usr/local/bin/
⚙️

Step 02

Configure DigitalOcean CLI

(01)Configure DigitalOcean CLI

Linux
1doctl auth init
2# Paste API token from cloud.digitalocean.com/account/api/tokens

Step 03

Verify

(01)Verify installation

Linux
1doctl account get
2doctl compute droplet list