Skip to main content

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

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbraid_cli-0.13.0a0.tar.gz (98.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qbraid_cli-0.13.0a0-py3-none-any.whl (111.5 kB view details)

Uploaded Python 3

File details

Details for the file qbraid_cli-0.13.0a0.tar.gz.

File metadata

  • Download URL: qbraid_cli-0.13.0a0.tar.gz
  • Upload date:
  • Size: 98.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qbraid_cli-0.13.0a0.tar.gz
Algorithm Hash digest
SHA256 6222cc74d9937318907ecd6939e075e8aed5a9a9a22ce19772c55b92aad53e80
MD5 a54c326b32e9d3e06463c73494d0e3ff
BLAKE2b-256 8871aeb13447d58553fcd065a0d65ad1e337e8fb83f16f5337cb11099e94e45b

See more details on using hashes here.

File details

Details for the file qbraid_cli-0.13.0a0-py3-none-any.whl.

File metadata

  • Download URL: qbraid_cli-0.13.0a0-py3-none-any.whl
  • Upload date:
  • Size: 111.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qbraid_cli-0.13.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 2990bce74908705c6073c927ab95e5bd8c292a1c27ae4124f49d3005e99c8ec3
MD5 3868d6b513857b87a9ef54151a457a85
BLAKE2b-256 4b3f968444c8bcede6ca4ff8af5b725d6b66b96995308892079f51d6222f7ee3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page