Prerequisites
To work with Dojo, you need to have Git, Rust and Scarb installed.
Rust
Scarb
The Dojo toolchain integrates Scarb to build and run Dojo projects, installation instructions are here.
Install Dojo using dojoup
Dojo has two major components:
dojouptoolchain (installation instructions provided here)- SDKs: Libraries to interact with your onchain state
Install dojoup
curl -L https://install.dojoengine.org | bashInstall the latest Dojo release
dojoupFor more information on advanced usage, such as installing a particular version or building from source, run dojoup --help.
Install Dojo using asdf
You can alternatively use the asdf package manager to install and manage your Dojo installation.
Install asdf
Follow the asdf installation instructions.
Add the asdf-dojo plugin
asdf plugin add dojo https://github.com/dojoengine/asdf-dojoInstall the latest or a specific version
asdf install dojo latest # For the latest version
asdf install dojo 1.0.0 # For a specific versionSet the global or local version
asdf global dojo latest # Set globally
asdf local dojo 1.0.0 # Set locally in your project directory