tfx login won't accept a Personal Access Token
See original GitHub issueAfter calling tfx login --service-url https://app.market.visualstudio.com
it asks for a Personal access token. I can’t do anything but press enter
key at this prompt. It won’t accept any characters nor will it accept the paste command from the window tools Edit/Paste
Installation was via npm install -g tfx-cli
inside a Windows 10 command prompt with Node 4.4.3 LTS installed
was able to login via tfx login --service-url https://app.market.visualstudio.com --token ***********
however.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
tfx login won't accept a Personal Access Token #109 - GitHub
After calling tfx login --service-url https://app.market.visualstudio.com it asks for a Personal access token. I can't do anything but press ...
Read more >Use personal access tokens - Azure DevOps | Microsoft Learn
Learn how to create and manage personal access tokens (PATs) as alternate passwords to authenticate to Azure DevOps.
Read more >Can't log in into anything that uses a Personal Access Token ...
I click login, it asks me for my password, it doesn't say anything about "Wrong password", it asks me again 4 times until...
Read more >How to get PAT from on-premise TFS2015 - Stack Overflow
I installed NodeJS and tfx-cli but when tfx-cli want to connect to TFS I need to provide pat (personal access token) but I...
Read more >TFS/VSO Task for Running FinalBuilder Project
With the personal access token configured use the tfx-cli login command to connect to VSO. You will be prompted for the TFS collection...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Spent about an hour trying to figure out how to get it to work before finally giving up and looking for an argument token for the pat in the source. I think echoing asterisks would be a wonderful solution to prevent the confusion.
a repository search for --service-url turned up the --token argument so I could actually get working.
By the way I don’t see --token documented in any .md files but I could of simply missed it.
Thanks for the responding @trevorsg & @bryanmacfarlane
The --token argument is shown when you use --help, e.g.
tfx login --help
.