@begit/cli
v0.3.3
Published
A CLI for using begit
Maintainers
Readme
@begit/cli
A small CLI wrapper for @begit/core
Installation
Run npm i -g @begit/cli to install. Invoke with begit
Usage
For a comprehensive list of features, use the help command as below:
begit --helpWhich will print something like:
begit
ARGUMENTS:
<URL> - The URL to clone
[Destination] - Folder to clone into [optional]
OPTIONS:
--subdir, -s <str> - Subdirectory of repository to clone [optional]
--token, -t <str> - GitHub API Token [optional]
FLAGS:
--no-cache - Disables caching the downloaded tarball for the future
--help, -h - show helpCloning a repositoy
To clone a repository to the current working directory, simply:
begit Tommypop2/begitURLs are also accepted:
begit https://github.com/Tommypop2/begitYou can also specify the desired branch via a #:
begit Tommypop2/begit#mainCloning a subdirectory within a repo
Use any of the above options in conjunction with the --subdir flag.
begit Tommypop2/begit --subdir packagesOr, shortened to -s
begit Tommypop2/begit -s packages