How to create a TFS ShelveSet from Command Prompt?
To create a ShelveSet from command prompt in TFS, you can just use the command “TF shelve” from Visual Studio command line. This should open a UI dialog with all the pending changes in current work space. If you would like to create a shelveset with all the changes under current directory you can use the command “TF shelve . /RECURSIVE“.