Permalink
Switch branches/tags
8.0.0+cordova.8.0.0 7.1.1+cordova.7.1.0 7.1.0+cordova.7.1.0 7.0.1+cordova.7.0.1 7.0.0+cordova.7.0.1 6.5.2+cordova.6.5.0 6.5.1+cordova.6.5.0 6.5.0+cordova.6.5.0 6.4.8+cordova.6.4.0 6.4.7+cordova.6.4.0 6.4.6+cordova.6.4.0 6.4.5+cordova.6.4.0 6.4.4.+cordova.6.4.0 6.4.3+cordova.6.4.0 6.4.2+cordova.6.4.0 6.4.1+cordova.6.4.0 6.4.0+cordova.6.4.0 6.3.5+cordova.6.1.1 6.3.4+cordova.6.1.1 6.3.2+cordova.6.1.1 6.3.1+cordova.6.1.1 6.3.0+cordova.6.1.1 6.2.9+cordova.6.1.1 6.2.8+cordova.6.1.1 6.2.7+cordova.6.1.1 6.2.6+cordova.6.1.1 6.2.5+cordova.6.1.1 6.2.4+cordova.6.1.1 6.2.3+cordova.6.1.1 6.2.2+cordova.6.1.1 6.2.1+cordova.6.1.1 6.2.0+cordova.6.1.1 6.1.0+cordova.6.1.1 6.0.5+cordova.6.0.0 6.0.4+cordova.6.0.0 6.0.3+cordova.6.0.0 6.0.2+cordova.6.0.0 6.0.1+cordova.6.0.0 6.0.0+cordova.6.0.0 5.5.2+cordova.5.4.1 5.5.1+cordova.5.4.1 5.5.0+cordova.5.4.1 5.4.1+cordova.5.4.1 5.4.0+cordova.5.4.1 5.3.10+cordova.5.4.1 5.3.9+cordova.5.4.1 5.3.8+cordova.5.4.0 5.3.7+cordova.5.4.0 5.3.6+cordova.5.3.3 5.3.5+cordova.5.3.3 5.3.4+cordova.5.3.1 5.3.3+cordova.5.3.1 5.3.2+cordova.5.3.1 5.3.1+cordova.5.3.1 5.2.3+cordova.5.2.0 5.2.2+cordova.5.2.0 5.2.1+cordova.5.2.0 5.2.0+cordova.5.2.0 5.1.1+cordova.5.1.1 5.1.1-0.29.0 5.0.0-0.28.1 5.0.0-0.28.0 5.0.0-0.27.1 5.0.0-0.27.0 4.2.0-0.26.0 4.2.0-0.25.0 4.2.0-0.24.2 4.2.0-0.24.1 4.2.0-0.24.0 4.2.0-0.23.0 4.1.2-0.22.12 4.1.2-0.22.11 4.1.2-0.22.10 4.1.2-0.22.9 4.1.2-0.22.8 4.1.2-0.22.7 4.0.0-0.22.7 3.6.3-0.22.7 3.6.3-0.22.6 3.6.3-0.22.5 3.6.3-0.22.4 3.6.3-0.22.3 3.6.3-0.22.2 3.6.3-0.22.1 3.6.3-0.22.0 3.6.0-0.21.19 3.6.0-0.21.18 3.5.0-0.21.18 3.5.0-0.21.17 3.5.0-0.21.16 3.5.0-0.21.15 3.5.0-0.21.14 3.5.0-0.20.14 3.5.0-0.20.13 3.5.0-0.20.10 3.5.0-0.20.7 3.5.0-0.20.6 3.5.0-0.20.5 3.5.0-0.20.4 3.5.0-0.20.3
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (30 sloc) 1.67 KB
Usage: $0 create [options] <path> [id [name [config]]]
Description:
Creates a new application at the provided path.
The application name and package ID can also be customized.
These values are set in the app manifest (config.xml) and are used when
creating a native project (platforms/<platform>/).
The application can be created from an existing template as well. You can
use any template that is published on npm, in your local file path, or available
from a git URL. PhoneGap also recommends a few popular templates and provides
shortened names for each. You can list the recommended templates with the
`template list` command.
The [config] option allows you to pass a JSON string, which will be injected
into `<path>/.cordova/config.json`.
Options:
--name, -n <name> application name (default: "Hello World")
--id, -i <package> package name (default: "com.phonegap.hello-world")
--copy-from, -src <path> create project using a copy of an existing project
--link-to <path> symlink/shortcut to the www assets without copying
--template <npm package|path|git url> create app using template found on npm,
your local path, or a git URL.
Examples:
$ $0 create path/to/my-app
$ $0 create path/to/my-app "com.example.app" "My App"
$ $0 create path/to/my-app --id "com.example.app" --name "My App"
$ $0 create path/to/my-app --copy-from ../my-other-app
$ $0 create path/to/my-app --template hello-world
$ $0 create path/to/my-app --template phonegap-template-hello-world
Also See:
$ $0 help template
$ $0 help template list