| 1 | ## `install` command |
| 2 | |
| 3 | ``` |
| 4 | zigmod install |
| 5 | ``` |
| 6 | |
| 7 | Installs a command from any remote compatible repository into `$HOME/.zigmod/bin/`. |
| 8 | |
| 9 | ``` |
| 10 | zigmod install [git|hg|http] [url] |
| 11 | ``` |
| 12 | |
| 13 | - The `git` type for [Git](https://git-scm.com/) requires having `git` in $PATH. |
| 14 | - The `hg` type for [Mercurial](https://www.mercurial-scm.org/) requires having `hg` in $PATH. |
| 15 | - The `http` type requires having `wget` and ( `tar` or `unzip` ) in `$PATH`. |
| 16 | |
| 17 | `[url]` may be the link to any remote repository that contains a Zig project with a `zigmod.yml` manifest. If your project currently does not have one, you may create one using [`zigmod init`](./init.md). |
| 18 | |
| 19 | ``` |
| 20 | $ zigmod install git https://github.com/nektro/zigmod |
| 21 | debug: modpath: /home/me/.cache/zigmod/deps/git/github.com/nektro/zigmod |
| 22 | debug: argv: { /home/me/.local/share/zig/0.16.0/zig, build, --prefix, /home/me/.zigmod } |
| 23 | info: success! |
| 24 | ``` |