emulate
Command | Description |
---|---|
ionic emulate | Emulate an Ionic project on a simulator or emulator |
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 emulate
command will deploy the app to the specified platform devices. You can also run live reload on the specified emulator 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 emulator must be on the same local network, and the device must support web sockets.