ionic capacitor run <platform>

Run an Ionic project on a connected device

Arguments

NameDescription
platformThe platform to run (e.g. android, ios)

Options

NameDescription
--listList all available targets
--target <target>Deploy to a specific device by its ID (use --list to see all)
--openOpen native IDE instead of using capacitor run
--no-buildDo not invoke Ionic build
--externalHost 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, -lSpin up dev server to live-reload www files
--livereload-url <url>Provide a custom URL to the dev server
--prodFlag to use the production configuration
--configuration, -c <conf>Specify the configuration to use
--source-mapOutput source maps
--watchRebuild when files change