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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bambu_cli-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4add1579bfeba9fd9690b561cebc7785475f4a329f03284b9bef4a84f7b3c3e7
MD5 8e5481cffe24247f909c4e27ff9e87b5
BLAKE2b-256 e00f499c5499e4fdd6c1cb2ba26a5dbf2b2e9b7fb0e85244a69fb1361ec3a741

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