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.5.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.5-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bambu_cli-0.2.5.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.5.tar.gz
Algorithm Hash digest
SHA256 e8f2a4898182a4b4516b88e6702c341e955c56567dd56dd2da74769bfc52601e
MD5 bf1a3fbf8e11b109691e62b63dd880e2
BLAKE2b-256 f255ff78efbcd7a3610c411d3872f7a5370f2eb2d44516a29bea5d385a9be7e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bambu_cli-0.2.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1f400a98a8f0fa92d27bba08efe773617cf296a1db14f055a77f5aacea6cb675
MD5 6070d8a3aba4e18670ca2a6e9272e3ae
BLAKE2b-256 e30f8297ec16a6baedd222971a92b6d806a1e6b270431af4f2bec208e3fae7be

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