---
title: commandIdentifier
framework: XcodeKit
role: symbol
role_heading: Instance Property
platforms: [macOS 10.12+]
path: xcodekit/xcsourceeditorcommandinvocation/commandidentifier
---

# commandIdentifier

The identifier of the command that the user invoked.

## Declaration

```swift
var commandIdentifier: String { get }
```

## See Also

### Responding to Commands

- [buffer](xcodekit/xcsourceeditorcommandinvocation/buffer.md)
