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 -- installAlternatively, 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_nameThis generates the artifacts in the build directory.
erg pack buildThis does not generate the artifacts.
erg pack checkerg pack runThis runs the test subroutines (named with test_ prefix) in the tests directory.
erg pack testThis 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_nameerg pack updateerg pack metadata- Display the package information with json format
erg pack metadata --format jsonerg pack clean