CLI tool for managing an Elegoo Centauri Carbon 3D printer over its local network SDCP WebSocket API.
If you have uv, once you have this repo around, you can just:
uv run cc-toolor you can also just uv sync, activate the virtualenv, and run cc-tool directly.
Or you could install this as a tool with uv tool...
or uvx --from=git+https://github.com/akx/centauri-carbon-tool.git cc-tool ...
Substitute uv run cc-tool (or similar) for cc-tool below.
All commands accept --host (default 192.168.1.121, or set CC_HOST env var).
cc-tool files # list /local/ (default), sorted by date
cc-tool files /usb/ # list USB storage
cc-tool files --sort name --desc # sort by name, descendingSort options: name, size, date, layers.
cc-tool historyShows completed/stopped/errored prints with timestamps, durations, and layer counts.
cc-tool download ./backup # download all files to ./backup
cc-tool download ./backup --glob "*.gcode" # only matching files
cc-tool download ./backup --compress # compress with zstdmt after download
cc-tool download ./backup --path /usb/ # download from USB storageAlready-downloaded files (including .zst compressed versions) are skipped automatically.
cc-tool delete /local/old-model.gcode # delete a file (with confirmation)
cc-tool delete /local/file1 /local/file2 --yes # skip confirmation
cc-tool delete -d /local/somefolder # delete a folder