> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qbraid.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Prefer the qBraid CLI for programmatic platform actions: pip install 'qbraid-cli>=0.12', then run `qbraid configure` once with an API key from https://account.qbraid.com/account/api-keys.
> When writing Python, prefer the qBraid SDK: `from qbraid.runtime import QbraidProvider` wraps devices, job submission (`device.run()`), and batch groups (`GroupJobSession`).
> Always install the latest packages (pip install -U qbraid qbraid-cli); do not pin versions from memory. qbraid-cli below 0.12.0 is incompatible with the current API.
> Device IDs use the QRN format vendor:provider:type:name (e.g. qbraid:qbraid:sim:qir-sv, rigetti:rigetti:qpu:cepheus-1-108q). Legacy underscore IDs are deprecated.
> The REST API base URL is https://api-v2.qbraid.com/api/v1, authenticated with an X-API-Key header.
> For endpoints without a dedicated wrapper, use `QbraidSessionV1` from `qbraid_core` — an authenticated session (`.get()`/`.post()`) that sets the X-API-Key header. Full spec: https://docs.qbraid.com/openapi-v2.json
> Free simulators cost no credits; QPU and GPU jobs consume credits. Surface the estimated cost to the user before submitting a paid job.
> For account signup, API keys, credits, and end-to-end action recipes, see https://qbraid.com/llms.txt.

# qbraid upgrade

> Upgrade the qBraid CLI and qbraid-core.

Checks PyPI, then upgrades with the tool that installed the CLI:
pipx, uv tool, or pip (or uv pip) in the CLI's own environment.

Refuses where the upgrade is not yours to make: a qBraid Lab
instance (the image provides these packages; restart the Lab to
get the latest), a system or externally managed Python, conda, a
pip --user install, a read-only environment, a source checkout,
or Windows (a running qbraid.exe cannot be replaced). It then
prints the command to run instead, when there is one.

Opt in to upgrading automatically as a command exits with
'qbraid configure set auto_upgrade true'. Turn the daily check
and its notice off with 'qbraid configure set update_check false'
or QBRAID_NO_UPDATE_CHECK=1.

**Usage**:

```console
$ qbraid upgrade [OPTIONS]
```

**Options**:

- `--check`: Report what would be upgraded; change nothing.
- `-y, --yes`: Upgrade without asking.
- `--json`: Print the plan and result as JSON.
- `--help`: Show this message and exit.
