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

https://github.com/chadly/clone-github-org

A .net CLI utility to clone all repositories in a Github org
https://github.com/chadly/clone-github-org

cli github

Last synced: about 1 month ago
JSON representation

A .net CLI utility to clone all repositories in a Github org

Awesome Lists containing this project

README

          

# Clone Github Org

> A .net CLI utility to clone all repositories in a Github org.

## Usage

```
dotnet tool install --global CloneGithubOrg
```

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](https://github.com/settings/tokens) with _repo_ level permissions. Then use the `-u` & `-p` options to clone public & private repos:

```
clone-github-org -o aspnet -u mygithubusername -p myaccesstoken
```