LogoMist

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:

Terminal
cargo install mist-lang@0.4.0

(ℹ) For a more streamlined development experience, Install the following VSCode extensions:

  1. Mist syntax highlighting VSCode extension
  2. Mist analyzer LSP VSCode extension

Once the installation finishes, verify it by checking the version:

Terminal
mist version

2. Setting Up Your Mist Project

mist new mist-hello-world

or

mist init
src/main.mist
void main() {
    println!("Hello World!");
}

3. Build and Run

Terminal
mist run

Command Reference

CommandAliasDescription
mist runr
mist buildb
mist transpilettranspile the project
mist checkccheck the project
mist testtest the project
mist publishpublish the project
mist benchbenchmark the project
mist docbuild documentation
mist fixautomatically fix warnings
mist clippylint the project
mist cleanclean build artifacts
mist initinitialize a project in the current folder
mist newcreate a new project
mist version-vprint the compiler version
mist help-hprint this message

On this page