489 GitHub stars and counting — phonegap/phonegap-cli is a JavaScript project TopGit is tracking across repositories on the platform. PhoneGap and PhoneGap/Build command-line interface
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
PhoneGap command-line interface and Node.js library.
Command-line
Requirements
Install node.js version >=4.0.0
Install ios-sim to deploy apps to the iOS simulator.
Install
$ npm install -g phonegap@latest
Getting Started
$ phonegap create my-app # create a PhoneGap project
$ cd my-app # change to project directory
$ phonegap run ios # build and install the app to iOS
Usage
Usage: phonegap [options] [commands]
Description:
PhoneGap command-line tool.
Commands:
create <path> create a phonegap project
build <platform> build the project for specific platform
install <platform> install the project on a specific platform
run <platform> build and install the projectfor specific platform
serve serve a phonegap project
local [command] development on local system
remote [command] development in cloud with phonegap/build
platform [command] update a platform version
help [command] output usage information
version output version number
analytics turn analytics on or off, or view current status
Options:
-d, --verbose allow verbose output
-v, --version output version number
-h, --help output usage information
Platforms:
keyword | local environment | remote environment
-------------------|-------------------|-------------------
android | ✔ | ✔
blackberry10 | ✔ | ✖
ios | ✔ | ✔
wp8 | ✔ | ✔
Examples:
$ phonegap help create
$ phonegap help remote build
$ phonegap create path/to/my-app
$ phonegap remote build android
Local Usage
Usage: phonegap local [command]
Description:
Executes the command on the local system.
This requires that platform SDK is correctly installed.
Commands:
build <platform> build a specific platform
install <platform> install a specific platform
run <platform> build and install a specific platform
plugin <command> add, remove, and list plugins
Examples:
$ phonegap local build android
$ phonegap local run android
$ phonegap local plugin list
Remote Usage
Usage: phonegap remote [command]
Description:
Executes the command remotely using the cloud-based PhoneGap/Build service.
Commands:
login login to PhoneGap/Build
logout logout of PhoneGap/Build
build <platform> build a specific platform
install <platform> install a specific platform
run <platform> build and install a specific platform
Examples:
$ phonegap remote login
$ phonegap remote build android
$ phonegap remote run android
Node Library
Usage
var phonegap = require('phonegap');
App Templates
Templates allow you to create a new app from an existing app template. The
nice part about templates is that they are simply a Cordova-compatible app.
Any existing app can be a template.
You can list the available templates with:
$ phonegap template list
You can create a new project from a template with:
$ phonegap create my-app --template hello-world
Adding a New Template
Adding a new template is easy.
Add your template to the package.json template section.
// the key is your template name (e.g. hello-world)
// the url is a HTTP URL to a .tar.gz.
{
"templates": {
"hello-world": {
"description": "Default hello world app for PhoneGap.",
"url": "https://github.com/phonegap/phonegap-app-hello-world/archive/master.tar.gz"
}
}
}
Send us a pull request!
FAQ
phonegap: command not found
Problem
The PhoneGap CLI installs successfully but you do not have a command phonegap.
Reason
Depending on how node and npm were installed, your globally installed npm
modules may not be in your PATH.
Solution
At the bottom of your npm install -g phonegap@latest installation log, you will see the following:
Update the PhoneGap Hello World App to match the new version.
See Update instructions.
In the above example, we would update the app to 3.1.0.
Manually test that the latest Hello World app is lazy-loaded.
# Link the phonegap-cli for easier development (only need to do once).
$ cd phonegap-cli/
$ [sudo] npm link .
# Manually test and verify hello world app is lazy-loaded.
$ phonegap create my-app
[phonegap] missing library phonegap/www/3.1.0
[phonegap] downloading https://github.com/phonegap/phonegap-app-hello-world/archive/3.1.0.tar.gz...
[phonegap] created project at /Users/mwbrooks/Development/sandbox/my-app
$ cd my-app/
$ phonegap run ios
Push the git commit after the Hello World has been updated.
$ git push phonegap master
Publish the npm release.
$ npm publish
Analytics
Please read our privacy policy for more information on the
data we collect.
How active is development on phonegap/phonegap-cli?
The most recent commit recorded on phonegap/phonegap-cli was 4.4 years ago, based on the GitHub push timestamp. The repository has 155 forks — one of the better signals of community interest.
How many stars does phonegap/phonegap-cli have?
phonegap/phonegap-cli has 489 GitHub stars — refresh the page for the live number, or check github.com/phonegap/phonegap-cli. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is phonegap/phonegap-cli open source?
Yes — phonegap/phonegap-cli ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/phonegap/phonegap-cli.
What is phonegap/phonegap-cli?
phonegap/phonegap-cli (phonegap/phonegap-cli) is a JavaScript project on GitHub. From the project's own README: PhoneGap and PhoneGap/Build command-line interface
Where do I read more about phonegap/phonegap-cli?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/phonegap/phonegap-cli is the definitive source.
Read full README in the tab above.
Still deciding about phonegap-cli?
One click hands the question to an AI along with this page — see what it says about phonegap-cli.