pkg
eryx pkg is the built-in package manager.
Usage
eryx pkg <subcommand> [options]
If no subcommand is provided, Eryx prints the package manager help text.
Subcommands
install
Install all packages from the current project.
eryx pkg install [--dev]
update
Re-resolve and update all packages, or only selected dependencies.
eryx pkg update [--dev] [package...]
upgrade
Update repository dependencies and rewrite the version ranges in eryx.toml.
eryx pkg upgrade [--dev] [package...]
tree
Show the resolved dependency tree.
eryx pkg tree [--dev]
ls
List top-level dependencies.
eryx pkg ls [--dev]
add
Add a dependency to the project manifest.
eryx pkg add [--dev] [--dry] [--path] [--sha256 <hash>] [--rev <rev>] [--tag <tag>] [--branch <branch>] [--subdir <dir>] <package>
Notes:
--devwrites todev-dependencies--dryupdates the manifest without running install--pathrecords the dependency as a path dependency--sha256is used for URL package verification--rev,--tag, and--branchcontrol git dependency selection--subdirselects a package subdirectory inside a git repository
remove
Remove a dependency from the project manifest.
eryx pkg remove [--dev] [--dry] <package>
Examples
Install dependencies:
eryx pkg install
Add a dev dependency:
eryx pkg add --dev eryx:testlib
Add a git dependency pinned to a tag:
eryx pkg add --tag v1.2.0 git+https://example.com/repo.git
Inspect the tree including dev dependencies:
eryx pkg tree --dev