Overview
The ManageXR CLI is a useful tool to automate the process of uploading applications to ManageXR. You can use the CLI in your CI/CD pipeline to upload new app versions to your ManageXR organization and publish versions to release channels.Getting Started
Themxr-cli
is available as an NPM package or a binary executable. To get started select one of the three quick set up options below.
Choose one of:
(A) Install using NPM
Paste in your terminal to install:mxr-cli
:
(B) Run using NPX
Usenpx
to directly run a CLI command without an npm install
:
(C) Run using a binary
If your machine does not havenode.js
, you can use a binary executable instead. Download the binary for your machine:
Then, run the binary using:
On Mac and Linux machines, you may need to grant executable permissions to the binary before you can run it. To do this, run
chmod +x path/to/mxr-cli
.Authenticate Commands
Each CLI command must include valid authentication. Authenticate commands using ManageXR API Keys.- Create an API Key To generate an API Key, go to Organization Settings > API Keys.
-
Choose one of the following authentication methods for your commands
(a) Set environment variables for
MXR_API_KEY_ID
andMXR_API_KEY_SECRET
, or (b) Provide a JSON file as an--api-key-file
argument to the command JSON file format: