An open API service indexing awesome lists of open source software.

https://github.com/danesparza/tfsutil

:herb: Utilities for working with TFS (Team Foundation Server)
https://github.com/danesparza/tfsutil

command-line command-line-tool tfs tfs-2017 tfs-api utilities variable-groups variables

Last synced: 3 months ago
JSON representation

:herb: Utilities for working with TFS (Team Foundation Server)

Awesome Lists containing this project

README

        

# tfsutil [![CircleCI](https://circleci.com/gh/danesparza/tfsutil.svg?style=shield)](https://circleci.com/gh/danesparza/tfsutil)
Utilities for working with [TFS (Team Foundation Server)](https://docs.microsoft.com/en-us/vsts/user-guide/?view=tfs-2018)

## Getting started
- Grab the [latest release](https://github.com/danesparza/tfsutil/releases/latest) and unzip `tfsutil` to a location in your [path](https://en.wikipedia.org/wiki/PATH_(variable)).
- **Create a config file** using the command `tfsutil config create`. Save the generated text to a file named `tfsutil.yml` in the `%userprofile%` folder on windows (probably your user directory), or to your home directory (if on a unix/linux based platform), or in the same directory as the binary.
- **Update the config file** `tfsutil.yml`:
- Set the TFS url with your server information
- Set the default collection (you can always override this with the `--collection` command line flag)
- Set the default project (you can always override this with the `--project` command line flag)
- **Create a personal access token** and set it in the `tfsutil.yml` config file. (Need help? [See the guide on Microsoft's site](https://docs.microsoft.com/en-us/vsts/accounts/use-personal-access-tokens-to-authenticate?view=vsts).)

### Listing variable groups
To list variable groups, execute the command:

```
tfsutil vg list
```

All variable groups for the current collection and project will be listed, along with the count of the variables in each group.

### Copying a variable group
To copy a variable group, execute the command:

```
tfsutil vg copy "Special unicorn variables"
```

Where 'Special unicorn variables' is the name of the variable group you want to copy. Note: The variable group name should be surrounded with quotes.

### Listing projects
To list projects, execute the command:

```
tfsutil project list
```

All projects for the current collection will be listed