Team Explorer Everywhere Command Line Client

下载

下载命令行客户端 Microsoft/team-explorer-everywhere

安装

mkdir -p ~/.local/share/
cd ~/.local/share/
unzip TEE-CLC-Version.zip
mv TEE-CLC-Version TEE-CLC
cd
echo "export PATH=\$HOME/.local/share/TEE-CLC:\$PATH" > $HOME/.bashrc

使用帮助

tf help

export TFSC="http://mce-tfs03:8080/tfs/DefaultCollection"
export TFSD="\$/remote/dir/path"
export TFSL="the/local/path"
tf workspace -new xenial -collection:$TFSC
tf workfold -map -collection:$TFSC -workspace:xenial $TFSD $TFSL
tf workfolds

保存密码

export TF_AUTO_SAVE_CREDENTIALS=1
tf commands

参考

[1]. Cross-Platform Command-Line Client- Beginner’s Guide