The Ruby Native CLI lets you deploy builds and manage your app from the terminal.
Log in with your Ruby Native account:
bundle exec ruby_native login
This opens your browser, authorizes the CLI, and stores a token locally.
Set the RUBY_NATIVE_TOKEN environment variable instead of using ruby_native login. Generate a token by running ruby_native login locally, then copy it from ~/.ruby_native/credentials.
# GitHub Actions example
env:
RUBY_NATIVE_TOKEN: ${{ secrets.RUBY_NATIVE_TOKEN }}
Build your app:
bundle exec ruby_native deploy
This builds every platform you have configured. If only iOS is set up, only iOS builds; adding Google Play later means the same command starts building both, with nothing to change in your pipeline.
The CLI queues the builds, then waits for all of them. It exits non-zero if any platform fails, so a broken Android build cannot pass behind a successful iOS one. Press Ctrl+C to stop waiting without cancelling anything.
bundle exec ruby_native deploy --ios
bundle exec ruby_native deploy --android
--platform=ios, --platform=android, and --platform=all work too.
Once a version is live, Apple closes it, so a deploy of a live app builds the next patch on its own: 1.0 goes live, and the next deploy is 1.0.1. Name a different one with --version:
bundle exec ruby_native deploy --version=1.1
See Updating your app for when a live app needs a build at all.
Add --if-needed to only build when the gem version has changed since your last successful build:
bundle exec ruby_native deploy --if-needed
This compares RubyNative::VERSION in your bundle against the gem version from the most recent build of each platform you have configured. When they all match, the deploy is skipped (exit code 0). If any platform is behind, or has never built, a build is triggered.
A typical CI setup:
# .github/workflows/deploy.yml
- name: Deploy to Ruby Native
run: bundle exec ruby_native deploy --if-needed
env:
RUBY_NATIVE_TOKEN: ${{ secrets.RUBY_NATIVE_TOKEN }}
This way every Rails deploy checks if a native rebuild is needed, but only triggers one when the gem actually changed. The command triggers the build and exits immediately without waiting for it to finish, so it won't hold up your CI pipeline.
If a build fails for any reason, you'll get an email with the error details.
Every command that talks to rubynative.com reads the app from ruby_native.app_id in config/ruby_native.yml. Link the project once:
bundle exec ruby_native link
With one app on the account it links that one; with several it lists them, and ruby_native link APP_ID picks. The id is in the dashboard URL and in the list. deploy links on its own the first time if nothing is linked yet, and every command also takes --app=APP_ID for a one-off.
Read every view in your app and report signals that will not work:
bundle exec ruby_native check
Unknown signals are ignored in the app, mistyped ones render fine but silently fail. check finds those before a build, along with duplicated signals and version mismatches. See Debugging for what it catches and how to read the output.
Exits 0 when everything passes and 1 on an error, so it drops straight into CI.
| Option | Description |
|---|---|
--deployed |
Also compare against the build your users have, not just the gem in your Gemfile. Needs you to be logged in. |
--paths=app/views,app/components |
Directories to scan. Defaults to app/views. |
check needs the herb gem, which Rails 8.2 and later already include through Action View. On earlier versions, add gem "herb" to your Gemfile.
deploy runs the same checks before triggering a build and stops if it finds a problem, so a broken signal never costs you a round trip through TestFlight. Skip it with --skip-check:
bundle exec ruby_native deploy --skip-check
If the herb gem is not installed, deploy skips the check and builds as normal.
Start a Cloudflare Tunnel to your local Rails server and print a QR code to scan with the Ruby Native app:
bundle exec ruby_native preview
Two options:
| Option | Description |
|---|---|
--port 4000 |
The local port your Rails server is on. Defaults to PORT when set, then 3000, the same way rails server picks its port. |
--url https://staging.example.com |
Skip the tunnel and point the QR code at a URL you already host. |
Hand a coding agent the same answers this CLI gives you:
bundle exec ruby_native mcp
This one is not a command you run yourself: it speaks MCP over stdin and stdout, and an MCP client starts it and calls its tools for you.
Register it in the project's .mcp.json, which Claude Code reads:
bundle exec ruby_native mcp install
Or install the Claude Code plugin, which bundles the same server with a skill for the whole journey:
claude plugin marketplace add ruby-native/gem
claude plugin install ruby-native@ruby-native
Then, in your agent, run the prompt the server publishes:
/mcp__ruby-native__ship
It walks every step to the App Store and Google Play in order and stops at the ones only you can take. See Ship. The server also tells the agent how the pieces fit on connect, and the tools below let it check its own work.
Any other client takes the same entry:
{
"mcpServers": {
"ruby-native": {
"command": "bundle",
"args": ["exec", "ruby_native", "mcp"]
}
}
}
Signals fail silently on purpose: an app that does not recognize a data-native-* attribute ignores it. A typo renders nothing and logs nothing, which is right for progressive enhancement and no help at all to something writing markup it will never see rendered.
Three tools answer from your checkout, with no account involved:
| Tool | Answers |
|---|---|
check_views |
The same checks as check, with a file and a line for each problem |
lookup_signals |
Every data-native-* attribute, the gem version it needs, and the helper that emits it |
validate_config |
What in config/ruby_native.yml the apps reject outright, and what they quietly ignore |
Four more read your account, using the token login already stored:
| Tool | Answers |
|---|---|
status |
The same report as status: where the app is, what is next, and what is in the way, with who clears each thing |
config_errors |
What real devices reported failing over the last 48 hours, with the decode error behind each one |
deployed_builds |
The build your users can install, and which signals it is too old to understand |
build_status |
Whether one build succeeded, and the error if it did not |
The pairs are the point. validate_config says what will fail to decode; config_errors says what did, and on which devices. check_views compares your templates against the gem in your Gemfile; deployed_builds compares them against the binary in the store, which is usually the answer when the markup is right and nothing happens on the phone.
Five more stage things with Ruby Native. None of them reaches Apple on its own: the icon and permission strings go into the next build, a tester is one App Store Connect call made with the key Ruby Native holds, and screenshots are published from the dashboard.
| Tool | Does |
|---|---|
permissions_set |
The same as permissions set |
testers_add / testers_list |
The same as testers |
icon_set |
The same as icon set |
screenshots_setup / screenshots_capture / screenshots_list |
The same as screenshots |
listing_push / listing_pull |
The same as listing push and pull. There is no publish tool on purpose |
demo_account_set |
The same as demo_account set |
One tool reaches Apple on its own, and it takes two calls:
| Tool | Does |
|---|---|
submit |
Without a token, returns exactly what would go to review and a token that expires in ten minutes. With the token, submits. The same as submit |
withdraw |
Takes the app back out of the queue. The same as withdraw |
An agent cannot skip the first call because it has no token. The summary it gets back is written to be read aloud, and the tool tells the model to show it and get an explicit yes. None of that is a guarantee, which is what withdraw is for: an accidental submission costs a place in the queue, not a release.
The first three tools never leave your machine. Nothing here deploys or submits. check_views needs the herb gem, the same as check.
An agent reading status sees a blocker marked human and stops: paying, creating the app record in App Store Connect, and the two questionnaires Apple gives no API for are steps only a person can take. It hands over the steps and waits, then reads status again.
link_app links the project to an app on the account, the same as ruby_native link, so an agent that is told no app is linked can fix that itself.
bundle exec ruby_native ship
Prints the prompt that walks a coding agent from a Rails app to the stores, for a client that cannot show an MCP prompt as a command. It is the same text the MCP server publishes as /mcp__ruby-native__ship, and it is one command on purpose: the agent reads status, does the next step when there is a tool for it, and stops with the exact steps when there is not. In order:
bundle add ruby_native and the install generator if config/ruby_native.yml is missing.validate_config, check_views, and a preview on your phone.ruby_native login on this machine, then link_app.status reports, in order. An agent's blocker gets done; a person's blocker gets the why, the URL, and the steps, and the agent waits.The agent never enters card details or pastes a key, never claims a step is done that status does not show as done, and asks for an explicit yes before submit sends anything to Apple.
bundle exec ruby_native status
Before ruby_native login or a linked app, status answers from the checkout: whether the config exists, which of the four layout changes from the first native pass are in place, whether a login is stored, and what to do next. After that, it reads the app from rubynative.com.
Where the app is on each store's track, what comes next, and what is in the way:
Trailhead (app_x7f2k9m1) · https://trailhead.app
Dashboard: https://rubynative.com/apps/42
iOS: Setup complete · build 12 (1.0.0) ready · not on the App Store
Android: Setup complete · build 3 (1.0.0) success · not on Google Play
Subscription: Launch, active
iOS: before submitting, 2 things need doing:
1. app_privacy (a person does this; Ruby Native cannot see it, so it is marked done on the dashboard)
Apple publishes no API for the App Privacy questionnaire. It cannot be read, written, or checked, so only you can say it is done.
https://appstoreconnect.apple.com/apps/6448000000/distribution/privacy
1. In App Store Connect, open the app and click App Privacy in the sidebar.
...
Android: before going live on Google Play, 2 things need doing:
1. play_content (a person does this; Ruby Native cannot see it, so it is marked done on the dashboard)
...
2. play_promotion (a person does this; Ruby Native sees it clear)
Ruby Native delivers every Android build to internal testing and never releases to production. Promoting is one form in Google Play Console, and it is yours.
...
Each track carries its own list, because an app can be live on one store and unbuilt on the other. Every blocker says who clears it and whether Ruby Native can see it clear on its own. The steps are the same ones the dashboard shows, so the terminal and the web never disagree. deploy prints the same list when the server refuses a build.
Pass an app's public id to read a different app than the one linked in config/ruby_native.yml.
bundle exec ruby_native apple key ~/Downloads/AuthKey_ABCDE12345.p8 --key-id=ABCDE12345 --issuer-id=… --team-id=…
Hands over the App Store Connect key. Only a person can mint it: in App Store Connect, under Users and Access, Integrations, App Store Connect API, generate a Team key with the Admin role and download the .p8, which Apple offers once. The Team ID is at developer.apple.com/account. The command reads the file, sends the four parts once, and waits for Apple's verdict: that the key authenticates, that it can sign, and that your agreements are signed. Nothing ever reads the key back. The dashboard's key form does the same thing for anyone who would rather upload it.
bundle exec ruby_native icon set app/assets/images/app_icon.png
A 1024x1024 PNG with no transparency. The icon lives in the asset catalog, so it ships with the next deploy, not the next Rails deploy.
bundle exec ruby_native permissions
bundle exec ruby_native permissions set camera "To scan tickets at the door."
The sentence iOS shows the first time the app asks for the camera, the microphone, or photos. An app cannot ask for one it has no sentence for. The same three strings decide which permissions the Android manifest declares, so one command covers both stores. Like the icon, these land in Info.plist and the manifest and ship with the next deploy. See Permissions.
bundle exec ruby_native testers
bundle exec ruby_native testers add [email protected]
Internal TestFlight testers on the app's "Ruby Native" group. Adding one is a single App Store Connect call, made by rubynative.com with the key it already holds, so the key never leaves it. The person has to be on the App Store Connect team already; anyone else is refused with what to do. Apple emails the invite, and only they can accept it.
Like every command below that takes --ios or --android, it covers every store the app has started unless you name one. Google Play has no list to add to: it keeps internal tester emails in Google Play Console, and its API takes Google Groups only, so the Android half answers with the Google Play Console steps, in the same shape as every other hand-off.
bundle exec ruby_native screenshots setup --paths=/,/inbox,/settings
bundle exec ruby_native screenshots setup --sign-in
bundle exec ruby_native screenshots capture
bundle exec ruby_native screenshots
setup --paths sets the 3 to 10 pages to capture for every started store (--ios or --android for one); each store keeps its own. Only pages behind a sign-in need the screenshot key: --sign-in generates it and prints it once, with where to put it, the app's Rails credentials and an initializer, and --rotate-key replaces it. Deploy the site after adding it. capture starts a capture of the deployed site for every started store (--ios or --android for one) and takes about five minutes; the bare command reports the setup and the latest capture per platform. The result reaches the stores with the listing: listing publish, or Review and publish on the dashboard. See Screenshots.
bundle exec ruby_native listing pull
bundle exec ruby_native listing push
bundle exec ruby_native listing publish
bundle exec ruby_native listing revert subtitle
The App Store listing lives in config/ruby_native_listing.yml, in your repo, so it can be written in your editor, reviewed in a pull request, and drafted by an agent:
name: Trailhead
subtitle: Trail maps and trip logs
android:
name: Droidhead
ios:
subtitle: Trail maps and phone logs
primary_category: Lifestyle
secondary_category: Travel
keywords: hiking,trail,gpx,backpack,summit,offline,map
whats_new: Offline maps for every US national park.
privacy_policy_url: https://trailhead.app/privacy
support_url: https://trailhead.app/help # optional; blank sends your site when App Store Connect has none
support_email: [email protected] # Google Play's contact email, required there
website: https://trailhead.app # optional; Google Play's contact website
copyright: 2026 Trailhead LLC
review_contact:
first_name: Pat
last_name: Reviewer
email: [email protected]
phone: "+1 503 555 0100"
description: |
Trailhead keeps every hike you have ever done in one place, and works
when your phone does not have signal.
An ios: or android: block replaces name, subtitle, description, or whats_new for that store alone, so the App Store copy never mentions Android and Google Play can use its longer short description. Everything else is the App Store's only and stays at the top level. Delete a block and that store goes back to the shared copy on the next push.
push checks each store's limits locally, on what that store will get (App Store: name and subtitle 30, keywords 100, What's new 4000, description 4000; Google Play: title 30, short description 80, full description 4000, release notes 500), and saves the draft to Ruby Native. Nothing reaches a store. pull writes the file from the draft Ruby Native holds, so a listing started on the dashboard can come back into the repo. publish pushes and then sends the listing, with any screenshots the store has not seen, to every store the app has started: the same act as Review and publish on the dashboard, and a different verb on purpose, so an agent told to push can never put words on the store. --ios or --android publishes to one.
Each of these reads App Store Connect and Google Play Console first. Words someone changed there since the last publish, in a field you haven't changed, come into Ruby Native, and push says which so you can pull them into the file. A field changed on both sides keeps yours, and push names it; publishing sends yours over the store's. revert takes the store's words for each field you name (--android for Google Play Console), and a pull afterward brings them into the file.
Once a version is live, Apple takes listing changes only with the next version. So on a live app publish saves the listing, and it goes out with your next release.
On Google Play the name is the title, the subtitle is the short description, and the description is the full description. Keywords and categories have no Play equivalent in the listing; Play's category, privacy policy, and content declarations live under App content in Google Play Console and have no API.
whats_new is what changed in this version. Apple requires it on every version after the first and refuses it on the first, so Ruby Native leaves it out until a version has been live. Google Play shows it as the release notes on each build, cut to 500 characters unless the android: block has its own.
copyright is the line on the product page, and Apple requires it before review. It starts as the year and your app's name. review_contact is who App Review calls or emails with questions. It never shows on the store, Apple requires it before review, and the phone starts with + and the country code; quote it, or YAML reads +15035550100 as a number and drops the +. The file is evaluated as ERB before it is parsed. Categories come from Apple's list; Games' subcategories and Kids' age bands are not modeled.
bundle exec ruby_native demo_account set --name=[email protected] --password=... --notes="Tap the map to start."
The sign-in App Review uses to get past your login. It is staged with Ruby Native and written to App Store Connect's review details when the listing is published. It stays out of config/ruby_native_listing.yml, which is committed. Pass --not-required for an app with no sign-in.
bundle exec ruby_native submit
Prints exactly what would go to App Store review, the listing, the build, the reviewer's sign-in, and the checklist with what a person confirmed, then asks. Type yes and it submits; anything else and nothing happens. --yes skips the question for a script.
Everything it needs has to be in place first, and it says what is not: a build on TestFlight, the app icon, the listing, screenshots, and three answers only you can give. They are given on the dashboard or right here with --confirm, and each one does something different.
--confirm=app_privacy says you have answered the App Privacy questionnaire in App Store Connect. Apple gives no API for it, so Ruby Native takes your word and writes nothing.
--confirm=age_rating writes to App Store Connect. It answers Apple's age rating questions for a 4+ app, which means nothing mature, no messaging or chat, no user-generated content, no ads, and no open web browsing. Ruby Native fills in every question still unanswered and never changes an answer that is already there. If your app has chat, posts between users, mature content, ads, or open web browsing, answer the age rating in App Store Connect first (App Information, then Edit next to Age Rating), then confirm.
Apple's content rights question takes one of two answers, --confirm=no_third_party_content or --confirm=third_party_content, and Ruby Native sends the one you pick to App Store Connect. A first version with no price there goes out free in every country, and the preview says so. The listing is published to App Store Connect as part of submitting if it has not been already.
With Android started too, submit also prints the Google Play side first; --ios or --android keeps it to one store.
Google Play has no submit of ours. Ruby Native delivers every Android build to internal testing and never releases to production, by design, so the Android half prints what stands between the app and the Play Store (the build, the app icon, the listing published to Play, screenshots, the category, and the App content declarations) and ends with the promotion steps for Google Play Console. Nothing is sent to Google.
The category and the App content declarations are Google Play Console forms with no API. Fill them in there, then say so on the dashboard or with --confirm=play_category and --confirm=play_content, which record your word and write nothing.
bundle exec ruby_native withdraw
Takes the app back out of the App Store review queue. Works from the moment it is submitted until Apple approves it; after release there is nothing to withdraw. It costs a place in the queue and nothing else, which is what makes submit safe to hand to an agent. There is no Android counterpart: Play releases are managed in Google Play Console, and --android says so.
bundle exec ruby_native logout # remove stored credentials
App Store and Play screenshots are captured by rubynative.com against your deployed site, not from the CLI. See the screenshots guide.