Metadata-Version: 2.4
Name: pybricks-cli
Version: 1.0.0b1
Summary: The Pybricks command line interface
Keywords: pybricks,lego,micropython,bluetooth,robotics
Author: The Pybricks Authors
Author-email: The Pybricks Authors <dev@pybricks.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Embedded Systems
Classifier: Typing :: Typed
Requires-Dist: pybricks-core>=1.0.0b1
Requires-Dist: pybricks-client>=1.0.0b1
Requires-Dist: pybricks-service>=1.0.0b1
Requires-Dist: anyio>=4.14
Requires-Dist: cyclopts>=4.22
Requires-Dist: rich>=13.7
Requires-Dist: typing-extensions>=4.15
Requires-Dist: watchfiles>=1.2
Maintainer: David Lechner
Maintainer-email: David Lechner <david@pybricks.com>
Requires-Python: >=3.11
Project-URL: homepage, https://pybricks.com
Project-URL: repository, https://github.com/pybricks/pybricks-tools
Project-URL: documentation, https://pybricks.com/pybricks-tools/cli/
Project-URL: Changelog, https://github.com/pybricks/pybricks-tools/blob/main/packages/pb-cli/CHANGELOG.md
Project-URL: Support, https://github.com/pybricks/support/discussions
Project-URL: Issues, https://github.com/pybricks/support/issues
Description-Content-Type: text/markdown

# pybricks-cli

The `pb` command: run Python programs on a [Pybricks](https://pybricks.com) hub
from your computer.

```bash
uv tool install pybricks-cli
```

Then switch a hub on:

```bash
pb connect          # find a hub and connect to it
pb run demo.py      # compile the script, send it, and run it
```

**The hub stays connected after the command finishes**, so the second `pb run`
starts instantly, and so does the hundredth.

`pb repl` talks to the hub's interpreter a line at a time, and `pb run -c` runs
a line or two of Python without a file. `pb --help` lists the rest.

> **Status:** beta. Commands and APIs may still change before 1.0.0.
