1 | Synopsis
|
2 |
|
3 | cordova-cli run [MODE] [BUILDOPTS] [TARGET] [PLATS] [BUILDCONFIG] [-- POPTS]
|
4 |
|
5 | MODE: --list|--debug|--release
|
6 | BUILDOPTS: --noprepare --nobuild
|
7 | TARGET: DEVICECLASS|--target=FOO
|
8 | PLATS: PLATFORM [...]
|
9 | BUILDCONFIG: --buildConfig=CONFIGFILE
|
10 | POPTS: platformopts
|
11 | DEVICECLASS: --device|--emulator
|
12 |
|
13 | Deploys app on specified platform devices / emulators
|
14 |
|
15 | --list ............................. Lists available targets
|
16 | Will display both device and emulator
|
17 | unless DEVICECLASS option is provided
|
18 |
|
19 | --debug ............................ Deploy a debug build
|
20 | --release .......................... Deploy a release build
|
21 |
|
22 | --noprepare ........................ Don't prepare
|
23 | --nobuild .......................... Don't build
|
24 |
|
25 | --device ........................... Deploy to a device
|
26 | --emulator ......................... Deploy to an emulator
|
27 | --target ........................... Deploy to a specific target
|
28 |
|
29 | --buildConfig....................... Use the specified build configuration
|
30 | instead of default build.json
|
31 |
|
32 | --browserify ....................... Compile plugin JS at build time using
|
33 | browserify instead of runtime.
|
34 |
|
35 | To provide platform specific options, you must include them after `--`.
|
36 |
|
37 | Technical details
|
38 | calls cordova prepare (unless --noprepare)
|
39 | calls PLATFORM run
|
40 | PLATFORM run calls PLATFORM build (unless --nobuild)
|
41 |
|
42 | Examples
|
43 | cordova-cli run android --release --buildConfig=..\myBuildConfig.json --target=myEmulator
|
44 | cordova-cli run android --nobuild
|
45 | cordova-cli run ios --device
|
46 | cordova-cli run ios --list
|