# CLI Commands Summary of the commands available in CLI mode. ## Always available commands | Function | Parameters (if any) | Description | |--|--|--| | `beep` |`[] []`| Play a beep sound. | | `ls` | ``| List files in a directory. | | `read` |`` | Read a file. | | `readsd` |` `| Read sectors from SD card. | | `testsd` | | Test SD card. | | `play` | `` | Play a file. | | `reboot` | `[wdt]` | Reboot the device. | | `set` | ` ` | Set a configuration parameter. | | `trigger_watchdog_reset` | | Trigger a watchdog reset. | | `help` | `[]` | Show help for a command. | ## If `ENABLE_SERIAL_PASSTHROUGH` set | Function | Parameters (if any) | Description | |--|--|--| | `serialpassthrough` | ` [] []` | Enable serial passthrough. | ## If `DEBUG` set | Function | Parameters (if any) | Description | |--|--|--| | `print` | `
[] \| ` | Print a value. | | `p` | `
[] \| ` | Print a value. | | `stackinfo` | | Show stack info. | | `meminfo` | | Show memory info. | | `test` | `new \| graphics \| memspd` | Run a test. | | `trace` | `on \| off` | Enable/disable tracing. | | `debugvars` | | Show debug variables. | | `repeat` | ` ` | Repeat a command. | | `testfatfs` | | Test FatFS SD card. | ## If `JITTER_MEASURE` set | Function | Parameters (if any) | Description | |--|--|--| | `jitter` | | Measure jitter. | ## If `INTERNAL_GPS` set | Function | Parameters (if any) | Description | |--|--|--| | `gps` | `\|$\|trace` | Send a command to the GPS. | ## If `SPACEMOUSE` set | Function | Parameters (if any) | Description | |--|--|--| | `spacemouse` | `poll \| tare \| startstreaming \| stopstreaming \| trace` | Control the SpaceMouse device. | ## If `BLUETOOTH` set | Function | Parameters (if any) | Description | |--|--|--| | `bt` | `\|` | Send a command to the Bluetooth module. | ## If `TP_GT911` set | Function | Parameters (if any) | Description | |--|--|--| | `reset_gt911` | | Reset the GT911 touchscreen controller. | ## If `ACCESS_DENIED` && `DEBUG_CRYPT` set | Function | Parameters (if any) | Description | |--|--|--| | `crypt` | `` | Encrypt a string. |