dotnet tool install --global CloneGithubOrg --version 1.1.1
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local CloneGithubOrg --version 1.1.1
nuke :add-package CloneGithubOrg --version 1.1.1
After installing the tool, the command
clone-github-org will now be available:
clone-github-org --help -u, --username The username to use when authenticating to clone repositories. -p, --password The password (personal access token) to use when authenticating to the Github API and to clone repositories. -o, --org Required. The Github organization from which to clone repositories.
To clone all public repositories for a github organization into the current working directory:
clone-github-org -o aspnet
If you have access to private repositories for a Github org, you can create a personal access token with repo level permissions. Then use the
-p options to clone public & private repos:
clone-github-org -o aspnet -u mygithubusername -p myaccesstoken
This package has no dependencies.