doctl

DigitalOcean 命令行客户端

补充说明

doctl 管理 DigitalOcean 的 Droplet、Kubernetes、数据库、App Platform 等资源。它使用 API token 认证,支持多 context 和 JSON 输出。

常用示例

doctl auth init
doctl auth list
doctl account get
doctl compute droplet list
doctl compute droplet create web \
  --image ubuntu-24-04 --size s-1vcpu-1gb --region sgp1
doctl compute droplet delete <droplet-id>
doctl kubernetes cluster list
doctl kubernetes cluster kubeconfig save my-cluster
doctl databases list
doctl apps list
doctl compute region list
doctl compute size list

易错点与排错

相关命令