请尝试phonegap install android
。
只需键入phonegap
不带任何参数的内容,您将获得基本帮助,当您想了解更多特定命令时,请执行phonegap help <subcommand>
就我个人而言,我发现Cordova CLI 文档更深入一些,如果您只是在本地构建,那么据我所知,cordova
命令和命令之间没有太大区别。如果您也使用 PhoneGap Build,那么phonegap
您只需要该命令。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