Introduction
You drive your mobile app with one command, laravel-mobile. This page lists every command and option, straight from the CLI’s own help, so it always matches the CLI on main. Add --help to any command to read the same text in your terminal.
If you are just getting started, begin with the installation guide. Commands that aren’t built yet, such as submit, are tracked on the status and roadmap page. This page follows the CLI on the main branch, which can be ahead of the latest crates.io release; the changelog lists what isn’t released yet.
laravel-mobile
Build native iOS, Android, and desktop apps from your Laravel Rust + Inertia app
Usage: laravel-mobile [OPTIONS] <COMMAND>
Examples:
laravel-mobile init # Add a mobile app to this Laravel Rust project
laravel-mobile install tabs # Add a native tab bar
laravel-mobile doctor # Check the iOS, Android, and desktop toolchains
laravel-mobile dev # Serve the app to phones on your network
laravel-mobile dev ios # Run the app in the iOS simulator
laravel-mobile dev desktop # Run the desktop app on this computer
laravel-mobile build ios --simulator # Build the app for the iOS simulator
laravel-mobile build android # Build a release APK and AAB
laravel-mobile build desktop # Build this computer's desktop installers
laravel-mobile credentials android create # Create the key Google Play builds are signed with
laravel-mobile credentials ios check # Check the App Store Connect key and app record
laravel-mobile submit android # Upload the latest release build to Google Play
laravel-mobile sync # Regenerate native files after editing mobile.tomlSubcommands
init— Add a mobile app to a Laravel Rust projectinstall— Add an optional feature to the appdoctor— Check that this machine can build and run the appdev— Run the app on a phone, simulator, or emulator with live reloadbuild— Build the app on this machinesubmit— Upload the latest release build to TestFlight or Google Playsync— Regenerate the native files in apps/mobile from mobile.tomlconfig— Validate mobile.toml and print its schema or generated configcredentials— Create and check the keys the app stores need, on this machine
Options
--cwd <DIR>— Run as if started in this directory
laravel-mobile init
Add a mobile app to a Laravel Rust project.
Writes mobile.toml, the Tauri v2 shell in apps/mobile, and the crates/shared crate, and adds both crates to the Cargo workspace. Prompts for the app’s name, ID, and URL in a terminal; pass –yes to accept the defaults.
Usage: laravel-mobile init [OPTIONS]
Options
-
--name <NAME>— The app’s name, shown under its icon -
--id <ID>— The bundle ID and Android application ID, such as com.acme.app -
--url <URL>— The production URL the app loads, such as https://acme.com -
-y,--yes— Accept the defaults instead of prompting -
--force— Overwrite mobile.toml, apps/mobile, and crates/shared if they exist -
--no-install— Add the Tauri CLI to package.json without runningnpm install -
--dry-run— Show the changes without writing anything -
--with <FEATURES>— Also add these features, aslaravel-mobile installdoes. In a terminal, init asksPossible values:
tabs: A native tab bar with Home and Settings tabsoffline-page: Your own copy of the offline page, at resources/mobile/offline.html, to editpush-notifications: Push notifications through Firebase and APNs, withmobile.pushbiometric-login: Paid: sign people back in with Face ID or a fingerprintsecure-storage: Paid: keep tokens in the iOS Keychain and Android Keystoreoffline: Paid: forms that wait for a connection and send once the phone is back onlinesqlite: Paid: a SQLite database on the phone
laravel-mobile install
Add an optional feature to the app.
Updates mobile.toml, adds the feature’s files without replacing any you have, and regenerates the native files. Paid features are named after their [plugins] key.
Usage: laravel-mobile install <FEATURE>
Arguments
-
<FEATURE>— The feature to addPossible values:
tabs: A native tab bar with Home and Settings tabsoffline-page: Your own copy of the offline page, at resources/mobile/offline.html, to editpush-notifications: Push notifications through Firebase and APNs, withmobile.pushbiometric-login: Paid: sign people back in with Face ID or a fingerprintsecure-storage: Paid: keep tokens in the iOS Keychain and Android Keystoreoffline: Paid: forms that wait for a connection and send once the phone is back onlinesqlite: Paid: a SQLite database on the phone
laravel-mobile doctor
Check that this machine can build and run the app.
Checks mobile.toml, the workspace, Rust, the Tauri CLI, Node, and the iOS, Android, and desktop toolchains. Every failed check prints the command that fixes it; –fix runs those commands.
Usage: laravel-mobile doctor [OPTIONS]
Options
-
--platform <PLATFORM>— Check only this platform’s toolchainPossible values:
iosandroiddesktop: The desktop app for this computer: macOS, Windows, or Linux
-
--release— Also check what a store release needs: a production server.url, signing keys, and the store credentialssubmituses -
--fix— Run the fix for every failed check that has one, then check again -
-y,--yes— With –fix, run fixes without asking -
--json— Print the results as JSON
laravel-mobile dev
Run the app on a phone, simulator, or emulator with live reload.
Starts the Laravel Rust server, queue worker, and Vite on your LAN address so phones can reach them. With no platform, prints a URL and QR code to open on any phone on the same network. With ios or android, also builds and launches the native app, pointed at this machine. With desktop, serves on 127.0.0.1 and opens the desktop app on this computer. Other dev:* scripts that npm run dev starts, such as a scheduler, run too. When .env sets BROADCAST_CONNECTION=reverb with a local REVERB_HOST, also starts Reverb and points Echo at the same address.
Usage: laravel-mobile dev [OPTIONS] [PLATFORM]
Arguments
-
<PLATFORM>— Also build and launch the native app on this platformPossible values:
iosandroiddesktop: The desktop app for this computer: macOS, Windows, or Linux
Options
-
--device <DEVICE>— The simulator, emulator, or device to launch: its name, such as “iPhone 17 Pro” or “Pixel 9”, or an adb serial fromadb devices -
--host <HOST>— The address phones use to reach this machine. Overrides dev.host. A connected Android phone or emulator is otherwise reached over USB -
--port <PORT>— The Laravel Rust server’s port. Overrides dev.port and SERVER_PORT -
--no-server— Use a server that is already running instead of starting one -
--tunnel <PROVIDER>— Reach the app at a public HTTPS address, for a phone that isn’t on this network. Uses cloudflared or Expose, whichever is installed; name one to choose itPossible values:
cloudflared: Quick tunnels fromcloudflared, which need no accountexpose: Expose, the tunnel behind Herd’s and Valet’sshare:expose
-
--dry-run— Print the commands dev would run, then exit
laravel-mobile build
Build the app on this machine.
Creates the Xcode or Gradle project in apps/mobile/gen if it is missing, generates every icon size from icon.source, applies mobile.toml, then runs tauri <platform> build with the project’s @tauri-apps/cli. Release builds load server.url, so it must be your production URL. build desktop writes this computer’s installers: .dmg and .app on macOS, .msi and -setup.exe on Windows, and .deb, .rpm, .AppImage, and a PKGBUILD for Arch’s makepkg -si on Linux.
Usage: laravel-mobile build [OPTIONS] <PLATFORM> [-- <TAURI_ARGS>...]
Arguments
-
<PLATFORM>— The platform to build forPossible values:
iosandroiddesktop: The desktop app for this computer: macOS, Windows, or Linux
-
<TAURI_ARGS>— Extra arguments passed totauri <platform> build, after--
Options
--debug— Build with debug symbols and the web inspector, allowing a local server.url--simulator— iOS only: build an .app for the simulator, which needs no signing--apk— Android only: build an APK--aab— Android only: build an AAB for Google Play--release— Build for the stores: an .ipa for App Store Connect, or an AAB with the architectures in release.android_targets--build-number <NUMBER>— Use this build number instead of app.build. Stores reject a number they have already seen--dry-run— Print the commands build would run, then exit
laravel-mobile submit
Upload the latest release build to TestFlight or Google Play.
Uploads the newest .ipa or .aab from build <platform> --release. iOS uses Xcode’s altool with an App Store Connect API key (APPLE_API_KEY and APPLE_API_ISSUER). Android uses the Google Play Developer API with a service account key in ~/.laravel-mobile/google-play.json or GOOGLE_APPLICATION_CREDENTIALS, and releases to release.play_track.
Usage: laravel-mobile submit [OPTIONS] <PLATFORM>
Arguments
-
<PLATFORM>— The store to upload to: ios for App Store Connect, android for Google PlayPossible values:
iosandroiddesktop: The desktop app for this computer: macOS, Windows, or Linux
Options
-
--path <FILE>— The .ipa or .aab to upload, instead of the newest release build -
--track <TRACK>— Android only: the Google Play track, instead of release.play_trackPossible values:
internal,alpha,beta,production -
--dry-run— Print what would be uploaded, then exit
laravel-mobile sync
Regenerate the native files in apps/mobile from mobile.toml.
Writes tauri.conf.json, capabilities/mobile.json, Info.ios.plist, path-configuration.json, and src/plugins.rs, and the plugin crates in apps/mobile/Cargo.toml. It also lets your server’s pages call the commands you register with tauri::generate_handler!. Run it after editing mobile.toml or adding a command; dev runs it for you.
Usage: laravel-mobile sync [OPTIONS]
Options
--check— Fail if any generated file is out of date, without writing. For CI
laravel-mobile config
Validate mobile.toml and print its schema or generated config
Usage: laravel-mobile config <COMMAND>
Subcommands
check— Check mobile.toml and report every problemschema— Print the JSON Schema of mobile.toml, for editor completionpath-config— Print the path-configuration.json generated from mobile.toml
laravel-mobile config check
Check mobile.toml and report every problem
Usage: laravel-mobile config check
laravel-mobile config schema
Print the JSON Schema of mobile.toml, for editor completion
Usage: laravel-mobile config schema
laravel-mobile config path-config
Print the path-configuration.json generated from mobile.toml
Usage: laravel-mobile config path-config
laravel-mobile credentials
Create and check the keys the app stores need, on this machine
Usage: laravel-mobile credentials <COMMAND>
Subcommands
android— Android upload keysios— App Store Connect keys
laravel-mobile credentials android
Android upload keys
Usage: laravel-mobile credentials android <COMMAND>
Subcommands
create— Create the upload key that signs release builds for Google Play
laravel-mobile credentials android create
Create the upload key that signs release builds for Google Play.
Writes a keystore and its password to ~/.laravel-mobile/keystores/<app.id>, outside the project, where build android --release finds them. Back both files up: Google Play needs the same key for every update.
Usage: laravel-mobile credentials android create [OPTIONS]
Options
--dry-run— Print what would be created, then exit
laravel-mobile credentials ios
App Store Connect keys
Usage: laravel-mobile credentials ios <COMMAND>
Subcommands
check— Check that the App Store Connect key works and the app is set up for TestFlight
laravel-mobile credentials ios check
Check that the App Store Connect key works and the app is set up for TestFlight.
Signs in with APPLE_API_KEY, APPLE_API_ISSUER, and the key’s .p8 file, then checks that app.id is registered to ios.team_id and has an app record in App Store Connect. Runs on any machine; nothing is changed.
Usage: laravel-mobile credentials ios check