如何将 MobileFirst CLI 应用程序部署到 android 设备?

How to deploy MobileFirst CLI application to an android device?

我正在使用 MobileFirst CLI 7.1。我想将我的 MobileFirst CLI 应用程序部署到 android 设备。我怎样才能做到这一点?

在 studio 中,当我右键单击 > 为所有环境构建和部署时,我常常会生成一个投影。

我还想知道如何定位远程服务器。 (在 Studio 中,我们可以选择部署到远程环境。)

有没有实现以上两个的命令?

In studio i use to get a projected generated when I right click > Build and depoly for all environments.

您需要安装 google 的 ADT 工具并从命令行执行命令,或者将项目导入 Google 的 Android Studio IDE.

Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)

在 Studio 中,您没有 "deploy to a remote server" 的选项。您可以选择将应用程序配置为指向远程服务器(您可以在 worklight.plist/wlclient.properties 文件中编辑的属性)。

CLI 中不存在此功能。构建项目后,如果您希望它指向不同的服务器,请编辑所述文件中的属性以指向远程服务器。