digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.26k stars 397 forks source link

doctl didn't create $HOME/.doctlcfg file #83

Closed J3ffN0lan closed 8 years ago

J3ffN0lan commented 8 years ago

No sure why, but ran the following command after installing doctl using Homebrew (Mac OS, El Capitan, v10.11.5).

doctl auth login -t (my token)

Output: updated access token

But no .doctlcfg file was created in $HOME.

bryanl commented 8 years ago

This is a know issue. In the mean time, you can create a a file named .doctlcfg in home with the following contents:

access-token: <your access token>

or you can set DIGITALOCEAN_ACCESS_TOKEN in the your environment.

J3ffN0lan commented 8 years ago

Thanks, I figured either of the two options would work-around the issue, I couldn't locate the format of the .doctlcfg file though.

bryanl commented 8 years ago

Glad to be of help. Create more issues if you see any weirdness.