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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bambu_cli-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c678d5901e7a4a586d9b0e8d0937c258283a8c298c4804320172d1cf37495fd
MD5 8db0eb6b0489b1b37f006bc7184ce66a
BLAKE2b-256 4a0259b6a25ed2138fa7c942ddf8295f028c4472e0c859194f688744d64a5059

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