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
- Host: GitHub
- URL: https://github.com/chadly/clone-github-org
- Owner: chadly
- License: mit
- Created: 2019-08-28T16:31:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T20:20:51.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T10:49:19.847Z (over 1 year ago)
- Topics: cli, github
- Language: C#
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```