Mirror of Apache Cordova CLI
JavaScript
Permalink
Failed to load latest commit information.
.github Add github pull request template Oct 5, 2016
bin CB-6024: Use nopt instead of optimist in cli Jun 5, 2014
doc fix failing test, docs line length exceeded. Jun 20, 2017
scripts Add missing license headers Sep 19, 2013
spec CB-13303 : added noprod/production as an option, no prod turns off pr… Oct 4, 2017
src CB-13303 : added noprod/production as an option, no prod turns off pr… Oct 4, 2017
.eslintrc.yml CB-12895 : updated to use eslint format Jun 26, 2017
.gitattributes CB-9836 Add .gitattributes to prevent CRLF line endings in repos Nov 12, 2015
.gitignore CB-8129 Adds 'npm run cover' command to generate tests coverage report Dec 15, 2014
.jscs.json CB-12018 : updated tests and package.json to function with jasmine Jan 11, 2017
.npmignore Add coverage/ to .npmignore Jan 7, 2015
.ratignore CB-12358: updated .ratignore Jan 17, 2017
.travis.yml adjusted tests to call cordova instead of cordova.raw, added tests to… Jun 20, 2017
CONTRIBUTING.md CB-9800 Fixing contribute link. Oct 23, 2015
LICENSE Add a LICENSE file Feb 27, 2014
NOTICE Add NOTICE file Feb 27, 2014
README.md Fix broken Markdown headings Apr 20, 2017
RELEASENOTES.md CB-13380 Updated version and RELEASENOTES.md for release 7.1.0 Oct 5, 2017
appveyor.yml adjusted tests to call cordova instead of cordova.raw, added tests to… Jun 20, 2017
cordova.js Expose cordova-lib and the cli from cordova-cli Oct 23, 2014
package.json CB-13380 Incremented package version to -dev Oct 6, 2017

README.md

Build status Build Status

Cordova CLI

The command line tool to build, deploy and manage Cordova-based applications.

Apache Cordova allows for building native mobile applications using HTML, CSS and JavaScript. This tool helps with management of multi-platform Cordova applications as well as Cordova plugin integration.

Installation

In your command-line on Windows:

    c:\> npm install -g cordova

In your terminal on Mac OS X/Linux:

    $sudo npm install -g cordova

Creating a new Cordova project

This simple example demonstrates how Cordova CLI can be used to create a myApp project with the camera plugin and run it for android platform:

    cordova create myApp com.myCompany.myApp myApp
    cd myApp
    cordova plugin add cordova-plugin-camera --save
    cordova platform add android --save
    cordova requirements android    
    cordova build android --verbose
    cordova run android

Docs

Contributing

Cordova is an open source Apache project and contributors are needed to keep this project moving forward. Learn more on how to contribute on our website.

TO-DO + Issues

If you find issues with this tool, please follow our guidelines for reporting issues. We do not use github issue system as an Apache project, we have a JIRA issue management system which covers over 30+ cli, platform, plugin repos in the Cordova project. Use the "CLI" component for Cordova CLI issues. However, most of the functionality of Cordova CLI is implemented in cordova-lib npm module. You can also use "CordovaLib" component to file issues.