run

Command Description
ionic run Run an Ionic project on a connected device
Flags
--livereload|-l
--address
--port|-p
--livereload-port|-r
--consolelogs|-c Print app console logs to Ionic CLI (livereload req.)
--serverlogs|-s Print dev server logs to Ionic CLI (livereload req.)
--debug|--release
--device|--emulator|--target=FOO

Description

The run command will deploy the app to the specified platform devices. You can also run live reload on the specified platform device by adding the --livereload option. The live reload functionality is similar to ionic serve, but instead of developing and debugging an app using a standard browser, the compiled hybrid app itself is watching for any changes to its files and reloading the app when needed. This reduces the requirement to constantly rebuild the app for small changes. However, any changes to plugins will still require a full rebuild. For live reload to work, the dev machine and device must be on the same local network, and the device must support web sockets.

API

Native

General