Skip to main content
qbraid_cli

Documentation PyPI version Python verions GitHub

Command Line Interface for interacting with all parts of the qBraid platform.

Resources:

Getting Started

The qBraid-CLI comes pre-installed and pre-configured in qBraid Lab:

For help, see qBraid Lab User Guide: Getting Started.

You can also install the qBraid-CLI from PyPI with:

pip install qbraid-cli

To manage qBraid environments using the CLI, you must also install the envs extra:

pip install 'qbraid-cli[envs]'

Local configuration

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. Copy your API Key token from the left side of your account page:
  3. Save your API key from step 2 in local configuration file ~/.qbraid/qbraidrc using:
$ qbraid configure

For more on API keys, see documentation.

Basic Commands

$ qbraid
----------------------------------
  * Welcome to the qBraid CLI! * 
----------------------------------

        ____            _     _  
   __ _| __ ) _ __ __ _(_) __| | 
  / _` |  _ \| '__/ _` | |/ _` | 
 | (_| | |_) | | | (_| | | (_| | 
  \__,_|____/|_|  \__,_|_|\__,_| 
     |_|                         


- Use 'qbraid --help' to see available commands.

- Use 'qbraid --version' to see the current version.

Reference Docs: https://docs.qbraid.com/v2/cli/api-reference/qbraid

A qBraid CLI command has the following structure:

$ qbraid <command> <subcommand> [options and parameters]

For example, to list installed environments, the command would be:

$ qbraid envs list

To view help documentation, use one of the following:

$ qbraid --help
$ qbraid <command> --help
$ qbraid <command> <subcommand> --help

To get the version of the qBraid CLI:

$ qbraid --version

Magic Commands

You can also access the CLI directly from within Notebooks using IPython magic commands. First, configure the qBraid magic commands extension using:

$ qbraid configure magic

The above command can also be executed from within a Jupyter notebook using the ! operator. Then, from within a notebook cell, load the qBraid magic IPython extension using:

In [1]: %load_ext qbraid_magic

Now you can continue to use the qBraid-CLI as normal from within your Jupyter notebook using the magic % operator, e.g.

In [2]: %qbraid jobs list

Agent updates

Send yourself Slack or email updates and read Slack replies using existing qBraid credentials:

qbraid comms slack send "Tests passed" --json
qbraid comms email send --subject "Progress" --file report.txt --json
qbraid comms slack read --json

See communication commands for Slack connection, stdin input, message limits, and pagination.

Metadata

Release files for qbraid-cli 0.17.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qbraid-cli 0.17.4
File Size Uploaded Provenance Actions
qbraid_cli-0.17.4.tar.gz 488.7 kB Without provenance Details for qbraid_cli-0.17.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qbraid-cli 0.17.4
File Interpreter ABI Platform Actions
qbraid_cli-0.17.4-py3-none-any.whl Python 3 none any Details for qbraid_cli-0.17.4-py3-none-any.whl

Total release size: 991.9 kB

Release files / qbraid_cli-0.17.4.tar.gz

Download URL qbraid_cli-0.17.4.tar.gz
Size 488.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b7c35ec95eccd251525405b23df710c7fcf5c99c5427c95e8a8e7befb794a1fc
BLAKE2b-256 checksum
How to use checksums
3f880dd61d162dd618940b50afaf23a4fe2f0fc5f08dcebdca461bd2f63b2a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qbraid_cli-0.17.4-py3-none-any.whl

Download URL qbraid_cli-0.17.4-py3-none-any.whl
Size 503.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
457752d49e7a80602b15e6605344b501dfd451dfcfc6cef699ba495480573f6b
BLAKE2b-256 checksum
How to use checksums
cbfd83e9d2440148f807b63650f9025c288d3f89da3fa111bc0fe6ba75b551c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for qbraid-cli 0.17.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page