Skip to content

Command Reference ​

All commands accept global overrides: --ip, --access-code, --serial, and --timeout.

config ​

Save or display connection settings and default Bambu Studio paths. Access codes are masked in printed output.

powershell
bambu-cli config --ip 192.168.1.50 --access-code 12345678 --serial 01P00A000000000
bambu-cli config --bambu-studio "C:\path\to\bambu-studio.exe"

status ​

Fetch real-time MQTT telemetry (state, file, progress_pct, remaining_min, layer, nozzle_temp_c, bed_temp_c, chamber_temp_c, light, wifi).

powershell
bambu-cli status
bambu-cli status --json

ams ​

Read a fresh LAN status report from an A1 mini over TLS. The output lists each AMS Lite slot with its occupancy, material, label, and registered RGB. External spool data is omitted.

text
bambu-cli ams [--studio] [--json] [--ca-file PATH]

Without --studio, the command uses the configured printer connection. With --studio, it uses the current Windows Bambu Studio LAN connection and its saved credentials for the selected A1 mini:

powershell
bambu-cli ams --json
bambu-cli ams --studio --json

Global connection options must come before the subcommand. If Studio has no unique active LAN connection, provide the confirmed printer address with --ip:

powershell
bambu-cli --ip 192.168.1.50 ams --studio --json

The command loads the printer CA from the Bambu Studio installation. For another installation path, supply its certificate with --ca-file PATH.

slice ​

Run Bambu Studio CLI headlessly to produce a .gcode.3mf file.

powershell
bambu-cli slice .\model.stl --output-dir .\out --settings "machine.json;process.json" --filaments "filament.json"

upload ​

Upload a sliced .gcode.3mf file over LAN FTPS (port 990).

powershell
bambu-cli upload .\model.gcode.3mf

print ​

Upload (and optionally slice first) and trigger printing over MQTT (port 8883).

powershell
bambu-cli print .\model.gcode.3mf
bambu-cli print .\model.gcode.3mf --no-ams
bambu-cli print .\model.stl --slice --settings "machine.json;process.json" --filaments "filament.json"

pause / resume / stop / light / gcode ​

powershell
bambu-cli pause
bambu-cli resume
bambu-cli stop
bambu-cli light on
bambu-cli light off
bambu-cli gcode "G28"

Released under the MIT License.