Get Started
This guide will walk you through installing the Mist CLI, setting up your development environment, and compiling your very first program.
For any Questions you may have about mist, visit the FAQ here.
1. Installation
Mist is currently distributed as a Cargo crate. To get started, you'll need to have the Rust toolchain installed.
Run the following command to install the Mist toolchain:
cargo install mist-lang@0.4.0(ℹ) For a more streamlined development experience, Install the following VSCode extensions:
Once the installation finishes, verify it by checking the version:
mist version2. Setting Up Your Mist Project
mist new mist-hello-worldor
mist initvoid main() {
println!("Hello World!");
}3. Build and Run
mist runCommand Reference
| Command | Alias | Description |
|---|---|---|
| mist run | r | |
| mist build | b | |
| mist transpile | t | transpile the project |
| mist check | c | check the project |
| mist test | test the project | |
| mist publish | publish the project | |
| mist bench | benchmark the project | |
| mist doc | build documentation | |
| mist fix | automatically fix warnings | |
| mist clippy | lint the project | |
| mist clean | clean build artifacts | |
| mist init | initialize a project in the current folder | |
| mist new | create a new project | |
| mist version | -v | print the compiler version |
| mist help | -h | print this message |