do-cli

Manage DigitalOcean authentication, contexts, and output formats via doctl CLI.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/tomz/agent-skills --skill do-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: do-cli
Source: https://github.com/tomz/agent-skills/tree/main/do-cli
Command: npx skills add https://github.com/tomz/agent-skills --skill do-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplifies and standardizes using the DigitalOcean CLI (doctl) to manage authentication, contexts, and output formats, helping engineers script cloud operations reliably.

Core Features & Use Cases

  • Authentication patterns including interactive init and token-based access for multiple accounts
  • Context management with named contexts and one-off commands to target specific DO accounts
  • Output formatting controls (table, json, yaml) to fit scripting, logging, and automation
  • Guidance for common core subcommands and resource workflows across droplets, databases, networks, and more

Quick Start

Authenticate to DigitalOcean with doctl and list droplets to verify access.

Frequently Asked Questions about do-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate doctl with multiple DigitalOcean accounts?

Use doctl auth init to authenticate with your DigitalOcean API token, which creates a standard config file at ~/.config/doctl/config.yaml. This establishes reliable access for managing droplets, databases, and networks via the CLI.

How do I format doctl output for scripting and automation?

Control doctl output formatting by specifying json, yaml, or table formats to fit scripting and logging needs. Consistent output formats ensure reliable parsing when automating cloud operations across DigitalOcean resources like droplets and databases.

Can I run doctl commands against a specific DigitalOcean account without switching contexts?

Yes, you can execute doctl commands against a specific DigitalOcean account using one-off commands to target specific DO accounts without permanently switching contexts. This simplifies multi-account workflows requiring isolated actions.

Where does doctl store its configuration and authentication tokens?

doctl stores its configuration and authentication tokens in a standard config file at ~/.config/doctl/config.yaml. This centralized configuration file manages context settings and token management for consistent automated workflows.

What DigitalOcean resources can I manage using doctl automation?

Using doctl automation, you can manage DigitalOcean resources including droplets, databases, and networks. The CLI provides documented core subcommands and resource workflows to script cloud operations reliably across these services.