bambu-cli
A command-line interface for controlling Bambu Lab 3D printers via MQTT, HTTPS and FTPS protocols.
Features
- Connect to Bambu Lab printers over LAN or Bambu Cloud
- Upload print files to local printer
- Trigger print and track progress
- Pause, resume and cancel print in progress
Disclaimer
This tool is in a development state and is likely to have missing features, bugs and changes. Use freely within the terms of the license, but at your own risk
Installation
Either from pip:
pip install bambu-cli
or as a Docker image:
docker pull thegeektechworkshop/bambu-cli
Usage
If using the Docker image, it is recommended to create a shell script wrapper such as:
#!/usr/bin/env bash
docker run -it -v ~/.bambu-cli:/root/.bambu-cli -v $PWD:/root -w /root thegeektechworkshop/bambu-cli $@
You can add a printer available directly on your local network:
bambu add-local
Or you can login to your Bambu Cloud account...:
bambu login user@example.com --password mypassword
... and then add a printer already associated with that account:
bambu add-cloud
Print a file. If the printer can be found on the local network it will be uploaded via FTPS first
bambu print myP1S my_print.gcode.3mf
While print is in progress:
- Press 'p' to pause the print job
- Press 'r' to resume a paused print job
- Press 'c' to cancel the print job
- Press 'q' to exit the interface without affecting the print job
AMS is supported. To enable it add the filament-slot mapping:
bambu print myP1S my_print.gcode.3mf --ams 2 x 0
3mf project files can be interrogated for useful information:
bambu 3mf my_print.gcode.3mf
Model: P1S
Nozzle Diameter: 0.4
Filament Type: PLA
Filament Amount: 5.17g
Print Time: 00:14:55
Monitor and control one or more of your printers at once with detailed status information (exclude the --printers parameter to monitor all known printers):
bambu monitor --printers myP1S myA1
License
GNU 3.0 License - see LICENSE file for details
Metadata
Release files for bambu-cli 0.5.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bambu_cli-0.5.10.tar.gz | 37.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bambu_cli-0.5.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.2 kB
Release files / bambu_cli-0.5.10.tar.gz
| Download URL | bambu_cli-0.5.10.tar.gz |
|---|---|
| Size | 37.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
377091a972f840f246e2092b5f378051e8e5712cf37985ce8828ff66ee0a1b48
|
|
BLAKE2b-256 checksum How to use checksums |
71dc3636243a7338992a56b11b5c04c5b3d3078bf95552cc597bab4e34e96499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.21.0 CPython/3.12.8 Linux/6.8.0-1020-azure
|
Release files / bambu_cli-0.5.10-py3-none-any.whl
| Download URL | bambu_cli-0.5.10-py3-none-any.whl |
|---|---|
| Size | 47.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0d63c9d7b327b223e174b0d0aa7e6bd9fb384f5854650521271536798f09756
|
|
BLAKE2b-256 checksum How to use checksums |
ba28d6bf30a95c497f529f7f03252ea84adab7d12f66b81ea491fb03a6088c67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.21.0 CPython/3.12.8 Linux/6.8.0-1020-azure
|