# doctl auth – DigitalOcean Documentation > The `doctl auth` commands allow you to authenticate doctl for use with your DigitalOcean account using tokens that you generate in the control panel at https://cloud.digitalocean.com/account/api/tokens. If you work with a just one account, call `doctl auth init` and supply the token when prompted. This creates an authentication context named `default`. To switch between multiple DigitalOcean accounts, including team accounts, create named contexts using `doctl auth init --context `, then providing the applicable token when prompted. This saves the token under the name you provide. To switch between contexts, use `doctl auth switch --context `. To remove accounts from the configuration file, run `doctl auth remove --context `. This removes the token under the name you provide. - [doctl auth init](https://docs.digitalocean.com/reference/doctl/reference/auth/init/index.html.md): This command allows you to initialize doctl with a token that allows it to query and manage your account details and resources. The command requires and API token to authenticate, which you can generate in the control panel at … - [doctl auth list](https://docs.digitalocean.com/reference/doctl/reference/auth/list/index.html.md): List named authentication contexts that you created with `doctl auth init`. To switch between the contexts use `doctl auth switch --context `, where `` is one of the contexts listed. To create new contexts, see the help for `doctl auth init`. - [doctl auth remove](https://docs.digitalocean.com/reference/doctl/reference/auth/remove/index.html.md): This command allows you to remove authentication contexts you've already created. To see a list of available authentication contexts, call `doctl auth list`. For details on creating an authentication context, see the help for `doctl auth init`. - [doctl auth switch](https://docs.digitalocean.com/reference/doctl/reference/auth/switch/index.html.md): This command allows you to switch between authentication contexts you've already created. To see a list of available authentication contexts, call `doctl auth list`. For details on creating an authentication context, see the help for `doctl auth init`. - [doctl auth token](https://docs.digitalocean.com/reference/doctl/reference/auth/token/index.html.md): Display the current authentication context's token that you created with `doctl auth init`. To switch between the contexts use `doctl auth switch --context `, where `` is one of the contexts from: `doctl auth list` To create new contexts, see the help for …