請嘗試phonegap install android
。
通過直接鍵入phonegap
不帶任何參數,你會得到基本的幫助,當你想知道更多具體的命令做phonegap help <subcommand>
個人而言,我發現Cordova CLI documentation要多一點深入,如果你只是在本地構建,就我所知,在cordova
命令和phonegap
命令之間沒有太大區別。如果您還使用PhoneGap Build,則只需要使用phonegap
命令。
例子:
% phonegap
Usage: /usr/local/share/npm/bin/phonegap [options] [commands]
Description:
PhoneGap command-line tool.
Commands:
create <path> create a phonegap project
build <platform> build a specific platform
install <platform> install a specific platform
run <platform> build and install a specific platform
local [command] development on local system
remote [command] development in cloud with phonegap/build
help [command] output usage information
version output version number
% phonegap help install
Usage: /usr/local/share/npm/bin/phonegap install [options] <platform>
Description:
Installs the application for a specific platform.
Automatically detects platform SDK support and uses the correct environment.
See each environment for available [options].
Examples:
$ /usr/local/share/npm/bin/phonegap install android
希望這將幫助:http://goo.gl/IRvlh4 –