/azure-devops-clone-all-repos

Console app to clone all repositories from provided Azure DevOps organization.

Primary LanguageC#MIT LicenseMIT

ADOSCloneAllRepos CI Nuget (with prereleases) Nuget

ADOSCloneAllRepos

Dotnet tool to clone all repositories from provided Azure DevOps organization.

Usage

Installation

Install tool from nuget.org.

Running

If installed with --global or -g parameter, run using

ADOSCloneAllRepos.exe

If installed with --local parameter, run using

dotnet ADOSCloneAllRepos

Command line reference

Get help using the command:

.\ADOSCloneAllRepos.exe --help
ADOSCloneAllRepos 1.0.0
Copyright (C) 2020 ADOSCloneAllRepos

  -c, --collection-uri    Required. Azure collection e.g. https://dev.azure.com/sample-organization-name/

  -u, --user-name         Required. AzureDevOps username e.g. username@microsoft.com

  -p, --pat               Required. Personal Access Token (PAT) for the Git repositories

  -o, --output-path       Required. Folder to clone repositories into e.g. C:\ClonedRepos

  --help                  Display this help screen.

  --version               Display version information.

PAT

PAT needs at least read all organization and projects and git clone permissions. Refer Authenticate access with personal access tokens on how to generate a PAT.