---
title: command
framework: xcuiautomation
role: symbol
role_heading: Type Property
path: xcuiautomation/xcuikeyboardkey/command
---

# command

A constant that represents the Command key.

## Declaration

```swift
static let command: XCUIKeyboardKey
```

## See Also

### Modifier keys

- [control](xcuiautomation/xcuikeyboardkey/control.md)
- [option](xcuiautomation/xcuikeyboardkey/option.md)
- [shift](xcuiautomation/xcuikeyboardkey/shift.md)
- [rightCommand](xcuiautomation/xcuikeyboardkey/rightcommand.md)
- [rightControl](xcuiautomation/xcuikeyboardkey/rightcontrol.md)
- [rightOption](xcuiautomation/xcuikeyboardkey/rightoption.md)
- [rightShift](xcuiautomation/xcuikeyboardkey/rightshift.md)
