I'm very excited to announce that we've released RevenueCat CLI 1.0! It's something I've been thinking about for a long while, and this finally feels like the right time.
I've been part of the fastlane core team since 2015. Working on automation for building and shipping apps gave me plenty of ideas for what a RevenueCat CLI could do. Some of our customers have been asking for one for years too, so I wasn't the only one who wanted it.
This post is about how we designed it for two kinds of users at once: developers, and the coding agents they work with.
Why now
A RevenueCat CLI would have helped some customers years ago. People who prefer a terminal could have used it directly, and teams could have scripted their repeatable work. But for most customers, the dashboard was easier. You could see your configuration and change it without learning commands or looking up IDs. That made a CLI hard to justify.
Coding agents changed who a CLI is for. Now when someone asks their coding agent to add subscriptions to their app, the agent not only writes the purchase code, but also sets up the products, entitlements, and offerings in RevenueCat. That person might never even type a RevenueCat command themselves.
Agents also changed what a CLI needs to do. When a person writes a script, they've already learned the tool and worked out which commands to run in what order. On the flip side, an agent is usually working that out as it goes.
That's why now. A CLI finally has a much bigger audience. It has to make sense to an agent that's still learning it, and it has to know when to stop and hand things to a person.
Designing for agents
I had Claude, Codex, Gemini, and Grok use every part of the CLI, with different models and effort levels. When an agent didn't finish, I asked what it had tried and what would have helped. Those answers shaped a lot of the CLI. For example, one agent noticed that rc customers simulate-purchase and rc customers show returned a customer's entitlements in two different shapes, so it had to handle both. Now both return active_entitlements.
Not every answer held up, though. When an agent said something worked well, it usually did. When it reported a bug, it was usually wrong, so I checked each one before acting on it. For example, one agent said our flag descriptions were empty. But every flag had one. The agent had looked for a field that doesn't exist, instead of the description field.
An agent has to find a command, run it, and recover when it fails. Watching agents do all three showed us problems we missed when we tested one command at a time.
An agent also needs more than command names and flags. It needs to understand what a command is for, when to use it, and how it fits with the other commands. Through rc commands and rc schema, it can look up descriptions, inputs, examples, and limitations from the version of the CLI it's actually running.
We put workflow guidance in those descriptions too. Paywall commands explain how to use local assets and how to continue an editing session.
The commands need to match what someone is trying to do, not how our API is organized. rc customers show combines customer, subscription, and purchase information from several API calls. An agent can look into a customer without first learning which endpoint holds which data.
Every response also costs the agent tokens and context. JSON output helps, but most of the time an agent doesn't need every field. If it only needs customer IDs, it can pass a jq expression to --format and filter the result inside the CLI:
On one of our test projects, a page of 20 customers came back as about 8 KB of JSON. Filtered to IDs, it was about 0.6 KB, under a tenth of the size. Schemas work the same way. An agent can ask for one command's schema, or get all of them at once with rc commands --schemas when it needs the bigger picture.
Errors need the same care. Early on, recovery hints only showed up for people (not agents). In JSON mode, an agent got the error but not the hint about what to do next. Now the hint travels with the error: a person sees it as text, and an agent gets it as a hint field.
Here's what that looks like when an API key is rejected: the message says what went wrong, and the hint says which credential the CLI used and what to try next. A person sees:
An agent running with --json gets:
Warnings work the same way. If the CLI generates a paywall but can't save it, a person sees a warning and an agent gets saved_to_draft: false. Either way, they know the paywall wasn't saved before they decide what to do next.
Humans matter equally
Agents aren't the only ones using the CLI. Plenty of developers will run rc commands themselves. Even when an agent is driving, a person is reading the output, approving changes, and handling the steps only they should do. The Command Line Interface Guidelines say a tool people use "should be designed for humans first." We didn't want to give that up to make room for agents.
Setting up Apple keys is a good example. rc setup apple signs in to Apple with your Apple Account, then creates the keys RevenueCat needs and uploads them for you. Signing in takes your password and a verification code sent to your device, and Apple says to never share either with anyone. So an agent shouldn't do this step. The command is marked requires_human, and its metadata tells agents to never collect Apple credentials in chat. When you run it, your password goes straight to Apple. It's never sent to RevenueCat or saved by rc.
The rest of the setup needs that kind of attention too. If we had only built for agents, the output could easily have been a list of IDs and status codes. That works for an agent, but not for a person. When I set up a project, I want to know which account I'm using, which project I'm configuring, and what already exists. I want the explanation next to the decision it affects. Then I want to watch each step run and know where to pick up next.
rc setup is where both kinds of users meet: it starts with you, it signs you in, asks whether to create a new project or use an existing one, checks how far along your app already is, and asks which coding agent you use. Each answer stays on screen after its prompt closes, so you don't have to remember a screen that's gone. Then it asks once before launching your agent in the same terminal, with a prompt that already includes everything you chose. The agent does the rest: the Test Store catalog, entitlement, offering, paywall, and SDK integration. When it gets to Apple sign-in, it hands that step back to you.
Regular commands work the same way. A person gets readable names and interactive pickers, and an agent gets structured output and flags. If a value is missing and nobody is at the terminal to pick it, the command stops and names the flag to pass. Successes, warnings, and errors each have their own symbol, and safety notices are never dimmed, so you can spot what needs attention without reading every line. When a command needs approval, it asks, and an agent can only skip that by passing --yes. None of this is left up to each command. Every prompt, confirmation, and message comes from the same small set of building blocks, and the tests fail if a command builds its own.
If you're building a CLI for agents
Most of what we learned isn't specific to RevenueCat. If you're building a CLI that agents will use, here's what we'd do again:
- Put the guidance in the interface: descriptions, examples, and limits should come from the version that's actually running
- Shape commands around tasks, not endpoints: one command that answers the question is better than three calls the agent has to piece together
- Let agents ask for less: filtering and per-command schemas keep an agent's context small
- Keep recovery hints in every output mode, so an agent gets the same next step a person does
- Test with real agents: run real tasks across different agents and models, and when one gets stuck, ask it what would have helped
- Check what agents report before you act on it: their bug reports are often wrong
- Make every command work without a prompt: anything a picker asks for should also have a flag, and a missing answer should be an error, not a guess
- Mark the steps that need a person, so the agent knows when to hand off
Why a CLI alongside MCP
You can already use RevenueCat through the dashboard and our MCP server. The CLI adds a third way.
MCP works well for assistants in chat apps and anywhere without a shell. Because it's a remote connection, there's nothing to install. How it handles sign-in, local files, and progress updates depends on the app hosting it.
The CLI runs on your machine, inside your project. It can read local files, stream output as it works, and run in scripts or CI jobs. The tradeoff is that you have to install and update it. Plenty of developers will use both: MCP in a chat app, and the CLI in their project.
Secrets are another difference. Anything sent through MCP becomes part of the conversation. The model reads it, and the chat app or coding agent usually saves it in its history. Private keys, API keys, and other sensitive data shouldn't end up there. With the CLI, they don't have to. When rc setup apple creates your Apple keys, it uploads them straight from your machine to RevenueCat. They're never printed or saved, so they never show up in your agent's context or its history.
When I tested agents, I also wanted to see which tool they would choose if they had both the CLI and our MCP server. I tried a version of the CLI with only a limited set of commands too. In both cases, the agents stayed in the terminal. When the command they needed wasn't there, they found rc api and built raw API requests themselves. Removing commands didn't change which tool they preferred. It only took away the guidance those commands gave them.
Because the CLI runs inside your project, your coding agent can send local images and design docs to the Paywalls AI editor. The editor reports its progress as it works, and the CLI streams it, so you and your agent can see what it's doing rather than waiting on a silent command.
Your coding agent can also talk to Rico, the AI agent for your RevenueCat data, through rc rico. That turns it into a conversation between two agents. Your coding agent knows your code and what you're building. Rico knows your RevenueCat data and configuration. Together they can answer questions that need both, like whether the offering your app asks for is set up the way the code expects. Your coding agent asks Rico a question, reads the answer as it streams in, and follows up in the same conversation, so you don't have to copy messages back and forth. Rico only sees what your agent puts in its questions. It doesn't get your codebase.
Try the RevenueCat CLI now
The CLI covers setup, catalog management, paywalls, experiments, targeting, customer operations, and analytics. That's 161 commands across 35 groups, and an agent can find every one of them through rc commands. To start with guided setup, run this from your app's directory with Node.js and npm installed:
Setup installs the RevenueCat AI Toolkit skills and can launch your coding agent with instructions for configuring a Test Store catalog and integrating the SDK. The setup guide covers that workflow and other installation options, and the source is on GitHub.
Already using RevenueCat? Run rc login, then ask your agent to:
- Design a paywall that matches your app with
rc paywalls generate - Ask Rico how your trials are converting with
rc rico - Or check how your MRR is doing with
rc charts show mrr😉
I'd love to hear how you and your agents use it, and what you'd like it to do next.

