Files
mist-website/content/docs/index.mdx
T
2026-07-03 09:31:27 +02:00

72 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Get Started
description: This guide will walk you through installing the Mist CLI, setting up your development environment, and compiling your very first program.
icon: Rocket
---
## 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:
```bash title="Terminal"
cargo install [email protected]
```
> (ℹ) For a more streamlined development experience, Install the following VSCode extensions:
> 1. [Mist syntax highlighting VSCode extension](https://marketplace.visualstudio.com/items?itemName=selimaj-dev.mist-syntax)
> 2. [Mist analyzer LSP VSCode extension](https://marketplace.visualstudio.com/items?itemName=selimaj-dev.mist-analyzer)
Once the installation finishes, verify it by checking the version:
```bash title="Terminal"
mist version
```
---
## 2. Setting Up Your Mist Project
```bash
mist new mist-hello-world
```
or
```bash
mist init
```
```mist title="src/main.mist"
void main() {
println!("Hello World!");
}
```
### 3. Build and Run
```bash title="Terminal"
mist run
```
---
## Command Reference
| Command | Alias | Description |
| -------------------- | ----- | ----------------------------------------------- |
| mist run |r| |run the project |
| mist build |b| |build 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 check |c |check the project |
| mist clean| |clean build artifacts |
| mist transpile, |t |transpile the project |
| mist init| |initialize a project in the current folder |
| mist new| |create a new project |
| mist version| |print the compiler version |
| mist help| |print this message |