@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 --help
Which will print something like:
begit
ARGUMENTS:
<URL> - The URL to clone
[Destination] - a string [optional]
OPTIONS:
--subdir, -s <str> - a string [optional]
FLAGS:
--help, -h - show help
Cloning a repositoy
To clone a repository to the current working directory, simply:
begit Tommypop2/begit
URLs are also accepted:
begit https://github.com/Tommypop2/begit
You can also specify the desired branch via a #
:
begit Tommypop2/begit
Cloning a subdirectory within a repo
Use any of the above options in conjunction with the --subdir
flag.
begit Tommypop2/begit --subdir packages
Or, shortened to -s
begit Tommypop2/begit -s packages