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:
dojoup
toolchain (installation instructions provided here)- SDKs: Libraries to interact with your onchain state
Install dojoup
curl -L https://install.dojoengine.org | bash
Install the latest Dojo release
dojoup
For 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-dojo
Install the latest or a specific version
asdf install dojo latest # For the latest version
asdf install dojo 1.0.0-rc.1 # For a specific version
Set the global or local version
asdf global dojo latest # Set globally
asdf local dojo 1.0.0-rc.1 # Set locally in your project directory