Skip to main content

CLI tool for use with Bambu Printers

Project description

bambu-cli

A command-line interface for controlling Bambu Lab 3D printers via MQTT and FTPS protocols.

Features

  • Connect to Bambu Lab printers over local network 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 as a Python library:

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: (ip, serial-number, access-code):

bambu add-local 192.168.1.100 01ABCD123456789 12345678 --name myP1S

Or you can login to your Bambu Cloud account...:

pdm run bambu-cli login --email user@example.com --password mypassword

... and then add a printer already associated with that account:

pdm run bambu-cli add-cloud

Upload a file to print:

bambu upload myP1S my_print.gcode.3mf

Print the file

bambu print myP1S my_print.gcode.3mf

AMS is supported, to enable it add the filament-slot mapping:

bambu print myP1S my_print.gcode.3mf --ams 2 x 0

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

License

GNU 3.0 License - see LICENSE file for details

Project details


Download files

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

Source Distribution

bambu_cli-0.2.4.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

bambu_cli-0.2.4-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file bambu_cli-0.2.4.tar.gz.

File metadata

  • Download URL: bambu_cli-0.2.4.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.21.0 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for bambu_cli-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e148b39fdf1ce02c105a86775333f13d727ec894dc35302ee88cfd707001a3e5
MD5 2fa0b6e599b77221dc5175397f53216d
BLAKE2b-256 b704698b21c0a3e7664b42e6688858f4735ce0febafb5dc4c688321c04f8949c

See more details on using hashes here.

File details

Details for the file bambu_cli-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: bambu_cli-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.21.0 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for bambu_cli-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b40bf6f6e6e217a4b42f4a9ee5e382d2d1acc58ee3e43f479b937a35b8e283e
MD5 3ac322951f50f967d23ce45cd72600a0
BLAKE2b-256 40593d4fa21e37a3bdf2ab3d582bf398e9cbe60117dfd61ece05eda7e09a07b1

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