The Anticode CLI: sync, edit and publish projects from a terminal
The anticode CLI is a single Node.js file with no dependencies. It signs in with a code you approve in the browser, pulls a project into a folder, pushes your changes back and publishes behind the same security gate as the builder.
Commands
| Command | What it does |
|---|---|
| anticode login [--api URL] [--name NAME] [--no-open] | Sign in with a code you approve in the browser |
| anticode logout | Revoke this machine’s token |
| anticode whoami | Your account and builds left |
| anticode projects | List your projects |
| anticode pull <project> [dir] | Write spec.json and index.html into a folder |
| anticode push [dir] | Upload spec.json changes (rebuilds index.html) |
| anticode publish [dir] [--slug NAME] | Push, then publish behind the security gate |
Get started step by step
- Install Node.js 20 or newer.
- Run
anticode login. Your browser opens a page showing a code; check it matches your terminal and approve. - Run
anticode projectsand copy a project’s id. - Run
anticode pull <project> my-site, editspec.jsonin your editor or with a coding agent, thenanticode push my-site. - When you’re ready,
anticode publish my-site.
How the CLI keeps your account safe
- Sign-in is a device-code flow: the CLI never sees your password.
- It receives a personal access token once and stores it in your config directory with 0600 permissions.
- The token is sent only as an Authorization: Bearer header to the Anticode API you signed in to, over https (or localhost for development).
- The token only works for projects, sites and builds. Revoke it from the account menu’s CLI access page or with
anticode logout. - Publishing runs the server’s security gate, which refuses pages that fail any check.
Working with coding agents
Because the project is one JSON file with a public schema (/schema/project.v1.json) and instructions at /AGENTS.md, coding agents such as Claude Code or Cursor can edit it after anticode pull. The open builder redraws when a push lands, and every push is in version history.
What a pulled project looks like
anticode pull writes two files into the folder: spec.json, the project itself (the same document as anticode.json, following the public schema), and index.html, the page rendered from it with Anticode’s own generator. Edit spec.json, by hand or with a coding agent; index.html is regenerated on each push, so changes made only to it are overwritten.
A typical session
anticode whoamito check which account you’re in and how many builds are left today.anticode pull 3f2b… shopto fetch a project into a folder called shop.- Change the headline, reorder sections or edit a CMS-backed section in
shop/spec.json. anticode push shop; the open builder redraws with the change and offers an undo.anticode publish shop --slug corner-shopto publish once the checks pass.
Signing in on several machines
Each machine signs in separately and gets its own token, named after the machine unless you pass --name. The CLI access page in the account menu lists every signed-in device, so you can revoke one laptop without touching the others. anticode login --api points the CLI at another Anticode instance, such as eu.anticode.dev, and --no-open prints the approval address instead of opening a browser, which helps on remote servers.
When publishing is refused
If a page fails a security or design check, anticode publish prints which check failed and nothing is published. Fix the cause in spec.json, push again and retry; the design gate and security pages list every check.
Questions people ask
Does the CLI need npm packages?
No. It’s one file that runs on Node.js 20 or newer with no dependencies.
Can the CLI run builds?
It syncs and publishes projects; ask for builds in the builder or over MCP.
Where is the token stored?
In your user config directory (AppData on Windows, Application Support on macOS) with owner-only permissions.
Which operating systems does the CLI support?
Any system with Node.js 20 or newer: Windows, macOS and Linux.
Is the CLI open to read?
Yes. It’s a single readable JavaScript file with its security notes at the top, so you can check exactly what it sends before running it.
What does anticode whoami show?
The account you’re signed in as, its plan and how many builds are left in the current allowance.