digitalocean / digitalocean/doctl

doctl auth init flag --access-token do not have effect

Open
#1,176 9 comments 5 reactions 0 assignees View on GitHub
bug Needs Investigation
Dominant language
Go
Stars
3.4k
Forks
496
Avg merge
1d 2h
Merged PRs (30d)
31

Description

**flag -t or --access-token not overwriting token in config.yaml**

See images of the issue.
CLI does not use the token passed and always grab the one in the config.yaml
![api-portal](https://user-images.githubusercontent.com/54447877/171148293-807d26e2-b5e2-4565-9e2d-188acb3f4150.png)
![terminal](https://user-images.githubusercontent.com/54447877/171148300-d8b172c7-a99c-4155-aaba-7f3db4c57fd4.png)

**Environment:**

- doctl version: doctl version 1.76.2-release
- OS: macOS Monterey (although I think my ubuntu machines are affected too // 20.04.1 LTS (GNU/Linux 5.4.0-74-generic x86_64))
- Installation method: Homebrew (macOs, docker Ubuntu machines)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.