6.0.3 • Published 5 years ago
@ngeor/clone-all v6.0.3
clone-all
Automatically clone all your GitHub and Bitbucket Cloud repositories.
Requirements
clone-all requires Node.js version 10 or higher.
Usage
Cloning
You need a directory into which clone-all will clone all your repositories.
npx @ngeor/clone-all --provider github --username ngeor --output ./repositories/This will clone all the repositories of the ngeor user into the repositories
folder.
Listing repository information
This command prints information about repositories without cloning them.
npx @ngeor/clone-all -p github --username ngeor --listExample output (fields are tab separated):
Name Language Size Pushed At
android-tictactoe Java 386 2017-08-31T08:45:56Z
archetype-quickstart-jdk8 Shell 63 2017-04-02T07:12:55Z
clone-all JavaScript 229 2018-01-23T15:13:59ZCommand Line Options
Specifying with repositories to fetch
- -p, --provider: github or bitbucket_cloud
- --username: the user owning the repositories
- --protocol: specify the cloning protocol (https or ssh)
- --ssh-username: specify a different username for cloning over ssh (instead of
git@) - --no-forks: Do not clone forked repositories
- --no-archived: Do not clone archived repositories
Bitbucket Cloud options:
- --owner: the user owning the repositories
- --username: the username to use against Bitbucket REST API
- --password: the password to use against Bitbucket REST API. It is possible to
specify this parameter via the
BITBUCKET_PASSWORDenvironment variable. CLI option has precedence.
Cloning options
- --output: the folder in which to clone the repositories
List options
- --list: Prints information about the repositories without cloning them.
Additional configuration options
- -v: increases verbosity
- --dry-run: don't clone anything, just show what would happen