Arcadible CLI
arc creates, validates, packages, and publishes Arcadible games. Any engine that outputs an index.html works.
Install it, log in, and ship a starter game:
npm install -g arcadible # requires Node.js 22+
arc login
arc init star-drift && cd star-drift
arc deploy
arc play
arc reads everything it deploys from your project: the README, the art in .arcadible/, arcadible.toml, and package.json, if present. See How Arcadible Works for how they fit together, and Deploying from GitHub for the git method.
Workflow
Day to day, edit your game, its README, or its art, play it locally, bump the version, and deploy. While you're developing, use a prerelease version, so each build goes to staging:
arc serve # the game as Arcadible serves it, in the Arcadible sandbox
arc deploy # validate, build, publish, and wait until it's published
arc play -r staging # play the latest prerelease
arc deploy runs every step itself, so you don't need to build or package first. When something's wrong, two commands show what the CLI sees:
arc validate # the checks arc deploy runs, with a link to each broken rule
arc inspect # the manifest after merging the README, media, package.json, and arcadible.toml
arc inspect prints everything, HTML included, which can be a lot. Give it a dot path to see one part. A number picks a list's item, counting from 0, so an issue arc validate reports in game.gallery.3 is one command away:
arc inspect game.gallery # one field
arc inspect game.gallery.3 # one item in it
Configuration
Every command except login, logout, and whoami accepts -C, --cwd <dir> to run against another directory, every command but arc login and arc function logs accepts --quiet for CI, and every command but arc serve and arc login, which run until stopped or need a person, accepts --json for scripting. An option that's on by default, shown in a command's usage as [boolean] [default: true], such as --browser or --build, is turned off with --no- before its name: --no-browser, --no-build. The project is that directory, or the one arc runs in, and it needs an arcadible.toml: arc never looks for one in the directories above (manifest_missing), except arc init, which creates it. arc open and arc play work anywhere when given a game; outside a project without one, they fail (game_id_missing).
arc.config.toml
To set default options, use an arc.config.toml file: TOML, as arcadible.toml is, with a table per command, named as the command is. Each key is a flag's long name, or a positional's, such as method, except --cwd, and --yes where it confirms removing something, which are never read from it:
[deploy]
method = "git"
timeout = 600
[play]
browser = true
A group's commands read the group's table, such as [function] for every arc function command.
arc reads two files, and the later overrides the earlier, option by option:
- Your own,
~/.config/arc/config.toml(%LOCALAPPDATA%\arc\config.tomlon Windows), for every project - The project's: the nearest
arc.config.tomlin the project's folder (the working directory, or the one-Cnames) or above it
A flag on the command line overrides them both. Environment variables don't set options.
Environment
| Variable | Effect |
|---|---|
NO_COLOR | Turns off color, even on a terminal |
LOCALAPPDATA | On Windows, where the session is stored (%LOCALAPPDATA%\arc) |
The session from arc login is stored in ~/.config/arc/account.json, readable only by you.
Output
The CLI is built to be run by people, scripts, CI, and coding agents alike:
-
Results go to stdout, and everything else to stderr: progress, warnings, errors, and
… aborted.messages.arc validate's issues and warnings are its result, so they go to stdout. -
Exit codes:
0when a command succeeds,1when it fails, and130when you cancel a question it asks with Ctrl+C, such asarc init's template. Each command's page lists what it returns. -
Every command's output has the same shape: a heading that says what happened (
Published v1.2.0 to production.,Deploy aborted.), the reason on the next line, then any details, such as links or what to do next, each after a blank line. Each line holds one sentence, and figures that go together are a line each:Deploy aborted.
Not logged in.
Run `arc login` to log in.
Code: not_logged_in
https://developer.arcadible.com/references/errors#not_logged_inA failure ends with its code and its entry in Errors, a failed release's reason included, except an unknown option or a value of the wrong type, which, without
--json, prints the command's help and the message. -
Only the heading is red or green, for failure or success.
-
With
--json, stdout holds exactly one JSON document, the result or{ "error": { "code": "…", "docs_url": "…", "message": "…", "retry": "…" } }(docs_urlis the code's entry in Errors,retryisyes,later, orno(Reporting), and the HTTPstatusis added when Arcadible answered with an error, with itscausewherearchas no code of its own for it), and stderr stays empty.arc build,arc pack, andarc deployalso list their warnings. Match on the code, which doesn't change, rather than the message, which can. Each command's page shows its JSON. A deploy whose release fails also includes its details and therelease. Every time is ISO 8601 in UTC, to the millisecond (2026-11-12T19:37:55.843Z); a list comes inside an object ({ "keys": [ … ] }), so it can gain a field; and a link is named by what it is (play_url,store_url,docs_url). -
With
--quiet, only errors are printed, unless--jsonis given too: a JSON document asked for is always printed. -
Spinners and progress bars appear only when stderr is a terminal. Piped, in CI, or run by an agent, the output has no control codes.
-
Color is used only on a terminal. Set
NO_COLORto turn it off there too.
Commands
| Command | Description |
|---|---|
arc init | Scaffold a project from a template, or prepare an existing one |
arc inspect | Print the resolved manifest |
arc validate | Check the project against the manifest rules |
arc build | Run the project's build command and bundle the game's function |
arc pack | Pack the game into the zip arc deploy deploys |
arc serve | Serve the game locally, in the Arcadible sandbox, as Arcadible does |
arc deploy | Deploy the game, directly or through GitHub |
arc open | Open a game's store page |
arc play | Play a game in the Arcadible app or a browser |
arc login | Log in with a device code |
arc whoami | Show the logged-in account |
arc logout | Log out |
arc game delete | Delete the project's game on Arcadible, for good |
arc function | Pause, resume, and show the game's function, read its logs, and set its secrets |
arc server key | Make, list, and revoke your server's keys |
arc value | Set, get, list, and remove the values you publish for the game |
arc wire | Show what the game's wires carried |
Every error message, and what to do about it, is in Errors. For the starter templates, see Starter templates.