请尝试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 –