noir-libs is a CLI application for the Noir Package Manager noir-libs.org.
Install the CLI: curl -s https://raw.githubusercontent.com/walnuthq/noir-libs/main/install.sh | bash
Usage: noir-libs --help
The following features are supported:
- add a package from the package repository to a project:
noir-libs add <package_name>@<package-version>. If no version is specified, the latest version will be fetched e.g.noir-libs add aztec - remove a package from a project:
noir-libs remove <package_name> - package a Nargo project to a distributable tarball. Inside Noir project:
noir-libs package - publish a Nargo package to public remote package registry. Inside Noir project:
noir-libs publish
All supported packages are available at noir-libs.org.
Fetched packages are stored in a cache folder. The exact location depends on the operating system:
- Linux:
/home/user/.cache/noir-libs/ - macOS:
/Users/user/Library/Application Support/com.walnut.noir-libs/ - Windows:
C:\Users\Alice\AppData\Local\walnut\noir-libs
Build noir-libs using the following command: cargo build --release.
- Get the example package
example.tar.gzfromtests/test_filesand extract it to an unrelated folder. - Ensure you have everything set up for Aztec development.
- Try compiling the example with:
aztec-nargo compile. It should fail due to missing dependencies. - Install
noir-libsby following the instructions in the Installation section above. - In your example folder, add the necessary dependencies using the following commands:
noir-libs add easy_private_statenoir-libs add aztecnoir-libs add value_note
- Compile again with
aztec-nargo compile - Check that everything worked this time.
A lot of inspiration for noir-libs was taken from scarb, built by Software Mansion.