The command-line client of Appo, which turns an existing
website into native iOS and Android apps and operates their publication on the
App Store and Google Play. Create and manage Appo apps from the terminal or an
agent, at parity with the dashboard. A thin, dependency-free Node client over
the Appo public API (/api/v1) and the RFC 8628 device-authorization grant
(/api/oauth/device/*).
- In a terminal or CI:
npx @appolabs/appo new <website URL>creates the app and walks it to a phone,startresumes that session andshippublishes it. - With an AI agent (Claude Code, Codex, Cursor):
npx @appolabs/appo mcpregisters the Appo MCP connector,https://apps.goappo.io/mcp, and the agent drives the same lifecycle. See mcp.
Looking for the JavaScript bridge inside the app (push, biometrics, camera from your web code)? That is
@appolabs/sdk. Note: versions of this package below 3.0.0 were that legacy bridge SDK — they are deprecated on npm and point here. Docs: https://goappo.io/docs.
npm install -g @appolabs/appoRequires Node 18 or newer. After install the appo command is on your PATH.
Check the version with:
appo --version # prints: appo/<version> node/<version>The canonical commands: appo new <url> creates an app and walks it to your
phone; appo start resumes that session; appo install shows the link to open
the app on a phone; appo ship puts the app on the stores.
npm install -g @appolabs/appo
appo new tuosito.com # create the app (name: Tuosito) and start the sessionA bare domain gets https:// prepended. --name is optional: without it the
name derives from the URL hostname (leading www. stripped, first label,
capitalized: www.pizza-mario.it -> Pizza-mario). Creating an app needs an
Appo account: on a terminal without a login, the command asks whether you
already have one and opens the sign-up page (no) or the login page (yes) in the
browser; without a terminal it prints Not authenticated. Run: appo login and
exits 1.
The session asks, in the order the server decides: consent, then who adapts the
website, which phone to install it on, how an iPhone installs the app, and whether
Appo's team should help with the next step. Consent is two answers: the website
is yours or you may publish it (--owner-authorized) and you accept the Terms
of Service, https://goappo.io/en/terms (--accept-tos). Every other question
has a flag, so a script or an agent can answer up front:
appo new <url> --owner-authorized --accept-tos --fix self --phone android
appo start <url> --fix appo --phone iphone --iphone direct --appo-help no| Flag | Values | Question |
|---|---|---|
--fix |
self, appo |
Who adapts the website to the app |
--phone |
iphone, android |
Which phone you install it on |
--iphone |
direct, testflight |
How an iPhone installs the app |
--appo-help |
yes, no |
Whether Appo's team helps with the next step |
On a terminal the session ends with the app on your phone: the install link, a QR code
(only on a terminal; NO_COLOR turns the colour off) and a wait for Enter.
After a --fix self answer, if claude or codex is on your PATH, it asks
whether that agent should make the fixes and, on yes, registers the Appo
connector for it (see mcp).
Without a terminal, or under --json, a question that still needs an answer is
not asked: the command prints an input_required envelope on stdout (stderr
without --json) and exits 2. The envelope has error: "input_required" and
a code: decision_required (one pending question; details.answers lists
each answer with the flags that give it) or attestation_required (the two
consent flags are missing; nothing is created and no request is issued). An
agent asks the user, then re-runs with the flags named in the envelope; it does
not choose them itself.
Exit codes: 0 the session reached its end or a state that only time changes,
1 runtime or API error or a refused consent, 2 an answer is still needed or
the arguments are invalid.
appo start [url|id]Resumes the guided session of an existing app (by address or id) and creates it
when the address is new. Without an argument it uses your only app, or a picker
on a terminal. appo alone does the same for your only app; with none or
several it prints a short help. The flags are those of appo new; --json
prints the last server response. On a terminal it ends with the line to repeat
the same answers next time.
appo install [url|id]The same session as appo start, stopped at the link: it prints how to open the
app on a phone and does not wait.
appo ship <id> signals publish-intent on an existing app — Appo issues the
build server-side and submits it to the stores for you. It stops at a
confirm-gate before the publish unless you pass --yes. The same verb covers
republishing and resubmitting after an App Store rejection — there is no
separate reship/build/resubmit verb.
appo ship <id> # publish dry run (gate), nothing written
appo ship <id> --yes # confirm and shipAppo builds and submits server-side; track progress with appo status <id> or
appo install <id>. Flags: --stores <list> (override the target stores;
defaults to the app's stores), --yes (confirm the publish step; --confirm
is an alias), --json (emit one {steps, final_state} object — final_state
in {shipped, gated, blocked} — instead of the live stream). The build platform
is decided by Appo (the operator) — you ship an outcome, not a build
configuration. ship maps its final lifecycle state to the
exit codes: 0 shipped, 1 blocked, 2 usage error,
3 gated (publish dry run shown, nothing written — re-run with --yes).
appo init # device-flow login, then a readiness report
appo init --token <pat> # non-interactive first login for CI/agentsBootstraps the config in ~/.appo/config.json (owner-only) and performs the first
login. It is idempotent: if the active environment already has a stored token,
init reports the active env and writes nothing (no clobber). On success it prints
the active env, the API base, and the next step (appo new --url <u>).
appo login # authenticate via the browser (device flow)
appo login --token <pat> # authenticate non-interactively with a dashboard PAT
appo logout # revoke the token server-side and clear it locally
appo whoami # show the active environment + API base + livenessappo login prints a link and a short code and opens your browser. Register or
sign in, approve the connection, and the CLI receives its token automatically. The
token is stored in ~/.appo/config.json (owner-only) and is never printed.
appo login --token <pat> validates a pasted personal access token against the API
before storing it; a rejected token is not written. Create a PAT in the dashboard.
appo logout revokes the token server-side, then always clears it locally (even if
the revocation call fails). appo whoami reports the environment, API base, and an
app count as a liveness probe — it never prints the token.
appo env list # list configured environments
appo env use <name> # switch the active environmentEach environment is a named profile in ~/.appo/config.json with its own stored
token and API base. Authenticating against a new environment (appo login --env staging) adds a profile without clobbering the others. env list marks the active
profile with * and never prints tokens. Select an environment per-command with
--env <name> or the APPO_ENV variable.
appo apps list # list your apps
appo apps show <id> # show one app
appo apps check <id> # check the site of an app again
appo apps update <id> [--name <n>] [--url <u>] [--icon <https-url>] [--permission <name>=<on|off>] [--prepare on|off [--owner-authorized --accept-tos]] # edit name, base URL, icon, permissions; hand preparation to Appo or take it backapps list prints id,
name, publication state, and base URL per app. apps show <id> prints the full app
overview. apps update <id> edits only the fields you supply — the app name, its base
URL, the app icon, and its native permissions; at least one field is required. --icon
takes an https image URL, which Appo fetches and sets via the icon endpoint.
--permission takes <name>=<on|off> and is repeatable; name is one of tracking,
camera, microphone, nfc. Only the toggles you pass change — the rest are left as
they are. When --name/--url, --icon, and --permission are given together the
field update runs first, then the icon, then the permissions. --json prints null
for a name/URL-only update (it returns no body) and, for the parts that ran,
{ icon_url } and/or { permissions }. --prepare on|off hands the website adaptation to Appo's team (on, with --owner-authorized and --accept-tos) or takes it back (off). Not confirm-gated (reversible).
To republish an existing app (or resubmit after a rejection), use
appo ship <id>— Appo rebuilds and resubmits server-side. There is no separatereship/build/resubmitverb. You ship an outcome, not a build configuration.
appo status <id> # app overview
appo status <id> --build <buildId> # one build's statusPrints the app overview in sentences: name and address, the publication state in
words, the next step, the pending question when there is one and the install message
as given by the server (the same as get_app_overview). While the app is not
ready it lists what can be done meanwhile and when to check again; once it is
ready it prints the install link. With --build, one build's fields. With
--json it prints the raw v1 response body verbatim.
Three older forms keep working and are left out of appo --help: appo run [id]
is appo start [id]; appo apps create --name <n> --url <u> [--owner-authorized --accept-tos] creates an app without starting the session; appo publish <id> --confirm is the publish step that ship wraps (see publish).
appo rejection <id>Shows the active App Store rejection (status + required action). When there is no
active rejection it reports so and exits non-zero. --json emits the raw envelope.
appo fix-recipe <id>Shows the fix recipe for a rejection — slug, fix type, agent steps, and
limitations. --json emits the raw envelope.
appo publish <id> --confirmPublishes to the app's stores. Destructive: without --confirm it prints a dry run
and exits with code 3 (confirm required) — no write is performed. By default it
targets the app's stores; --stores <list> is an optional override accepting the
canonical store tokens or the apple/google aliases.
appo push <id> --title <t> --body <b> [--target-url <u>] [--image-path <p>] [--scheduled-at <when>] --confirmSends a push notification. Destructive: without --confirm it prints a dry run and
exits with code 3 — nothing is written. The dry run omits the recipient count (exposed only
after send). On success it reports the number of devices reached.
appo suggest <id>Prints what Appo found on the site and how the app's web view behaves: the stored
findings with the fix for each, followed by the web view contract (device safe
areas, injected code, policy). Run it before appo customize to see what to adjust.
--json prints the raw body. Exit codes: 0 printed, 1 API error, 2 missing id.
appo customize <id> [--css <c>|--css-file <p|->] [--js <j>|--js-file <p|->] [--preset <name>] [--out <dir>] [--confirm]Reads or writes the owner's block of the app's injected CSS and JavaScript. Without
code flags it prints the current block; with --out <dir> it writes the block to
appo-assistant.css and appo-assistant.js in that directory (an existing file with
different content is not overwritten). With code flags it prints a dry run (what
changes, size against the limit) and exits 3; --confirm writes it. --css-file -
and --js-file - read from standard input. An empty value removes that part of the
block. customize writes only your block: Appo's part of the field stays as it is.
The edit loop:
appo customize 7 --out ./appo
appo customize 7 --css-file ./appo/appo-assistant.css
appo customize 7 --css-file ./appo/appo-assistant.css --confirmExit codes: 0 read or written, 1 refused by Appo, 2 bad arguments, 3 dry run.
appo apps remove <id> [--confirm]Removes an app that was never published. Without --confirm it prints a dry run and
exits 3; nothing is removed. An app that has been published is refused by Appo.
Exit codes: 0 removed, 1 refused by Appo, 2 bad arguments, 3 dry run.
appo testflight <id> --confirmSends a new build of the app to TestFlight. Without --confirm it prints a dry run
and exits 3; nothing is started. The output names the build; appo status <id>
shows when it is ready. Exit codes: 0 build started, 1 API
error or refused, 2 bad arguments, 3 dry run.
appo download <id> # newest ready artifact
appo download <id> --build <n> # a specific build
appo download <id> --output <path> # choose the destination fileDownloads the installable artifact (APK/AAB for Android, ad-hoc IPA for iOS) once
the build is ready. Without --build it picks the newest ready build; if the
latest build is still running it reports that build's status instead. The filename
derives from the artifact URL unless --output is given. --json reports
{ build_id, file, bytes }. Builds start automatically once the app is ready; appo install <id> prints the install link.
appo devices list # registered iOS test devices
appo devices register # registration link + QR (open on the iPhone)iOS test builds are signed ad-hoc against your registered devices — no Apple
developer account and no Apple login needed. devices register prints a signed
24h link and a scannable QR; open it on the iPhone and follow the enrollment
prompt to register the device's UDID, one time per device. devices list shows
your pool (UDIDs are truncated server-side).
appo mcp # register the Appo MCP connector on your AI agentappo mcp registers the remote Appo MCP connector, https://apps.goappo.io/mcp
(or the active profile's API host plus /mcp, so --env/--api select another
host), on every supported agent CLI found on your PATH. It runs the same command
you would type by hand:
claude mcp add --transport http --scope user appo https://apps.goappo.io/mcpcodex mcp add appo --url https://apps.goappo.io/mcpFor other clients (Cursor, Windsurf, VS Code) it prints the .mcp.json snippet
{ "mcpServers": { "appo": { "url": "https://apps.goappo.io/mcp" } } }, and for
clients that only accept stdio servers the npx mcp-remote <url> bridge. Sign-in
is the browser consent that opens the first time the agent uses Appo; no token is
configured. Exit code is 0 when at least one agent was registered, 1
otherwise.
Run without a terminal (from an agent's shell tool, or in CI), the command does
not wait for the browser sign-in that Codex's mcp add opens: the connector is
registered and the sign-in is completed later with codex mcp login appo.
In a terminal, appo mcp asks, for each agent it registers, whether to add a short
section, delimited by
<!-- appo-start --> and <!-- appo-end -->, to that agent's user-level
instructions file; an empty answer means yes, n skips it. Without a
terminal, or with --json, nothing is written unless --agent-instructions is
given, and the command prints one line naming that flag; the connector
registration and the exit code are the same in both cases. The files are
~/.claude/CLAUDE.md for Claude Code (or
$CLAUDE_CONFIG_DIR/CLAUDE.md), ~/.codex/AGENTS.md for Codex (or
$CODEX_HOME/AGENTS.md). An agent may load MCP tools on demand, in which case a
request such as "what is the status of my app" is read as a question about the
working directory; the section tells the agent the app lives in Appo. Text
outside the markers is left untouched, a rerun replaces the section in place,
and it can be edited or removed freely.
appo upgrade # update to the latest @appolabs/appo via npm
appo --version # print the CLI + Node version (alias: -v)appo upgrade runs npm install -g @appolabs/appo@latest and reports the result.
The CLI also performs a daily, best-effort update check and prints a one-line
notice to stderr when a newer version is available; the check is skipped under
--json and silently swallows network errors.
| Variable | Purpose |
|---|---|
APPO_TOKEN |
Ephemeral token, highest precedence, never written to disk |
APPO_ENV |
Active environment/profile (overridden by --env) |
APPO_API_BASE |
API base URL (overridden by --api) |
Create a PAT in the dashboard, then appo login --token <pat> or set APPO_TOKEN
in your environment (for example in CI/agents) to authenticate without the browser
flow. The default API base is https://apps.goappo.io (production); override it with
--api or APPO_API_BASE (for example http://localhost:8002 for local development).
| Code | Meaning |
|---|---|
0 |
success |
1 |
runtime / API error (including auth failure — run appo login) |
2 |
usage error (missing or invalid arguments) |
3 |
confirm required (destructive verb invoked without --confirm; no write) |
ship maps these to its final lifecycle state: 0 shipped, 1 blocked,
2 usage, 3 gated (publish dry run shown, nothing written — re-run with --yes).
For non-interactive contexts (CI pipelines, agents) authenticate without the browser device flow:
export APPO_TOKEN=<pat> # ephemeral, never written to disk
# or, to persist into a profile:
appo login --token <pat>APPO_TOKEN has the highest precedence and is never persisted. appo login --token <pat> validates the token and stores it in the active profile. Combine
with APPO_ENV and APPO_API_BASE to fully configure a headless environment.
Releasing @appolabs/appo to the npm registry is a deliberate human action. The
CLI tooling never publishes automatically.
The release workflow (.github/workflows/release.yml) publishes on push to
master/main using npm OIDC trusted publishing (--provenance --access public).
There is no NPM_TOKEN secret to manage.
One-time setup (user-performed):
- On npmjs.com, open the package's Settings → Trusted Publisher.
- Provider: GitHub Actions; Organization/user:
appolabs; Repository:appo; Workflow filename:release.yml; Environment: blank. - Confirm
package.jsonrepository.urlmatches the GitHub repository exactly.
First publish: npm trusted publishing requires the package to already exist on the registry. Two paths are available, and you choose:
- Run one manual
npm publish --access publicforv0.1.0, then rely onrelease.ymlfor subsequent patch releases; or - If your local npm is OIDC-capable, publish via that path for the first release.
Before any publish, confirm package ownership and the intended version: a package
named @appolabs/appo already appears on the registry. Verify you own the name and
that the version you are publishing is correct before running npm publish — do not
assume the name is unclaimed.
The API core ships as importable modules alongside the CLI, so other tools can reuse the same lifecycle calls, auth resolution and profiles instead of maintaining a parallel client:
import { getInstall, listApps } from "@appolabs/appo/ops";
import { resolveApiBase, activeProfileName, storedToken } from "@appolabs/appo/config";
const env = activeProfileName();
const apiBase = resolveApiBase(undefined, env);
const install = await getInstall(apiBase, 128, env);Token resolution matches the CLI: APPO_TOKEN first, then the active profile's
stored token from appo login. The exported modules (./ops, ./api,
./config) never print or exit — errors throw with the v1 envelope attached
(err.status, err.envelope). Type stubs ship as .d.mts next to each module.