UNPKG

1.66 kBPlain TextView Raw
1Synopsis
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
13Deploys 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
32To provide platform specific options, you must include them after `--`.
33
34Technical details
35 calls cordova prepare (unless --noprepare)
36 calls PLATFORM run
37 PLATFORM run calls PLATFORM build (unless --nobuild)
38
39Examples
40 cordova-cli run android --release --buildConfig=..\myBuildConfig.json --target=myEmulator
41 cordova-cli run android --nobuild
42 cordova-cli run ios --device
43 cordova-cli run ios --list