1 | Synopsis
|
2 |
|
3 | cordova-cli platform <command> [options]
|
4 |
|
5 | Manage project platforms
|
6 |
|
7 | add <plat-spec> [...].............. add specified platforms
|
8 | --usegit ...................... retrieve from git instead of npm registry
|
9 |
|
10 | --save ........................ save specified platforms into config.xml after installing them
|
11 |
|
12 | --link ........................ when <plat-spec> is a local path, links the platform
|
13 | library directly instead of making a copy of it (support
|
14 | varies by platform; useful for platform development)
|
15 |
|
16 |
|
17 |
|
18 | remove <platform> [...] ........... remove specified platforms
|
19 | --save ........................ delete specified platforms from config.xml after removing them
|
20 |
|
21 | list .............................. list all installed and available platforms
|
22 | update <plat-spec> ................ update the version of Cordova used for a specific platform;
|
23 | update to the latest <version> if no <version>, <path> or <url> is specified
|
24 |
|
25 | --usegit ...................... retrieve platform from git instead of npm registry
|
26 | --save ........................ save the latest versions for specified platforms into config.xml
|
27 |
|
28 | check ............................. list platforms which can be updated by `cordova-cli platform update`
|
29 |
|
30 | Syntax
|
31 | <plat-spec>:
|
32 | <platform-ver>|<path>|<url>
|
33 |
|
34 | <platform-ver>:
|
35 | <platform>[@<version>]
|
36 |
|
37 | <platform> ........................ platform (typically from npm registry)
|
38 |
|
39 | <path> ............................ path to a directory containing a platform
|
40 | name of platform to be retrieved from npm registry
|
41 |
|
42 | <url> ............................. url to a git repository containing a platform
|
43 |
|
44 | <version> ......................... major.minor.patch version specifier
|
45 | aliases:
|
46 | platforms -> platform
|
47 | rm -> remove
|
48 | ls -> list
|