Skip to content
Riot Docs

Search is only available in production builds. Try building and previewing the site to test it out locally.

Install Riot GitHub

Installation

Installing Riot starts with the public install path from riot.ml:

Terminal window
curl -sSL https://get.riot.ml | sh

That only counts as a successful installation if the full workspace loop can start after that.

By the end of this page you should be able to do four things:

  1. invoke the CLI
  2. materialize the declared compiler toolchain
  3. create or bootstrap a real workspace
  4. build and run at least one package successfully

Run the installer:

Terminal window
curl -sSL https://get.riot.ml | sh

The installer puts the Riot binary on your machine. The next step is to make sure your shell can actually see it.

The first verification should be boring and deterministic:

Terminal window
riot --help

If that does not work, the rest of the toolchain discussion is premature.

You can also use:

Terminal window
riot --version

but riot --help is a better first smoke test because it proves the command surface is available instead of only checking that a binary exists somewhere on PATH.

Step 3: materialize the compiler toolchain

Section titled “Step 3: materialize the compiler toolchain”

Once the Riot binary is visible, make sure it can also install the compiler toolchains the workspace expects:

Terminal window
riot toolchain install

This matters because Riot is not just a front-end to whatever random compiler happens to be lying around on the machine. It wants a declared toolchain story.

There are two good first-project paths.

If you want the fastest path to a working Riot application, use the starter app entrypoint that the public Riot site points new users toward:

Terminal window
riot run leostera/create-riot-app

That path is good when you want to see Riot with batteries included instead of starting from a bare workspace.

If you want to learn the raw Riot project shape, initialize a workspace directly:

Terminal window
riot init hello
cd hello

This path is better when you want to understand what Riot expects a package and workspace to look like.

Step 5: prove the workflow with a real package

Section titled “Step 5: prove the workflow with a real package”

The fastest real verification is:

Terminal window
riot build
riot run hello
riot test
riot doc

If you used the starter app path instead of riot init, run the same loop inside the generated workspace, replacing hello with the package or app target that the scaffold created.

That sequence is better than a shallow version check because it proves:

  • scaffolding or bootstrapping works
  • the compiler path works
  • the build planner works
  • binaries run
  • the test runner is wired
  • docs can be generated from public interfaces

Installation issues tend to cluster into a few categories:

  • the Riot binary is not actually on PATH
  • the workspace cannot fetch or materialize toolchains
  • the shell environment is different between interactive use and scripted use
  • the editor is pointed at the wrong root even though the CLI works

The right response is to verify the system in layers:

  1. binary
  2. toolchain
  3. workspace
  4. editor

The normal next pages are:

Those pages turn the installation from a one-time setup step into a repeatable daily workflow.