To upload an application, call the stand-alone tool from the command line.
Use the stand-alone tool by following these steps.
java com.ibm.appcenter.Upload [options] [files]
You can pass any of the available options in the command line.
Option | Content indicated by | Description |
---|---|---|
-s | serverpath | The path to the Application Center server. |
-c | context | The context of the Application Center web application. |
-u | user | The user credentials to access the Application Center. |
-p | password | The password of the user. |
-d | description | The description of the application to be uploaded. |
-l | label | The fallback label. Normally the label is taken from the application descriptor stored in the file to be uploaded. If the application descriptor does not contain a label, the fallback label is used. |
-isActive | true or false | The application is stored in the Application Center as an active or inactive application. |
-isInstaller | true or false | The application is stored in the Application Center with the “installer” flag set appropriately. |
-isReadyForProduction | true or false | The application is stored in the Application Center with the “ready-for-production” flag set appropriately. |
-isRecommended | true or false | The application is stored in the Application Center with the “recommended” flag set appropriately. |
-e | Shows the full exception stack trace on failure. | |
-f | Force uploading of applications, even if they exist already. | |
-y | Disable SSL security checking, which allows publishing on secured hosts without verification of the SSL certificate. Use of this flag is a security risk, but may be suitable for testing localhost with temporary self-signed SSL certificates. |
The files parameter can specify files of type Android application package (.apk) files or iOS application (.ipa) files.
In this example user demo has the password demopassword. Use this command line.
java com.ibm.appcenter.Upload -s http://localhost:9080 -c applicationcenter -u demo -p demopassword -f app1.ipa app2.ipa