Commands for apps
When we invoke the wladm program, we can include various commands for apps.
The list apps command
The list apps command returns a list of the apps that are deployed in a runtime.
Syntax:
list apps [runtime-name]
It takes the following arguments:
Argument Description runtime-name Name of the runtime web application / MobileFirst project. It takes the following options after the object:
Example:
Option Description --xml Produce XML output instead of tabular output. list apps worklight
This command is based on the Applications (GET) REST service.
The deploy app command
The deploy app command deploys an app (possibly with multiple environments) in a runtime.
Syntax:
deploy app [runtime-name] file
It takes the following arguments:
Argument Description runtime-name Name of the runtime web application / MobileFirst project. file Binary app file (.wlapp, not .apk or .ipa) Example:
deploy app worklight MyApp-all.wlapp
This command is based on the Application (POST) REST service.
The show app command
The show app command shows details about an app in a runtime, in particular its environments and versions.
Syntax:
show app [runtime-name] app-name
It takes the following arguments:
Argument Description runtime-name Name of the runtime web application / MobileFirst project. app-name Name of an app It takes the following options after the object:
Example:
Option Description --xml Produce XML output instead of tabular output. show app worklight MyApp
This command is based on the Application (GET) REST service.
The delete app command
The delete app command removes (undeploys) an app (from all environments, and all versions) from a runtime.
Syntax:
delete app [runtime-name] app-name
It takes the following arguments:
Argument Description runtime-name Name of the runtime web application / MobileFirst project. app-name Name of an app Example:
delete app worklight MyApp
This command is based on the Application (DELETE) REST service.
The delete app version command
The delete app version command removes (undeploys) an app version from a runtime.
Syntax:
delete app version [runtime-name] app-name environment version
It takes the following arguments:
Argument Description runtime-name Name of the runtime web application / MobileFirst project. app-name Name of an app environment Mobile platform version Version of the app Example:
delete app version worklight MyApp iPhone 1.1
This command is based on the App Version (DELETE) REST service.
The app version command prefix
The app version command prefix takes the following arguments before the verb:
Argument Description runtime-name Name of the runtime web application / MobileFirst project. app-name Name of an app environment Mobile platform version Version of the app
The app version get binary command
The app version get binary command returns the binary wlapp file for a version of an app.
Syntax:
app version [runtime-name] app-name environment version get binary [> tofile]
It takes the following arguments after the verb:
Argument Description Required Default > tofile Name of the output file. No Standard output Example:
app version worklight MyApp iPhone 1.1 get binary > /tmp/MyApp.wlapp
This command is based on the Application Binary (GET, HEAD) REST service.
The app version get accessrule command
The app version get accessrule command returns the access rule for an app version.
Syntax:
app version [runtime-name] app-name environment version get accessrule
Example:
app version worklight MyApp iPhone 1.1 get accessrule
This command is based on the Application (GET) REST service.
The app version set accessrule command
The app version set accessrule command changes the access rule for an app version.
Syntax:
app version [runtime-name] app-name environment version set accessrule file
It takes the following arguments after the verb:
Argument Description file Name of the input file. Example:
app version worklight MyApp iPhone 1.1 set accessrule /tmp/new-accessrule.xml
This command is based on the App Version Access Rule (PUT) REST service.
The app version get authenticitycheckrule command
The app version get authenticitycheckrule command returns the authenticity check rule for an app version.
Syntax:
app version [runtime-name] app-name environment version get authenticitycheckrule
Example:
app version worklight MyApp iPhone 1.1 get authenticitycheckrule
This command is based on the Application (GET) REST service.
The app version set authenticitycheckrule command
The app version set authenticitycheckrule command changes the authenticity check rule for an app version.
Syntax:
app version [runtime-name] app-name environment version set authenticitycheckrule action
It takes the following arguments after the verb:
Argument Description action Action to perform for authenticity checking The possible actions are:
- DISABLED: Authenticity is not checked
- IGNORED: Authenticity is checked, but not enforced. If it fails, only a warning is given and the session is authorized
- ENABLED: Authenticity is checked and enforced
Example:
app version worklight MyApp iPhone 1.1 set authenticitycheckrule enabled
This command is based on the App Version Authenticity Check (PUT) REST service.
The app version get lock command
The app version get lock command returns information about whether an app version is locked or unlocked.
Syntax:
app version [runtime-name] app-name environment version get lock
Example:
app version worklight MyApp iPhone 1.1 get lock
This command is based on the Application (GET) REST service.
The app version set lock command
The app version set lock command sets an app version to locked or unlocked state.
Syntax:
app version [runtime-name] app-name environment version set lock lock
It takes the following arguments after the verb:
The possible lock values are true and false.
Argument Description lock New lock state. Example:
app version worklight MyApp iPhone 1.1 set lock true
This command is based on the App Version Lock (PUT) REST service.
Parent topic: Administer MobileFirst applications through the command line