Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This command is used to work with team foundation server. Command allows downloading, uploading and deleting files or folders in TFS.

Syntax

Here is command usages:

Code Block
cmdmgr.exe tfs --download=<file|folder> --tfs_url=<http://someURL:8080/tfs> --domain=<some-domain.local> --user=<username> --password=<passWorD> --tfs_path=<$/SomeFolder/1.txt> --server_path=<"D:/SomeFolder"> [default_pending_options=<y|n|t|f|1|0>] [tfs_get_option=<1..7>][tfs_lock_level=<1..4>] [tfs_file_encoding=<1..10>][tfs_pend_changes_options=<1..7>]

cmdmgr.exe tfs --<upload|delete>=<exist_workspace|temp_workspace> --tfs_url=<http://someURL:8080/tfs> --domain=<some-domain.local> --user=<username> --password=<passWorD> [--workspace_name=<WorkSpaceName>] [--workspace_owner=<IAmOwner>] --tfs_path=<$/SomeFolder/1.txt> --server_path=<"D:/SomeFolder"> --taget_name="1.txt" --comment=<"checkin or delete comment">[recurcive=<y|n|t|f|1|0>] [rewrite=<y|n|t|f|1|0>][default_pending_options=<y|n|t|f|1|0>] [tfs_get_option=<1..7>] [tfs_lock_level=<1..4>] [tfs_file_encoding=<1..10>] [tfs_pend_changes_options=<1..7>]

Parameters

Here is list of all parameters for both syntaxes:

...


Windows and UNIX command manager applications differs in SDKs that used for work with TFS. Pending options are available only for UNIX because it uses JNI SDK. Windows use .NET and never use these options.

Examples

Download

...

Example

Code Block
cmdmgr.exe tfs --download=file --tfs_url=http://someURL:8080/tfs --domain=some-domain.local --user=username --password=passWorD --tfs_path=$/SomeFolder/1.txt --server_path="D:/SomeFolder"


Upload

...

Example

Code Block
cmdmgr.exe tfs --upload=temp_workspace --tfs_url=http://someURL:8080/tfs --domain=some-domain.local --user=username --password=passWorD --tfs_path=$/SomeFolder --server_path="D:/SomeFolder" -–target_name="1.txt" --comment="Test comment" –-rewrite=n


Delete

...

Example

Code Block
cmdmgr.exe tfs --delete=exist_workspace --tfs_url=http://someURL:8080/tfs --domain=some-domain.local --user=username --password=passWorD --workspace_name=my_space –-workspace_owner=Nyan --tfs_path=$/SomeFolder --server_path="D:/SomeFolder" -–target_name="1.txt" --comment="Test comment" –-rewrite=n --tfs_lock_level=1, --tfs_pend_changes_options=1

...