github-org-clone

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 8 Imported by: 0

README

github-org-clone

CircleCI

A simple cli app to clone all repos managed by a github organisation or team. Requires that you pass a github api key (personal access token) and github username to the script or set the GITHUB_TOKEN and GITHUB_USER environment variable. See the help output below.

Install

The following script will install a binary from a tagged release

curl https://raw.githubusercontent.com/steinfletcher/github-org-clone/master/download.sh | sh
mv github-org-clone /usr/local/bin

Or install from master using go

go get github.com/steinfletcher/github-org-clone

Use

Export env vars in ~/.bashrc or equivalent

export GITHUB_USER=<your github username>
export GITHUB_TOKEN=<a github personal access token with clone repo privileges>

(Alternatively supply these as flags to the command --username and --token).

Clone team repos

github-org-clone --org MyOrg --team MyTeam

Clone organisation repos

github-org-clone -o MyOrg

Override the default location

github-org-clone -o MyOrg -d ~/projects/work

Override the github api url

github-org-clone -o MyOrg -a https://mycustomdomain.com

View docs

github-org-clone -h

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL