Raccoon CLI

raccoon is the command line tool you use on your laptop. It connects to the robot, generates code from your config, syncs your files and runs your missions on the Pi. Install it with uv sync inside a project; see Create Your Project . It needs Python 3.13 or newer.

Projects are created with the setup script of the example project, not with the CLI. After that you use raccoon from inside the project.

The developer loop

flowchart LR
    A([connect to Pi]) --> B([edit config and missions])
    B --> C([raccoon run])
    C --> D([codegen on laptop])
    D --> E([sync to Pi])
    E --> F([execute on Pi])
    F --> G([pull changes back])
    G --> H{happy?}
    H -- no --> B
    H -- yes --> I([commit])
    I --> B

Code generation and all validation happen on your laptop. The Pi only receives the final Python files, which keeps the loop fast even over a slow WiFi link.

Commands at a glance

CommandWhat it doesPage
raccoon connect <ip>Link to the robot and set up SSH keysconnect
raccoon disconnectDrop the active connectiondisconnect
raccoon shellOpen an SSH shell on the Pishell
raccoon runCheckpoint, generate code, sync, execute, pull backrun
raccoon syncPush or pull files between laptop and robotsync
raccoon codegenGenerate defs.py, defs.pyi and robot.pycodegen
raccoon missionCreate, list, rename, remove and reorder missionsmissions
raccoon calibrateTicks, autotune, servos and step responsecalibrate
raccoon logsShow, tail, download and clear robot logslogs
raccoon checkpointAutomatic safety snapshots of your projectcheckpoint
raccoon validateCheck config, missions and importsvalidate
raccoon doctorHealth check of tools, connection and versionsdoctor
raccoon updateBring laptop and robot to the same bundleupdate
raccoon migrateApply project format migrationsmigrate
raccoon uploadFull preflight, then push to the robot and confirm it startsupload
raccoon webStart the WebIDEweb

All commands support -h / --help. Run raccoon <command> --help for the complete list of options of any command.

Auto-validation

Before raccoon run, raccoon runs raccoon validate against your project to catch config errors before anything is synced or executed. Other commands do not validate on their own. Run raccoon validate yourself, or use raccoon upload , which validates as its first step.

To skip it for one call, use the global flag:

raccoon run --no-validate

Reading order

New to the CLI? Read in this order:

  1. connect : SSH key setup and saved connections
  2. run : the command you use all day
  3. Run Configurations : parameterize dev versus competition runs
  4. sync : what happens under the hood
  5. checkpoint : the safety net before every run

For maintenance and problems, jump to update , migrate , Troubleshooting and Recovery , doctor and raccoon-server (the daemon on the Pi).

The transport contract check that connect and doctor report is explained in Advanced → Transport .