Skip to main content

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:

arc.config.toml
[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:

  1. Your own, ~/.config/arc/config.toml (%LOCALAPPDATA%\arc\config.toml on Windows), for every project
  2. The project's: the nearest arc.config.toml in the project's folder (the working directory, or the one -C names) or above it

A flag on the command line overrides them both. Environment variables don't set options.

Environment​

VariableEffect
NO_COLORTurns off color, even on a terminal
LOCALAPPDATAOn 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: 0 when a command succeeds, 1 when it fails, and 130 when you cancel a question it asks with Ctrl+C, such as arc 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_in

    A 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_url is the code's entry in Errors, retry is yes, later, or no (Reporting), and the HTTP status is added when Arcadible answered with an error, with its cause where arc has no code of its own for it), and stderr stays empty. arc build, arc pack, and arc deploy also 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 the release. 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 --json is 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_COLOR to turn it off there too.

Commands​

CommandDescription
arc initScaffold a project from a template, or prepare an existing one
arc inspectPrint the resolved manifest
arc validateCheck the project against the manifest rules
arc buildRun the project's build command and bundle the game's function
arc packPack the game into the zip arc deploy deploys
arc serveServe the game locally, in the Arcadible sandbox, as Arcadible does
arc deployDeploy the game, directly or through GitHub
arc openOpen a game's store page
arc playPlay a game in the Arcadible app or a browser
arc loginLog in with a device code
arc whoamiShow the logged-in account
arc logoutLog out
arc game deleteDelete the project's game on Arcadible, for good
arc functionPause, resume, and show the game's function, read its logs, and set its secrets
arc server keyMake, list, and revoke your server's keys
arc valueSet, get, list, and remove the values you publish for the game
arc wireShow 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.