Skip to the content.

install command

zigmod install

Installs a command from any remote compatible repository into $HOME/.zigmod/bin/.

zigmod install [git|hg|http] [url]

[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.

Note: It is known this this command will currently work best when the repository is compatible with the version of Zig that your version of Zigmod is built for. At time of writing Zigmod is not currently capable of writing multiple versions of deps.zig but this may change as a result of the introduction of this command.

$ zigmod install git https://github.com/nektro/zigmod
debug: modpath: /home/me/.cache/zigmod/deps/git/github.com/nektro/zigmod
debug: argv: { /home/me/.local/share/zig/0.14.0/zig, build, --prefix, /home/me/.zigmod }
info: success!