ionic cordova run
Run an Ionic project on a connected device
Build your app and deploy it to devices and emulators using this command. Optionally specify the
--livereload option to use the dev server from
ionic serve for livereload functionality.
This command will first use
ionic build to build web assets (or
ionic serve with the
--livereload option). Then,
cordova build is used to compile and prepare your app. Finally, the
utility is used to run your app on a device. To use Cordova for this process instead, use the
If you have multiple devices and emulators, you can target a specific one with the
--target option. You can list targets with
For Android and iOS, you can setup Remote Debugging on your device with browser development tools using these docs.
--livereload with hardware devices, remember that livereload needs an active connection between device and computer. In some scenarios, you may need to host the dev server on an external address using the
--external option. See these docs for more information.
Just like with
ionic cordova build, you can pass additional options to the Cordova CLI using the
-- separator. To pass additional options to the dev server, consider using
ionic serve separately and using the
The platform to run (e.g.
Use HTTPS for the dev server
List all available targets
Do not invoke Ionic build
Host dev server on all network interfaces (i.e.
Spin up dev server to live-reload www files
Provide a custom URL to the dev server
Flag to use the
Mark as a debug build
Mark as a release build
Deploy build to a device
Deploy build to an emulator
Do not use
Tie the running app to the process
Print app console logs to the terminal
Use specific port for console logs server
Use specific address for the dev server
Use specific port for HTTP
Specify the configuration to use.
Output source maps
Use the specified build configuration
Deploy build to a device (use
Output targets in JSON