ionic capacitor run
Run an Ionic project on a connected device
ionic capacitor run will do the following:
ionic build(or run the dev server from
ionic servewith the
capacitor run(or open IDE for your native project with the
--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.
If you have multiple devices and emulators, you can target a specific one by ID 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.
The platform to run (e.g.
List all available targets
Deploy to a specific device by its ID (use
Open native IDE instead of using
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
Use specific host for the dev server
Use specific port for the dev server
The host used for the browser or web view
Specify the configuration to use.
Output source maps
Rebuild when files change