| Crates.io | rzup |
| lib.rs | rzup |
| version | 0.5.1 |
| created_at | 2025-01-28 00:46:24.094631+00 |
| updated_at | 2025-08-27 16:56:43.035071+00 |
| description | The RISC Zero version management library and CLI |
| homepage | https://risczero.com/ |
| repository | https://github.com/risc0/risc0/ |
| max_upload_size | |
| id | 1533110 |
| size | 387,041 |
rzup is a tool for managing RISC Zero toolchain components. It helps you install, update, and switch between different versions of RISC Zero tools.
rzup can be installed with:
curl -L https://risczero.com/install | bash
Install RISC Zero components.
rzup install [OPTIONS] [NAME] [VERSION]
Arguments:
NAME: (Optional) component name to install (e.g., "rust", "cargo-risczero")VERSION: (Optional) Version to install. If no version is specified, it will use the latest release version.Options:
-f, --force: Force reinstallation even if already installedExamples:
# Install latest versions of all components
rzup install
# Install specific version of cargo-risczero
rzup install cargo-risczero 1.0.0
# Force reinstall latest rust toolchain
rzup install rust --force
Update your RISC Zero installation.
# Update to latest versions of all components
rzup update
Note: update is an alias to install.
Check for available updates of installed components.
rzup check
Switch to a specific version of a component.
rzup use <NAME> <VERSION>
Arguments:
NAME: Component name (required)VERSION: Version to activate (required)Display information about installed components and versions.
Example output:
Installed components:
--------------------
cargo-risczero
* 1.1.0
1.0.0
rust
* 1.79.0
1.81.0
The * indicates the current default version.
Remove a specific version of a component.
rzup uninstall <NAME> <VERSION>
Arguments:
NAME: Component name (required)VERSION: Version to uninstall (required)Build a particular component from source.
rzup build <NAME> <COMMIT-OR-TAG>
Right now this command only supports building the Rust toolchain.
Downloads the source code for the given component from GitHub, builds it, installs it, and makes it the default version.
The resulting version of the component will contain the commit hash.
rzup manages the following components:
rust: The RISC Zero Rust toolchain
cpp: The RISC Zero C++ toolchain
cargo-risczero: The RISC Zero Cargo extension
r0vm: The RISC Zero zkVM
rzup stores its installations in:
$HOME/.risc0/RISC0_HOME environment variableWhen communicating with GitHub, it tries using authentication. This can be useful to get around
rate-limiting. It attempts to get a token from the GITHUB_TOKEN environment variable, then from
~/.config/gh/hosts.yml.
rzup currently downloads components from both GitHub and S3. We are in the process of transitioning where components live from GitHub to S3. The publish command is for uploading new components to S3.
It stores the components in s3://risc0-artifacts/rzup/components/
To publish an artifact as a component, first an artifact must be created. A valid artifact is just a .tar.xz file.
To create an artifact, publish create-artifact can be used like
rzup publish create-artifact --input <directory-path> --output <output>.tar.xz
This command creates a .tar.xz file but uses parallel compression and displays a progress bar. This command doesn't have to be used, but is provided for convenience.
To upload an artifact to S3 as a component, publish upload can be used like
rzup publish upload (--target-agnostic|--target <target-triple>) <component-name> <version> <artifact>.tar.xz
This command must be run in an environment with AWS credentials available. It will publish the artifact as a component with the given name and version.
If --target-agnostic flag is given, the artifact will be used for all targets, otherwise --target <target-triple> must be used to mark which target the artifact should be used for (e.g.
aarch64-apple-darwin, or x86_64-unknown-linux-gnu)
Uploads are signed with a private key that is stored in AWS secrets manager, the key is obtained at publish time using aforementioned AWS credentials.
The published component metadata includes information about what component version is the latest
version. (This is the version that rzup will download by default.) To update what this version is,
the set-latest command can be used.
rzup publish set-latest <component> 1.2.3