The Erg package manager
This package manager is bundled with erg and is available via the erg pack
subcommand. See here for information on how to use the command.
- Git
- Github CLI (if you want to publish packages)
erg src/main.er -- install
Alternatively, you can use ergup to install poise automatically.
Actually, poise is inspired by cargo (Rust's package manager) and has almost the same command options.
- Creating a new package in the current directory
erg pack init
- Making a new directory and creating a package
erg pack new package_name
This generates the artifacts in the build
directory.
erg pack build
This does not generate the artifacts.
erg pack check
erg pack run
This runs the test subroutines (named with test_
prefix) in the tests
directory.
erg pack test
This publishes the package to the registry.
erg pack publish
- Install the package from the current directory
erg pack install
- Install the package from the registry
erg pack install package_name
- Uninstall the package from the current directory
erg pack uninstall
- Uninstall the package by specifying the name
erg pack uninstall package_name
erg pack update
erg pack metadata
- Display the package information with json format
erg pack metadata --format json
erg pack clean