atmn --help or atmn <command> --help to see the latest options.
Global flags
These work with every command.Environment variables
The CLI reads.env.local and then .env from your repo root, your config folder and the current folder. Anything already set in your shell wins over the files.
In CI, set the key as a secret, install your dependencies, and push:
Setup
atmn init
Set up your repo end to end: connect to Autumn, create the config folder, pull what’s already in your organization, and install the agent skills. See getting started for what it creates.
With no key on disk,
init asks how you want to connect. In headless mode it prints the two flags and stops; run it again with one of them to continue. Running init again on a repo that’s already set up is safe: it keeps your config and only fills in what’s missing.
atmn login
Connect to Autumn and write your organization’s keys to .env. Opens your browser and lets you pick an organization. Outside a terminal it prints the URL for you to open.
atmn env
Show which organization, environment and key your commands will use:
Config
atmn push
Compare your config with what’s in Autumn, and apply the difference.
A plain
push is always a preview. It shows what would be created, updated or deleted, and nothing is sent until you add --yes. Deletions work the same way: a plan you remove from the config is removed from Autumn on the next push --yes.
If a change affects a plan version that has customers, Autumn drafts a migration and push prints the link to run it. After applying, the CLI writes the internalId of each new feature and plan back into your config files.
atmn pull
Write what’s in Autumn back into your config files.
By default,
pull updates in place: it adds new features and plans, updates existing ones, and removes deleted ones, keeping your formatting. If you have no config yet, it asks where to create one (pass -c <dir> to skip the question).
--overwrite --yes rewrites autumn.config.ts and the features.ts, plans.ts and rewards.ts beside it from Autumn. Use it after switching organizations, or to move a 1.x config to the new format. Nothing is deleted, and files that don’t import from atmn are left alone.
atmn reset
Wipe a sandbox: every customer, plan, feature and migration draft. Keys and settings stay.
reset refuses to run against a production key. Run atmn push --yes afterwards to rebuild the sandbox from your config.
API
atmn api
Call any public API endpoint from the terminal. The command name matches the endpoint: atmn api <group> <method>.
Body fields are passed as
key=value. Numbers and booleans are converted for you, and fields that take an object or array are parsed as JSON:
--body with key=value pairs; the pairs override fields in the body. Responses are printed as JSON. On an error, the status line goes to stderr, the response body goes to stdout, and the command exits with code 1.
atmn api uses the same key as every other command, so -p and --sandbox work with it. Run atmn api --help to list the groups, and atmn api <group> <method> --help to see an endpoint’s fields.
Groups: balances, billing, customers, entities, events, features, invoices, keys, licenses, plans, platform, referral_programs, referrals, rewards, sandboxes.
Sandboxes
Sandboxes are separate copies of your organization, each with its own plans, customers and API key. Use them to test changes without touching your main sandbox.atmn sandbox list
atmn sandbox create <name>
Creates the sandbox and writes its key to .env as AUTUMN_SANDBOX_<ID>_SECRET_KEY.
atmn sandbox use [name or id]
Writes AUTUMN_SANDBOX_ID to your .env, so every later command targets that sandbox. With no name it asks which one. Add -p to any command to target production regardless of the pin.
atmn sandbox delete <id>
sandbox list, create and delete always use your main key (AUTUMN_SECRET_KEY), even when a sandbox is pinned. If you want to target a sandbox for one command without pinning it, pass --sandbox <id>.Skills
The CLI ships with skills that teach coding agents how to set up Autumn, model pricing, and integrate the API:autumn-setup, autumn-catalog, autumn-integrate and autumn-concepts.
atmn skills [name]
List the bundled skills, or print one:
atmn skills install
Write the skills into a skills/ folder next to your config, so your agent can use them. atmn init does this for you.
atmn skills update
Bring installed skills up to the version bundled with this CLI. push and pull tell you when yours are out of date.
Headless mode
Outside a terminal (CI, a pipe, an agent) the CLI never prompts. When a command needs an answer, it prints the flag to pass and stops, so you can run it again with that flag. Force this behavior with--headless.