Skip to content
Axiom/Docs
Get started / The dev loop

The dev loop

What you run between saving a file and seeing the change, and what to run when it does not appear. There is no watch command yet, so the loop is a short script you run yourself.

The loop

Terminal
$ clang --target=wasm32 -std=c17 -O2 -ffreestanding -nostdlib -I . -c mod.c -o mod.o
$ wasm-ld --no-entry --strip-all mod.o -o mod.wasm
$ axiom check
$ axiom build

axiom check is the same validation the registry runs at publish, so a mod that checks clean is not refused later for its manifest. Given --surface and the import list a build generated, it also checks every capability name against what the surface offers a mod. A run without it says it skipped that check, rather than passing quietly.

To run the new build, publish it as a new version and install that. A mod runs only signed, and nothing loads a package from a directory, so the registry is the way onto a machine. A hidden package stays out of every list while you work on it.

Terminal
$ axiom publish io.github.yourname.hello-0.1.1.axpkg --key main --hidden
$ axiom install io.github.yourname.hello@0.1.1 --game axiom.sandbox

Without a game

The Axiom Sandbox runs a mod with no game, in the launcher. It offers frame@1 and ui.overlay@1, which is enough for any mod that only shows something, and draws a real overlay. See Your first mod.

The headless backend, axiom attach <game-id>, is built and runs a game's mods on a tick with no overlay, but no game is vouched for it yet, so today it refuses every one at the gate. Adding one is a claim about a real server build, made in a reviewed change.

When something does not load

Run
To find out
axiom caps --game <id>
The negotiated capability set, where each came from, beside each mod's requirements. The first thing to run.
axiom list --game <id>
What is installed for a game, in the order it will run.
axiom logs --game <id>
What happened the last time the game ran.
axiom verify <mod-id>
Whether the package on disk is the one that was signed, by a key this machine trusts.
axiom doctor
Where Axiom keeps things, and what is in them.

Not built yet

axiom new, axiom watch and axiom profile are in the CLI's table and do nothing yet, and axiom build packages what is there without compiling it. The CLI reference marks every command that is not built.