Installation
This guide walks you through installing the Miden development tools using the midenup toolchain manager.
Prerequisites
Install Rust
Miden development requires Rust. Install it using rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Reload your PATH environment variable:
. "$HOME/.cargo/env"
Verify the installation:
rustc --version
Expected output
rustc 1.92.0-nightly (fa3155a64 2025-09-30)
Install Node.js & Yarn
For TypeScript development with the Miden Web Client, you'll need Node.js and Yarn.
Install Node.js:
# Install Node.js using the official installer or package manager
# For macOS with Homebrew:
brew install node
# For Ubuntu/Debian:
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# For Windows, download from nodejs.org
Install Yarn:
# Install Yarn globally via npm
npm install -g yarn
Verify installations:
node --version && yarn --version
Expected output
v20.11.0
1.22.19
Install Miden CLI
Install midenup
The Miden toolchain installer makes it easy to manage Miden components:
cargo install midenup
Until published to crates.io, install using: cargo install --git https://github.com/0xMiden/midenup.git
Initialize midenup
midenup init
This creates the $MIDENUP_HOME directory and sets up symlinks for the miden command.
Configure PATH
Add the midenup bin directory to your PATH. First, check your current $MIDENUP_HOME:
midenup show home
Then add it to your shell configuration:
For Zsh (macOS default):
export PATH="/Users/$(whoami)/Library/Application Support/midenup/bin:$PATH"
source ~/.zshrc
For Bash:
export PATH="$XDG_DATA_DIR/midenup/bin:$PATH"
source ~/.bashrc
Install Miden Toolchain
Install the latest stable Miden components:
midenup install stable
Initialize Miden Client
Configure the client for the network you'll use:
miden-client init --network testnet
Available networks:
testnet- Miden's public test networkdevnet- Development networklocalhost- Local node for testing
Verify Installation
Check that everything is working correctly:
midenup show active-toolchain
Expected output
stable
which miden
Expected output
/Users/<USERNAME>/Library/Application Support/midenup/bin/miden
Test by creating a new project:
miden new my-test-project
If successful, you'll see a new directory with Miden project files.
Troubleshooting
"miden: command not found"
This means the PATH isn't configured correctly. Verify midenup's bin directory is in your PATH:
echo $PATH | grep midenup
If missing, re-add the export command to your shell configuration and reload it.