Set up the SDK, manage products, campaigns, and paywalls, query your analytics data, and call the API — from your terminal or your coding agent.
npm install --global superwall
superwall loginOr run it without installing: npx superwall. The package installs both
superwall and the short sw command. Upgrade any time with
superwall upgrade - the CLI also tells you when a new version is out.
superwall login opens your browser once and every command shares that
session. In CI, log in without a browser: superwall login --api-key <key>.
If your account belongs to more than one organization, pick one with
superwall orgs use (you'll otherwise be asked the first time it matters).
superwall integrate # set up Superwall in your app from scratch
superwall migrate # switch from RevenueCat, Adapty, or Qonversion
superwall review # audit an existing setup; add --fix to repair issues
superwall doctor # quick health check
superwall feedback # tell us what's working and what isn'tintegrate works out what kind of app it's looking at, connects it to your
Superwall account, and runs your own coding agent (Claude Code or Codex,
headless) to install and configure the SDK. Then it walks you through the
rest: products, campaigns, placements, paywalls, and verifying it all on a
real device.
Prefer to drive the agent yourself? Add --skill to integrate, migrate,
or review and the CLI prints the full playbook for your project's framework
instead of running it — paste it into any agent.
Everything in the dashboard, from the terminal:
superwall apps list
superwall products create pro_monthly --price 9.99 --period month
superwall products storekit # generate a local .storekit file
superwall entitlements create pro
superwall campaigns create "Onboarding upsell" onboarding_complete
superwall paywalls list
superwall bootstrap # the whole account tree at a glancelist is the default action, so superwall products means
superwall products list. Add --json for machine-readable output, and
--project <id> / --app <id> to scope when you have more than one. Run
superwall <command> --help for every action and flag.
Run SQL directly against your organization's ClickHouse analytics data:
superwall query "SELECT count() FROM transactions"
superwall query --file mrr.sql
cat query.sql | superwall queryUse it for anything you'd build on raw data: ad hoc analysis, custom
dashboards, scheduled reports, agent workflows. --json returns ClickHouse's
native JSON envelope. Your session needs data:read access.
Any Superwall API endpoint, authenticated with your session:
superwall get /v2/products
superwall post /v2/products -d name="Pro Monthly" -d price:=9.99
superwall delete /v2/products/prod_123-d key=value sends a string, key:=value sends typed JSON (numbers,
booleans, objects), and key[sub]=value nests. On get and delete, -d
params become query parameters.
The entire App Store Connect API, proxied and signed by Superwall — no
.p8 file or JWT to manage locally. Connect your credentials once:
superwall asc keys set --key-id <id> --issuer <id> --key-file AuthKey.p8Then it's the raw ASC API with the sharp edges filed off, because the CLI is schema-aware: it keeps a copy of Apple's own OpenAPI spec (fetched on first use, refreshed in the background) and knows every endpoint, field, and enum.
Look up the exact schema for anything — no guessing, no hunting through Apple's docs:
superwall asc docs # browse every resource
superwall asc docs "introductory offer" # search by keyword
superwall asc docs /v1/subscriptions post # required fields, enums, relationshipsWrite with flat params. The CLI assembles the JSON:API body for you and
validates it locally, so a mistake comes back as a precise fix instead of one of
Apple's opaque 409s:
superwall asc post /v1/subscriptions \
-d name="Premium Monthly" -d productId=com.acme.pro \
-d subscriptionPeriod=MONTHLY -d group=<groupId>✗ Invalid POST /v1/subscriptions body:
• subscriptionPeriod "MONTHLY" not allowed — use ONE_WEEK|ONE_MONTH|…|ONE_YEAR
Fix the value and it goes through. Shortcuts cover the common reads
(asc apps, asc products <bundle-id>, asc subscriptions <bundle-id>);
everything else is asc get|post|patch|delete /v1/…. Between the schema lookup
and the validation, an agent can build and manage your whole ASC catalog —
groups, subscriptions, prices, introductory offers — without ever memorizing the
API or eating a silent rejection.
Pass --json to any command: stable output shape, structured errors, never
prompts. --no-interactive keeps the human-readable output but drops the
prompts.
Logging in also installs the Superwall agent skills
into your coding agent and keeps them updated. superwall skills reinstalls
them (or a subset) manually.
The CLI sends fully anonymous usage events (which workflow ran and whether it
succeeded — never emails, IDs, file paths, SQL, prompts, or error messages).
Opt out with SUPERWALL_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1.
Read AGENTS.md first - command naming, UI rules, skill authoring, and the sync checklist are decided conventions, not suggestions.
bun install
bun dev # run from source (bun bin.ts)
bun run build # build dist/ with tsdown
bun run typecheck
bun test
bun run link:global # build + link `superwall` and `sw` globally