Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matt-bartel/gh-clone-org
A github-cli extension script to clone all repositories in an organization, optionally filtering by topic.
https://github.com/matt-bartel/gh-clone-org
gh-extension
Last synced: 3 months ago
JSON representation
A github-cli extension script to clone all repositories in an organization, optionally filtering by topic.
- Host: GitHub
- URL: https://github.com/matt-bartel/gh-clone-org
- Owner: matt-bartel
- Created: 2021-01-22T23:33:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-31T20:06:44.000Z (5 months ago)
- Last Synced: 2024-06-22T09:39:32.183Z (5 months ago)
- Topics: gh-extension
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 114
- Watchers: 4
- Forks: 25
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-gh-cli-extensions - **clone-org** - Extension script to clone all repositories in an organization. (Tool)
- jimsghstars - matt-bartel/gh-clone-org - A github-cli extension script to clone all repositories in an organization, optionally filtering by topic. (Shell)
README
# gh-clone-org
A github-cli extension script to clone all repositories in an organization, optionally filtering by topic or a search string. If the repository has already been cloned it will attempt to switch to the default branch and pull.
## Installation
```bash
gh extension install matt-bartel/gh-clone-org
```## Usage
```txt
gh clone-org [-t TOPIC] [-s QUERY] [-p PATH] [-y] ORG
ORG
Github organization. Required if the GITHUB_ORG environment variable is not set.
-y, --yes
Clone without prompting for confirmation.
-p, --path PATH
Clone path. Default: current directory.
-t, --topic TOPIC
Clone repositories with this topic
-s --search QUERY
Clone repositories found by this search string. If this is provided '-t' will be ignored.
Example: -s "is:public language:go"
See: https://docs.github.com/en/github/searching-for-information-on-github/searching-on-github/searching-for-repositories
-n, --dry-run
Do not actually clone, just show what would be cloned
-h, --help
Display this message.
```