Command-Line Usage

Cordova now ships with a set of command-line tools that make it easier
for you to develop cross-platform applications. You can build, clean,
and launch an emulator with a single command. You can consider these
instructions as an alternative to the Getting Started guides. Whereas
the Getting Started guides help you get setup with the default IDEs and
tooling surrounding the platforms you are working with, the command-line
tools aim to provide a shell-based approach to creating and working with
Cordova projects.

Build a project

For BlackBerry projects, please make sure you customize the
project.properties file in the root of your Cordova project folder.
This is necessary for things like supplying your BlackBerry signing key
password, location of the BlackBerry WebWorks SDK, and location of
BlackBerry simulator executables.

$ /path/to/my_new_cordova_project/cordova/debug

or, on Windows

$ /path/to/my_new_cordova_project/cordova/debug.bat

Launch emulator

For BlackBerry projects, please make sure you customize the
project.properties file in the root of your Cordova project folder.
This is necessary for things like supplying your BlackBerry signing key
password, location of the BlackBerry WebWorks SDK, and location of
BlackBerry simulator executables.

$ /path/to/my_new_cordova_project/cordova/emulate

or, on Windows

$ /path/to/my_new_cordova_project/cordova/emulate.bat

Logging

Unfortunately streaming logs directly from the device is not
supported at this time. However, BlackBerry offers built-in Web
Inspector support for Playbook and BlackBerry smartphone devices running
BlackBerry OS 7.0 and above. Additionally, you can access your
application's logs (including any calls to console.log) on your device
by holding down the ALT key from the home screen and hitting "lglg"
keys.