milpa itself repo install
Installs a milpa repo
Usage
milpa itself repo install [options] SOURCE
Description
Installs a milpa repo from a local directory or remote git repository into either:
$XDG_DATA_HOME/milpa
(usually$HOME/.local/share
): by default, or if--user
is specified, or$MILPA_ROOT
(usually, /usr/local/lib/milpa), if--global
is specified.
When SOURCE
points to a local path (either a folder containing a .milpa
folder, or the .milpa
folder itself), milpa repo install
will symlink it into the local or global repositories.
Oherwise,SOURCE
will be interpreted as a git URL, and a shallow clone will be performed against the .milpa
folder of the repo only.
Examples
https://github.com/unRob/dotfiles.git
would download the.milpa
folder from theunRob/dotfiles
github repo, using https, and prompting for credentials for private repos.git@git.rob.mx/unRob/dotfiles.git
would download the.milpa
folder from theunRob/dotfiles
git repo using ssh credentials, useful for skipping credential prompts for private repos.-
~/.dotfiles
would symlink$HOME/.dotfiles/.milpa
to the target. An alternative to this is to setMILPA_PATH
to$HOME/.dotfiles
(seemilpa help docs milpa environment
).
Arguments
SOURCE
required - A path or git clone URL to install
Options
--global
(bool): If specified, install the repo to $MILPA_ROOT.--user
(bool): If specified, install the repo to ~/.local/share/milpa/repos.
Global Options
--color
(bool): Always print colors to stderr. Default: true.--help
(bool): Display help for any command.--no-color
(bool): Disable printing of colors to stderr.--silent
(bool): Silence non-error logging.--skip-validation
(bool): Do not validate any arguments or options.--verbose
(bool): Log verbose output to stderr.