> ## Documentation Index
> Fetch the complete documentation index at: https://docs.almond.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# motor.set-can-id

> Change a motor's CAN ID and persist it to flash.

Changes a motor's CAN ID and persists it to flash. The motor must be the only device on the bus or its current ID must be known. `--type` is required here.

| Flag                         | Description                                                 |
| ---------------------------- | ----------------------------------------------------------- |
| `--l` / `--r`                | Select the left or right arm (mutually exclusive, required) |
| `--current-id ID`            | Current CAN ID (hex or decimal, required)                   |
| `--new-id ID`                | New CAN ID to assign (hex or decimal, required)             |
| `--type {myactuator,damiao}` | Motor type (required)                                       |

```bash theme={null}
axol motor.set-can-id --l --current-id 0x01 --new-id 0x03 --type myactuator
```
