Working with Process Apps → Promoting Process Apps → Promoting Process Apps from the Command Line
You can also upload and promote process app snapshots from the command line using the AppRepositoryServiceClient executable program included with installation of the Application Repository (on-premise only).
Upload and promote process app snapshots from the command line.
AppRepositoryServiceClient -mh application_administrator_host → -mp application_administrator_port →[-mprot application_administrator_protocol] → -u user_name -p password [-U mss_file_path] → [-P promotion_profile_name]
Specify the name of the Application Repository host machine.
Specify the port used by Application Repository.
Optionally, specify the protocol (http or https) used by Application Repository. If you do not provide this argument, the command uses a default value of http. If the protocol does not match the one used by Application Repository, the command fails.
Specify the user name for an SBM user who has the necessary privileges to perform promotion.
Specify the password for the SBM user.
Optionally, specify a process app snapshot that has been exported as a Zip file (with a .mss file-name extension by default). The AppRepositoryService uploads the snapshot to Application Repository.
To perform a promotion, include this option and specify the name of an existing promotion profile.
If you include both the -U and -P arguments, their order on the command line is significant, because it determines the order in which the upload and promotion operations occur. You probably want to upload the latest snapshot to Application Repository before you promote the snapshot. If you put the arguments in the reverse order, the promotion operation will use an older snapshot version instead, because the promotion will occur before the upload.
AppRepositoryServiceClient -mh machineX -mp 8085 → -u jsmith -p a1234b -P EnvironmentX
In this example, the command logs in as jsmith and performs a promotion operation according to the promotion profile named EnvironmentX.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.