cardinal

Install

Set up the toolchain and the dev CLI on macOS, Linux or WSL2.

Cardinal runs on macOS, Linux and WSL2. The dev CLI is a POSIX shell script that runs from a checkout of the repository, so you need read access to revaik-org/cardinal.

Get the source

git clone git@github.com:revaik-org/cardinal.git
cd cardinal

Install the toolchain

.tool-versions pins Erlang 29.1.2, Elixir 1.20.4, Node 26.11.0 and Bun 1.4.3. native/rust-toolchain.toml pins Rust 1.99.1.

Rust

Install it with rustup, not a package manager. The first build in native/ installs the pinned toolchain and the wasm32-unknown-unknown target that the desk's WASM module needs. If it does not, add the target by hand:

rustup target add wasm32-unknown-unknown

Erlang, Elixir, Node and Bun

Use a version manager that reads .tool-versions, such as mise or asdf. From the repository root:

mise install erlang elixir nodejs bun
mix local.hex --force && mix local.rebar --force

Docker

Install Docker Desktop, or Docker Engine with Compose v2. A workspace runs Postgres 17, RustFS (S3), Mailpit and Gotenberg in it.

You can skip Docker if you already run Postgres 17 and pass --db external to cardinal init. You then also need your own S3 store on localhost:9000 with a cardinal bucket (or the CARDINAL_S3_* variables), Gotenberg on localhost:3000 and an SMTP server.

Put cardinal on your PATH

bin/cardinal runs mix cardinal in this checkout's platform/ and fetches the Mix dependencies the first time. Link it into a folder on your PATH:

mkdir -p ~/.local/bin && ln -s "$PWD/bin/cardinal" ~/.local/bin/cardinal

If you will change Cardinal itself, run scripts/setup-hooks.sh once in the checkout. See Repository rules and Test suites.

Next, create your first site.

On this page