See https://www.klipper3d.org/G-Codes.html for the complete set of Klipper gcode commands.
Your slicer takes a CAD model and “slices” it into layers, outputting the instructions, as gcode, necessary to control the printer to print each layer. These gcode instructions specify tool path movements and control all operations.
Gcode that is produced by the slicer might look something like this:
G28 G1 F1500 G1 X2.0 Y2.0 F3000 G1 X3.0 Y3.0
Klipper's goal is to implement a minimal set of the most common of gcodes required to be effective, and to leverage macros to build more complex instructions from smaller building blocks, and preferring “extended gcode commands” that are more human readable to traditional Marlin or RepRap gcodes designed when simple parsing simplistic was a necessity during to hardware limitations for the firmware of the time.
Klipper supports the following standard G-Code commands:
Klipper then further implements a set of “extended gcode”, a full list of which is available here as part of the Klipper documentation.
Common Klipper extended gcode commands include:
They take meaningfully named parameters which can appear in any order, as opposed to Marlin gcodes that follow strict parameter order and are referenced with preface letters like P, S, T for parameters, second, or tool specifiers which are less human-readable.
Gcode itself is case insensitive, except for characters in comments. Comments begin with a semi-colon and end at the end of the line.
G28 ; HOME the nozzle SET_HEATER_TEMPERATURE HEATER=extruder TARGET=160 ; set the extruder temperature to 160C