ionic capacitor run <platform>
Run an Ionic project on a connected device
Arguments
Name | Description |
---|
platform | The platform to run (e.g. android, ios) |
Options
Name | Description |
---|
--list | List all available targets |
--target <target> | Deploy to a specific device by its ID (use --list to see all) |
--open | Open native IDE instead of using capacitor run |
--no-build | Do not invoke Ionic build |
--external | Host dev server on all network interfaces (i.e. --host=0.0.0.0) |
--host <host> | Use specific host for the dev server |
--port, -p <port> | Use specific port for the dev server |
--public-host <host> | The host used for the browser or web view |
--livereload, -l | Spin up dev server to live-reload www files |
--livereload-url <url> | Provide a custom URL to the dev server |
--prod | Flag to use the production configuration |
--configuration, -c <conf> | Specify the configuration to use |
--source-map | Output source maps |
--watch | Rebuild when files change |