⚠️ This isn't something that's actively maintained. There are some bugs that I have not fixed, or features I have not added. This was mostly only tested with my K1C printer, but should work for any printer running Klipper (with accessible Moonraker API).
$ git clone https://github.com/jhyland87/moonraker-cli.git
$ ./moonraker-cli/install
This should try to create a symlink to the ./moonraker-cli/moonraker
file at /usr/local/bin/moonraker
.
moonraker <subcommand> <arguments>
The main moonraker
file is in the root. Each command is a .sh file inside the commands folder.
# Command file layout
moonraker-cli
├── moonraker
└── commands
├── bed.sh
├── example.sh
├── file.sh
├── help.sh
├── history.sh
├── job.sh
├── logs.sh
├── macro.sh
├── printer.sh
├── service.sh
├── status.sh
├── watch.sh
└── webcam.sh
To execute a command: moonraker command [args] Examples
# Show high level help
moonraker help
# Show printer command help
moonraker printer help
# Show printer info
moonraker printer info
# Test printer service availability
moonraker printer test
- Implement authentication of moonraker is locked down.
- Use config files for printer settings.
- Ability to connect to multiple printers.
- Unit tests?...
- Tons of other things....