| title | Command Reference |
|---|---|
| order | 350 |
A complete reference of all native:* Artisan commands available in NativePHP Mobile.
Install NativePHP into your Laravel application.
php artisan native:install {platform?}| Option | Description |
|---|---|
platform |
Target platform: android, ios, or both |
--force |
Overwrite existing files |
--fresh |
Alias for --force |
--with-icu |
Include ICU support for Android (adds ~30MB) |
--without-icu |
Exclude ICU support for Android |
--skip-php |
Do not download PHP binaries |
Build and run your app on a device or simulator.
php artisan native:run {os?} {udid?}| Option | Description |
|---|---|
os |
Target platform: ios/i or android/a |
udid |
Specific device/simulator UDID |
--build=debug |
Build type: debug, release, or bundle |
--watch |
Enable hot reloading during development |
--start-url= |
Initial URL/path to load (e.g., /dashboard) |
--no-tty |
Disable TTY mode for non-interactive environments |
Before building, native:run checks for unregistered plugins and warns you if any are found. You can register them
with php artisan native:plugin:register.
Watch for file changes and sync to a running mobile app.
php artisan native:watch {platform?} {target?}| Option | Description |
|---|---|
platform |
Target platform: ios/i or android/a |
target |
The device/simulator UDID to watch |
Start the NativePHP development server for testing mobile apps without building.
php artisan native:jump| Option | Description |
|---|---|
--platform= |
Target platform: android or ios |
ios/i |
Shorthand for --platform=ios |
android/a |
Shorthand for --platform=android |
--host=0.0.0.0 |
Host address to serve on |
--http-port= |
HTTP port to serve on |
--laravel-port=8000 |
Laravel dev server port to proxy to |
--no-mdns |
Disable mDNS service advertisement |
--skip-build |
Skip building if app.zip exists |
Open the native project in Xcode or Android Studio.
php artisan native:open {os?}| Option | Description |
|---|---|
os |
Target platform: ios/i or android/a |
Tail Laravel logs from a running Android app. (Android only)
php artisan native:tailDisplay the current NativePHP Mobile version.
php artisan native:versionManaging certificates, provisioning profiles, and keystores locally is tedious and error-prone. Bifrost handles all of this for you — set credentials once, deploy with a single command, and collaborate with your team effortlessly.
Package your app for distribution with signing.
php artisan native:package {platform}| Option | Description |
|---|---|
platform |
Target platform: android/a or ios/i |
--build-type=release |
Build type: release or bundle |
--output= |
Output directory for signed artifacts |
--jump-by= |
Skip ahead in version numbering |
--no-tty |
Disable TTY mode for non-interactive environments |
Android Options:
| Option | Description |
|---|---|
--keystore= |
Path to Android keystore file |
--keystore-password= |
Keystore password |
--key-alias= |
Key alias for signing |
--key-password= |
Key password |
--fcm-key= |
FCM Server Key for push notifications |
--google-service-key= |
Google Service Account Key file path |
--upload-to-play-store |
Upload to Play Store after packaging |
--play-store-track=internal |
Play Store track: internal, alpha, beta, production |
--test-push= |
Test Play Store upload with existing AAB file (skip build) |
--skip-prepare |
Skip prepareAndroidBuild() to preserve existing project files |
iOS Options:
| Option | Description |
|---|---|
--export-method=app-store |
Export method: app-store, ad-hoc, enterprise, development |
--upload-to-app-store |
Upload to App Store Connect after packaging |
--test-upload |
Test upload existing IPA (skip build) |
--validate-only |
Only validate the archive without exporting |
--validate-profile |
Validate provisioning profile entitlements |
--rebuild |
Force rebuild by removing existing archive |
--clean-caches |
Clear Xcode and SPM caches before building |
--api-key= |
Path to App Store Connect API key file (.p8) |
--api-key-id= |
App Store Connect API key ID |
--api-issuer-id= |
App Store Connect API issuer ID |
--certificate-path= |
Path to distribution certificate (.p12/.cer) |
--certificate-password= |
Certificate password |
--provisioning-profile-path= |
Path to provisioning profile (.mobileprovision) |
--team-id= |
Apple Developer Team ID |
Bump the version number in your .env file.
php artisan native:release {type}| Option | Description |
|---|---|
type |
Release type: patch, minor, or major |
Generate signing credentials for iOS and Android.
php artisan native:credentials {platform?}| Option | Description |
|---|---|
platform |
Target platform: android/a, ios/i, or both |
--reset |
Generate new keystore and PEM certificate |
Validate and suggest build numbers for your app.
php artisan native:check-build-numberScaffold a new NativePHP plugin interactively.
php artisan native:plugin:createList all installed NativePHP plugins.
php artisan native:plugin:list| Option | Description |
|---|---|
--json |
Output as JSON |
--all |
Show all installed plugins, including unregistered |
Register a plugin in your NativeServiceProvider. When called without arguments, discovers all unregistered plugins and lets you register them.
php artisan native:plugin:register {plugin?}| Option | Description |
|---|---|
plugin |
Package name (e.g., vendor/plugin-name). Optional — omit to discover unregistered plugins |
--remove |
Remove the plugin instead of adding it |
--force |
Skip conflict warnings |
Completely uninstall a plugin.
php artisan native:plugin:uninstall {plugin}| Option | Description |
|---|---|
plugin |
Package name (e.g., vendor/plugin-name) |
--force |
Skip confirmation prompts |
--keep-files |
Do not delete the plugin source directory |
Validate a plugin's structure and manifest.
php artisan native:plugin:validate {path?}| Option | Description |
|---|---|
path |
Path to a specific plugin directory |
Create lifecycle hook commands for a plugin.
php artisan native:plugin:make-hookCreate Boost AI guidelines for a plugin.
php artisan native:plugin:boost {plugin?}| Option | Description |
|---|---|
plugin |
Plugin name or path |
--force |
Overwrite existing guidelines |
Install AI agents for plugin development.
php artisan native:plugin:install-agent| Option | Description |
|---|---|
--force |
Overwrite existing agent files |
--all |
Install all agents without prompting |