The MoQuality Command Line Interface (CLI) makes it easy to upload apps and manage tests on MoQuality. It's an essential part of making your QA process agile. The CLI tool can be integrated with any CI/CD tools such as Bitrise, Circle CI or Jenkins to upload your latest build to MoQuality.
The MoQuality CLI can be installed using brew.
brew install moquality/brew/mq
If you prefer yarn, you can install the CLI with
yarn global add mq-cli
To verify your CLI installation, use the
mq --version command:
After you install the CLI, you can set up your API key. You can find your API key under the Profile Menu in "Account". Then set up the
MQ_APIKEY environment variable:
To upload an app to MoQuality, run the
mq upload command.
mq upload --project <project_id> --app ~/path/to/app.apk
You can install the
mq-cli in your pipeline instructions and then set up your API Key so that any command that follows is set up for your account.
To upload your app from your Bitrise workflow add a custom script such as this:
echo "Sending APK to MoQuality" npm install -g [email protected] export MQ_APIKEY=<api_key> mq upload --project <project_id> --app $BITRISE_APK_PATH
You can alternatively modify the upload command to add more information
mq upload --project <project_id> \ --app $BITRISE_APK_PATH \ --buildNumber $BITRISE_BUILD_NUMBER \ --buildTitle $BITRISE_BUILD_SLUG \ --buildArtifact $BITRISE_PUBLIC_INSTALL_PAGE_URL \ --buildAuthor "$GIT_CLONE_COMMIT_AUTHOR_NAME" \ --buildBranch $BITRISE_GIT_BRANCH
To upload your app from your CircleCI job, you can add a step using shell scripts such as this:
version2.0 jobs build docker imagecircleci/android api-25-node steps checkout run name'Upload app to MoQuality' command npm set prefix=/home/circleci/npm npm install -g mq-cli export MQ_APIKEY=<api_key> /home/circleci/npm/bin/mq upload \ --project <project_id> \ --app <local_server_path>/<app_apk>.apk
Since CircleCI's docker images have
npm installed at
/home/circleci/npm, you will have to use
npm set prefix. This will install the CLI tool at
/home/circleci/npm/bin/mq. Then you can use the
mq command to upload your app. You can also tag this upload with
To uninstall the CLI, you can use
brew remove mq
If you installed the CLI through yarn, use
yarn global remove mq-cli
Updated about a month ago