Switch contexts (API tokens)

doctl auth

  • Authenticate doctl with one or more API tokens.
    More information: <https://docs.digitalocean.com/reference/doctl/reference/auth/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

doctl auth switch --context {{token_label}}

click the source code to copy install doctl auth on any operating system with command-not-found.com