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.
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).
bambu-cli status
bambu-cli status --jsonams
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.
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:
bambu-cli ams --json
bambu-cli ams --studio --jsonGlobal connection options must come before the subcommand. If Studio has no unique active LAN connection, provide the confirmed printer address with --ip:
bambu-cli --ip 192.168.1.50 ams --studio --jsonThe 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.
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).
bambu-cli upload .\model.gcode.3mfprint
Upload (and optionally slice first) and trigger printing over MQTT (port 8883).
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
bambu-cli pause
bambu-cli resume
bambu-cli stop
bambu-cli light on
bambu-cli light off
bambu-cli gcode "G28"