cordova
command-lineinterface (CLI). For detailed reference on Cordova command-line, review the CLI referencecordova
command-line tool, follow these steps:node
and npm
on yourcommand line.git
on your command line. The CLI uses it to download assets when they are referenced using a url to a git repo.cordova
module using npm
utility of Node.js. The cordova
module will automatically be downloaded by the npm
utility.npm
command with sudo
may be necessary to install this development utility in otherwise restricted directories such as /usr/local/share
. If you are using the optional nvm/nave tool or have write access to the install directory, you may be able to omit the sudo
prefix. There are more tips available on using npm
without sudo
, if you desire to do that.-g
flag above tells npm
to install cordova
globally. Otherwise it will be installed in the node_modules
subdirectory of the current working directory.cordova
on the command line with no arguments and it should print help text.cordova create
script generates a skeletal web-based application whose home page is the project's www/index.html
file.config.xml
and package.json
:/platforms/
directory. The filesin this directory are routinely overwritten when preparingapplications for building, or when plugins are re-installed.browser
platform which does not require any platform SDKs.cordova create
script generates a skeletal web-based application whose start page is the project's www/index.html
file. Anyinitialization should be specified as part of the deviceready event handler defined in www/js/index.js
.cordova emulate
command refreshes the emulatorimage to display the latest application, which is now available forlaunch from the home screen:package.json
, we will specify the npm package name for the camera plugin:plugin ls
(or plugin list
, or plugin
Mac video app that allows for playing video quicker. by itself) to viewcurrently installed plugins. Each displays by its identifier:www
directorieswithin the top-level platforms
directory, because they're regularlyreplaced with the top-level www
directory's cross-platform source.merges
directory offers a place to specifyassets to deploy on specific platforms. Each platform-specificsubdirectory within merges
mirrors the directory structure of thewww
source tree, allowing you to override or add files as needed.For example, here is how you might use merges
to boost the defaultfont size for Android devices:www/index.html
file, adding a link to an additional CSSfile, overrides.css
in this case:www/css/overrides.css
file, which wouldapply for all non-Android builds, preventing a missing-file error.css
subdirectory within merges/android
, then add acorresponding overrides.css
file. Specify CSS that overrides the12-point default font size specified within www/css/index.css
, forexample:merges
to add files not present in the originalwww
directory. For example, an app can incorporate a back buttongraphic into the iOS interface, stored inmerges/ios/img/back_button.png
, while the Android version caninstead capture backbutton events from the corresponding hardwarebutton.cordova
utility, you can always update it tothe latest version by running the following command:cordova -v
Mycanal mac app store. to see which version is currently running. To find the latest released cordova version, you can run: