Skip to main content
Version: 1.0.7

API Keys and CLI

MobileHub API keys authenticate Appium, CLI, and automation workflows against the connected Device Farm environment.

MobileHub API key management

Create a key

  1. Open Settings → API Keys.
  2. Create a key and give it a recognizable name.
  3. Choose an identity and expiration appropriate to the integration.
  4. Grant only the required permissions.
  5. Review the form, create the key, and copy the secret when it is displayed.

Automation API key form

User API key identity and expiration

User API key permission choices

Store the value in a secret manager. Never put a real key in documentation, source control, screenshots, logs, or a shared chat. Revoke keys that are no longer needed or may have been exposed.

Install the CLI

The page provides environment-specific installation instructions for macOS and Windows. Use the command shown in your current MobileHub UI so the package and endpoint match the deployment.

MobileHub CLI installation for macOS

MobileHub CLI installation for Windows

After installation, keep credentials in environment variables or your CI platform's protected secret store. Use separate keys for unrelated services or pipelines so access can be rotated independently.