# Command Line Interface (CLI)

## UI Overview

The CLI allows you to more quickly run common dispatch actions without the need to move your mouse, click, or drag-and-drop. The CLI is optimized to make these actions as fast as possible.

### Accessing the CLI

#### Via Hotkey

The CLI can be brought up using a [global hotkey](https://docs.sonoransoftware.com/cad/tutorials/other-features/configurable-hotkeys). This will automatically open and focus your cursor in the first box, or maximize and focus a minimized CLI window tab.

#### Via Window Tab

You can also access the CLI from the start menu > `Dispatch` > `Command Line`

### Utilizing the CLI

The CLI is broken into four boxes. Each box has auto-complete as you type.

Press `Tab` or `Enter` on your keyboard when the filter is down to one option. This will auto-complete to the remaining option and focus your cursor into the next box.

If you've already completed the last box for the action type, `Tab` or `Enter` will automatically submit the command.

![Sonoran CAD - Command Line Interface](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FGLwPNNYRb7Mse7xBXdMo%2Fcli.gif?alt=media\&token=c673ff86-f2a0-4568-957f-79055842960f)

## Command List

| Box 1    | Box 2                                                                                              | Box 3           | Box 4       |
| -------- | -------------------------------------------------------------------------------------------------- | --------------- | ----------- |
| `CREATE` | [Saved Call Type](https://docs.sonoransoftware.com/cad/tutorials/creating-a-call#saved-call-types) | Unit Identifier | Postal Code |
| `CLOSE`  | Call ID Number                                                                                     |                 |             |
| `ATTACH` | Call ID Number                                                                                     | Unit Identifier |             |
| `DETACH` | Call ID Number                                                                                     | Unit Identifier |             |
| `VIEW`   | Call ID Number                                                                                     |                 |             |
| `CLEAR`  |                                                                                                    |                 |             |
| `STATUS` | Status Code                                                                                        | Unit Identifier |             |
| `NOTE`   | Call ID Number                                                                                     |                 | Note Text   |

### Command Descriptions

* `CREATE`: Create a new dispatch call from a [saved type](https://docs.sonoransoftware.com/cad/tutorials/creating-a-call#saved-call-types), specifying a unit and postal code.
* `CLOSE`: Close a dispatch call from the ID.
* `ATTACH`: Attach a unit to a dispatch call ID.
* `DETACH`: Detach a unit from a dispatch call ID.
* `VIEW`: View a dispatch call ID in the call editor.
* `CLEAR`: Clear the call editor.
* `STATUS`: Set a unit or group status.
* `NOTE`: Add a note to a dispatch call ID.
