Usage

Usage: mxr-cli upload-app <apk-file>

Positionals:
  apk-file, a  Path to APK file to upload                               [string]

Options:
  -k, --api-key-file                     Path to JSON file containing ManageXR
                                         API Key id and secret          [string]
  -o, --obb-file                         Path to OBB file associated with the
                                         apk                            [string]
  -t, --title                            Set app title in ManageXR. If not set,
                                         will use previous app version's name or
                                         parse name from APK.           [string]
  -d, --description                      Set app description in ManageXR. If not
                                         set, will use previous version's
                                         description or leave blank.    [string]
  -r, --release-channel                  Name of release channel. If release
                                         channel with this name exists, the
                                         release channel will be updated to
                                         target this app version. If release
                                         channel with this name does not exist,
                                         create a new release channel targeting
                                         this app version.              [string]
      --version-label, --vl              An optional label to differentiate an
                                         app from others with the same version
                                         code and name.                 [string]
  -v, --verbose                          If set, log additional output on
                                         errors.                       [boolean]
      --bundle-directory, --bd           Path to a local directory containing
                                         files to upload as a bundle with the
                                         App. Optionally, also a destination
                                         path on the device for the files to be
                                         uploaded to.                    [array]
      --always-upload-all-files, --auaf  Skip MD5 checksums and always upload
                                         all files in the bundle directory.
                                                                       [boolean]
  -h, --help                             Show help                     [boolean]

Examples

1. Using JSON file auth

mxr-cli upload-app /path/to/apkfile.apk --api-key-file /path/to/api_key.json

2. Using environment variable auth

MXR_API_KEY_ID="xxx" MXR_API_KEY_SECRET="xxx" mxr-cli upload-app /path/to/apkfile.apk

3. Upload and Publish to Release Channel

This example uses the following options

  • --obb-file to upload an obb with the apk
  • --title to set the app title in ManageXR as “Cool new app”
  • --description to set the app description in ManageXR as “This app is amazing”
  • --release-channel to publish the new app version to the “Dev” release channel

and a JSON file for auth.

mxr-cli upload-app /path/to/apkfile.apk --obb-file  /path/to/obbfile.obb --title "Cool new app" --description "This app is amazing" --release-channel "Dev" --api-key-file /path/to/api_key.json

4. Upload with bundled files

Upload an app with bundled files and choose the location where the files should be installed on devices

  • --bundle-directory uploads files stored at /path/to/directory on local machine as bundled files
  • /path/on/device optional path to location on device where bundled files will be installed e.g., Android/obb/com.your.app
mxr-cli upload-app /path/to/apkFile.apk --bundle-directory /path/to/directory /path/on/device --api-key-file /path/to/api_key.json