← ClaudeAtlas

digitalocean-clilisted

Use the correct DigitalOcean CLI (doctl) context and region when running DigitalOcean commands based on the target environment.
abdullahkhawer/devops-skills · ★ 7 · DevOps & Infrastructure · score 78
Install: claude install-skill abdullahkhawer/devops-skills
# DigitalOcean CLI Skill When running `doctl` commands, always pass the `--context` flag based on the target environment, and specify the region explicitly for resource-creating commands. ## Configuration Update the context map below with your `doctl` auth context names: | Environment | Context | Default Region | |---|---|---| | Production | `<your-prod-context>` | `<your-prod-region>` (e.g. `nyc3`) | | Staging / Non-Prod | `<your-nonprod-context>` | `<your-nonprod-region>` (e.g. `sgp1`) | ### Prerequisites (one-time setup by user) If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself. ```bash brew install doctl doctl auth init --context <your-context-name> doctl auth list ``` ## Command Format ```bash doctl <resource> <command> --context <context> [--region <region>] [options] ``` ### Examples ```bash # Production doctl compute droplet list --context <your-prod-context> # Staging / Non-Prod doctl compute droplet list --context <your-nonprod-context> ``` ## Available Commands ### Read-only (safe, no confirmation needed) | Command pattern | Description | |---|---| | `doctl compute droplet list/get` | List or describe droplets | | `doctl compute domain list` | List DNS domains | | `doctl kubernetes cluster list/get` | List or describe Kubernetes clusters | | `doctl databases list/get` | List or describe managed databases | | `doctl monitoring alert-policy lis