| Crates.io | nargo-add |
| lib.rs | nargo-add |
| version | 0.1.1 |
| created_at | 2025-12-02 11:35:09.094091+00 |
| updated_at | 2026-01-13 16:41:22.131403+00 |
| description | Add packages from the Noir registry to your Nargo.toml |
| homepage | https://github.com/CECILIA-MULANDI/noir-registry |
| repository | https://github.com/CECILIA-MULANDI/noir-registry |
| max_upload_size | |
| id | 1961651 |
| size | 65,393 |
A CLI tool to add packages from the Noir registry to your Nargo.toml.
cargo install nargo-add
This installs nargo-add to ~/.cargo/bin/. Make sure ~/.cargo/bin is in your PATH.
cargo install --git https://github.com/CECILIA-MULANDI/noir-registry --bin nargo-add --path cli-tool
The tool defaults to http://109.205.177.65/api. To use a different registry:
# Set environment variable (in your ~/.bashrc or ~/.zshrc)
export NOIR_REGISTRY_URL="https://your-registry.com/api"
Or use the --registry flag for each command.
# Build release binary
cd noir-registry
cargo build --release -p nargo-add
# Copy to a directory in your PATH
cp target/release/nargo-add ~/.cargo/bin/
# or
cp target/release/nargo-add ~/.local/bin/
Once installed, use nargo-add in your Noir project:
# Navigate to your Noir project
cd my-noir-project
# Add a package from the registry
nargo-add rocq-of-noir
# Add with custom registry URL
nargo-add rocq-of-noir --registry http://your-registry.com/api
# Add with specific Nargo.toml path
nargo-add rocq-of-noir --manifest-path /path/to/Nargo.toml
# 1. Create a new Noir project (or navigate to existing one)
nargo new my-project
cd my-project
# 2. Add dependencies from the registry
nargo-add rocq-of-noir
nargo-add ECrecover
# 3. Your Nargo.toml now has the dependencies
cat Nargo.toml
Nargo.toml in the current directory (or walks up to find it)package-name = { git = "url" }NOIR_REGISTRY_URL - Default registry API URL (defaults to http://109.205.177.65/api)Example:
export NOIR_REGISTRY_URL="http://109.205.177.65/api"
nargo-add rocq-of-noir
--registry <URL> - Override registry URL for this command--manifest-path <PATH> - Specify Nargo.toml path explicitly✅ Production-Ready Features:
NOIR_REGISTRY_URL)"nargo-add: command not found"
cargo install nargo-addcargo install --git https://github.com/CECILIA-MULANDI/noir-registry --bin nargo-add --path cli-tool~/.cargo/bin is in your PATH: echo $PATHwhich nargo-add"Could not find Nargo.toml"
--manifest-path to specify the path: nargo-add package-name --manifest-path /path/to/Nargo.toml"Package not found in registry"
echo $NOIR_REGISTRY_URL or use --registry flagcurl $NOIR_REGISTRY_URL/packages/package-name"Failed to connect to registry"
curl $NOIR_REGISTRY_URL/health"Dependency already exists"