Questions tagged [worklight-cli]

The IBM Worklight command-line interface (CLI) tool allows to easily create and manage both native and hybrid apps.

BM® Worklight® Foundation provides command-line tools as an alternative to the integrated development environment (IDE) of Worklight Studio.

To help developers get a better tools experience, IBM Worklight Foundation provides a command-line interface (CLI) tool to easily create and manage both native and hybrid apps. The CLI enables developers to use their preferred text editors or alternative IDEs to create mobile applications.

12 questions
3
votes
2 answers

How to add Java classes to a Worklight adapter when using CLI

I am trying to add Java classes to my adapter as described in the tutorial Using Java in Adapters. However, I am trying to do that from the CLI. When I do: wl create WLProject cd WLProject wl add adapter copy the Java class (Calculator1.java) to…
Jeroen
  • 49
  • 4
2
votes
2 answers

Is Worklight-CLI installer broken?

I'm trying out the Worklight CLI tools in order to automate the setup of new Worklight projects. The problem is that downloading the latest (at the time of writing) version 201409222259 from Fix Central it seems that the bundled generator-worklight…
Costas
  • 45
  • 6
1
vote
2 answers

Worklight CLI not starting in mac Giving Error

Installed Mobile first CLI 7.0.0.0 When I try to open mfp cli it is giving the following error broken cli but I guess any fixes available in IBM Fix central I tried to search but not able to find a fix for this module.js:340 throw err; …
1
vote
1 answer

Custom Build Step Worklight 6.2

I have two questions about Worklight 6.2 build process: Question 1: Is it possible to integrate the standard Worklight (6.2) build process with a custom build step? I need to add it as follows: Init build process WLApp Build (optimization…
npcompleto
  • 27
  • 4
1
vote
1 answer

IBM Worklight 6.2 - CLI invoke returns status code 505

I am using IBM Worklight 6.2 CLI tools to create and invoke a procedure on my adapter. When I pass in a parameter that contains a space character, I get back an error: wl invoke [?] Which procedure do you want to invoke? submitNotification [?] Enter…
vkislicins
  • 3,331
  • 3
  • 32
  • 62
1
vote
1 answer

How to create worklight project in eclipse dynamically?

I googled about how to create eclipse project dynamically, but most of them explained about creating Java projects. I wants to create worklight project programatically. Any help would be appreciated.
Mohammad Ashfaq
  • 1,333
  • 2
  • 14
  • 38
0
votes
2 answers

mfp cli 7.1 for cordova missing files in android platform

i am trying to use mobilefirst cli 7.1 to build a cordova app using mfp cordova create , Everything worked fine and got my app working and tested using mfp preview. But when i added android platform using mfp cordova platform add ; i have noticed…
0
votes
1 answer

How can I debug/fix a crash with the Worklight 6.2 CLI installer?

I've downloaded a copy of the Worklight CLI installer from here, specifically the installer for 6.2.0.1 (I'm aware this isn't current, I need an older version to debug a specific problem). I am attempting to install it on OS X Mountain Lion…
Andrew Ferrier
  • 16,664
  • 13
  • 47
  • 76
0
votes
1 answer

Worklight 6.2 CLI - how to specify android install location

We are trying to build our worklight apk using the new CLI feature. For backward compatability reasons, we have an android sdk folder structure which has API levels up to 18. In another location we have API levels up to 21. When we run the CLI…
Steve
  • 13
  • 4
0
votes
1 answer

Cannot uninstall or update the CLI

I am running Worklight 6.2 on Mac. I downloaded the latest fix from fix-central (6.2.0.0-WL-CLI-IF201408251637.zip). When I wanted to install the new version of the CLI, the installer got stuck around 33%. So after that I tried to uninstall the…
Jeroen
  • 49
  • 4
0
votes
1 answer

Worklight CLI build fails. 32-bit issue?

When using the CLI we get an error $ worklight build /opt/ibm/Worklight-CLI/worklight: /opt/ibm/Worklight-CLI/IBMnode/bin/node: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory Googling suggests that the CLI is a 32 bit…
Jeroen
  • 49
  • 4
0
votes
1 answer

Adding worklight adapter programmatically

I am creating application which should be plugin upgradable. Problem is that every plugin should consist of some client code and there should also be some sort of adapter which will fetch data to application from 3rd party site/api/... So my problem…