Skip to main content
Every example in this section assumes gen is on your PATH. Pick one of the two installation paths below.

Native toolchain (macOS)

Recommended · Download the GEN binaries locally and run them directly. Thoroughly tested on Apple Silicon.

Devcontainer

Fallback · Run inside a Docker container. Use when ARM-based macOS isn’t available.
Heads-up — Devcontainers have proven less reliable in past workshops. If you have an Apple Silicon Mac, pick the native path.
1

Install and sign in to the GitHub CLI

brew install gh
gh auth login
gh auth setup-git
Follow the wizard to authenticate.
2

Download the GEN CLI (cargo-genie)

For Apple Silicon (arm64):
mkdir -p ~/bin
gh release download v0.14.0 -R gen-bc/gen-framework-preview -O ~/bin/gen -p "gen-darwin-arm64"
chmod +x ~/bin/gen
3

Add ~/bin to your PATH

export PATH="$HOME/bin:$PATH"
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
export GEN_CLI_PATH=~/bin/gen
4

Install Rust

Required for the optional Rust SDK examples in later lessons:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Restart your terminal after installation so the new PATH and Rust environment take effect.
5

Install the rest of the toolchain

cargo-genie can verify and install the RISC-V target, linker, and objcopy for you:
gen genie install-env --install
6

Verify

gen --version
Should print v0.14.0 (or later).
Checkpointgen --version works. You’re ready for the first lesson.

What’s next

Your first account

Two commands to a working on-chain identity.