How to get PAT from on-premise TFS2015

后端 未结 2 1826
情歌与酒
情歌与酒 2021-02-13 21:38

We want to migrate our custom steps from XAML build to new build task in TFS2015 on-premise. I installed NodeJS and tfx-cli but when tfx-cli want to connect to TFS I need to pro

2条回答
  •  温柔的废话
    2021-02-13 22:33

    There's another option for tfx-cli to connect to the TFS instance, and it is basic authentication. Just use the following format:

    tfx login --auth-type basic --username myuser --password mypassword --service-url http://tfscollectionurl
    

    Here is the quote from Github:

    You can alternatively use basic auth by passing --auth-type basic (read Configuring Basic Auth). NTLM will come soon.

    Note: Using this feature will store your login credentials on disk in plain text.

提交回复
热议问题