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:

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