How to deploy MobileFirst CLI application to an android device? - ibm-mobilefirst

I am using MobileFirst CLI 7.1. I want to deploy my MobileFirst CLI application to an android device. How can I do that?
In studio i use to get a projected generated when I right click > Build and depoly for all environments.
Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)
Do we have any commands for achieving the above two?

In studio i use to get a projected generated when I right click > Build and depoly for all environments.
You need to have google's ADT tools installed and execute the commands from the command-line, or import the project into Google's 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.)
In the Studio you did not have the option to "deploy to a remote server". You had the option to configure the application to point to a remote server (the properties you can edit in the worklight.plist/wlclient.properties file).
This feature does not exist in the CLI. After building the project, in case you want it to point to a different server, edit the properties in said file(s) to point to the remote server.

Related

How to add Runtime environment in mobile first 7.1?

After installing MobileFirst Platform , It give No run time is there.
My configuration was given below:
1. WebSphere Application Server 8.5
2. Oracle 11g Enterprise edition
3. Mobile-first platform 7.1
Please help me to create Run-time in Mobile first Console.
From where I will download sample war file (for ex: project.war) for creating run-time environment.
You have only mentioned "after installing IBM MobileFirst" and not exactly the steps followed. Configuring IBM MobileFirst Platform has two phases:
a) Installing the application binaries into the filesystem using Installation Manager.
b) Deploying MFP admin services and runtime in to an Application server using Server configuration tool or ANT scripts. The runtime war file needs to be created using IBM MFP Studio.
If you have not performed phase 2 or only installed admin services and not the runtime, go through the information in these links:
Using server configuration tool
Using ANT scripts to deploy
To get you started with various MFP 7.1 projects , you refer and use any of the sample applications available at MFP 7.1 Getting started tutorials.
Once you have any of these sample projects loaded or a new project created in MFP studio, you can build the server side artefacts (adapters, application wlapps and runtime war) within the MFP studio or using ANT scripts:
Refer this link for further details and steps- Deploy projects.

Create appx file for Raspberry pi2 on Windows IOT Core?

I've got a Windows Universal app that I want to package and deploy to Windows IOT Core running on a Raspberry Pi2. I can get the code to deploy from Visual Studio, but i want to hand off the app to someone else and have them install without I was expecting a way to deploy via the web interface since there is a place to upload an appx file, but i can't figure out any way to get that built up. Is it possible w/o Visual Studio?
Thanks,
Nick
Step 1: Build
Create an app package from Visual Studio:
Right click your project
Choose Store...Create App Packages
Choose "No" for creating package to upload to Windows Store
On the next step, select "Never" for "Generate app bundle" and make sure "ARM" is checked.
Click Create. The Raspberry Pi compatible build will be in ".\AppPackages\XX_ARM_XX" folder.
Step 2: Install
Install the app on the Raspberry Pi:
Open the "Windows Device Portal" website
Choose "Apps" from the side menu
Upload the *.appx and *.cer files from the build folder
You can learn more here:
Packaging UWP apps
Windows Device Portal (scroll down to Apps section)

MobileFirst 7.1 - How to use CLI for current installed Liberty Core with MobileFirst server

I recently installed Liberty Core server, created a new Profile, installed MobileFirst Platform Server and deployed a MobileFirst runtime environment with the Server Configuration Tool in MacBook.
Instead of installing in default directory(Application/ibm/*) I choose to install under custom directory (Users/username/LibertyCore).
I started the server manually installed adapters and *.wlapp from worklight console.
Instead of doing this manual deployment I want to do it from command line? My understanding is I have to use MFP command line utility.
I installed MFP CLI utility then parsed to the App Project folder to build and deploy to currently installed Liberty Core server I see issue with MFP PUSH it says server is not started though server is running.
So when I do MFP Info I found that CLI is pointing to completely different set up. How can I make CLI to point to currently installed Liberty Server.
Note that you can run "mfp help" to see all available CLI commands.
There is the command "mfp server". Using this command you can add additional server definitions: "mfp server add". Run the command and follow the on-screen instructions to add a server definition for your remote server...
Once you've added it, you can use "mfp push your-remote-server-name" to push the artifacts to the remote server.

Project war not created after running build all environments

MobileFirst Studio 6.3
Windows 7.
Used HellWorld sample to verify scenario.
Selecting Run As -> Build All Env The project .war file is not created. The only way it seems to generate the project .war file via "Run As" is to deploy the application to the test server. (Run As -> Run on MF Dev Server)
What is the appropriate approach in studio to cause the .war to be generated?
The Build All command is related only to the .wlapp file(s).
Select "Run on MobileFirst Development Server" in order to actually have a runtime to run your application on.

How to deploy a metro app to windows 8 device/Tablet?

For testing an application, I have deployed my metro app by creating a app package which is provided in vs2012. I have deployed the package by opening using the PowerShell, but now I want to deploy the metro app in a Windows 8 device (tablet) for testing it, how can I do this?
Will there be a PowerShell option available in device also? (to deploy the app)
Are there any other ways of deployment?
i have used this to sideload apps for testing onto other devices including SurfaceRT
http://blogs.msdn.com/b/patricka/archive/2012/11/06/10365947.aspx
In addition to creating an app package in Visual Studio 2012, and deploying your app that way, you can also use the Remote Tools for Visual Studio 2012 for ARM to deploy and debug an app to a Surface or other tablet (for x86 or x64 tablets, use the matching remote tools install).
Once the remote tools have been installed on the target device, you simply start up the remote tools on the target, configure the access permissions, and then on your development machine, open the project properties, select the Debugging option, and use the dropdown to select Remote Machine as the debugger to launch. Click into the Machine Name field, and use the dropdown to select the machine name of the target machine running the remote tools.
Now, when you start debugging the project, it'll be packaged up and deployed to the target device, and you can set breakpoints and step through your code. And once deployed this way, you can re-run the app from the start screen using the app's tile.
EDIT: One important thing to note...whether you deploy/sideload using the PowerShell script technique, or using remote debugging, the target device will need to have a valid developer license. You should be prompted to obtain a developer license when you attempt to sideload your app, but you can also use PowerShell to obtain the license manually...instructions can be found here: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh974578.aspx