Skip to main content
qBraid-CLI
Universal command line interface for interacting with all parts of the qBraid platform.
The qBraid CLI is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools.

Getting Started

The qBraid-CLI comes pre-installed and pre-configured in qBraid Lab: For help, see qBraid Lab User Guide: Getting Started.

Local Setup

If you prefer to use qBraid-CLI on your local machine, you can install it from PyPI with:
qbraid-cli versions <0.12 are not compatible with qBraid API V2. See migration guide.To ensure compatibility with the new platform, use qbraid-cli ≥ 0.12.0.
To manage qBraid environments using the CLI, you must also install the envs extra:
After installation, you must configure your account credentials to use the CLI locally:
  1. Create a qBraid account or log in to your existing account by visiting account.qbraid.com
  2. Navigate to Account > API Keys in the left-sidebar, and then click “Create API Key”.
  3. Save your API key from step 2 in local configuration file ~/.qbraid/qbraidrc using:
Important for Windows Users: If you encounter a warning like:
You need to add the directory containing qbraid.exe to your system’s PATH.
  1. Copy the directory path provided in the warning.
  2. Follow these steps:
  • Open the Start Menu, search for “Environment Variables,” and select “Edit the system environment variables.”
  • In the System Properties window, click the Environment Variables button.
  • Under “User variables,” locate the Path variable, click Edit, and add the copied directory.
  1. Save the changes and restart your terminal.

Basic Commands

A qBraid CLI command has the following structure:
For example, to list installed environments, the command would be:
To view help documentation, use one of the following:
For example:
To get the version of the qBraid CLI: