---
title: commandFields
framework: matter
role: symbol
role_heading: Instance Property
path: matter/mtrcommandwithrequiredresponse/commandfields
---

# commandFields

The command fields to pass for the command invoke.  nil if this command does not have any fields.  If not nil, this should be a data-value dictionary of MTRStructureValueType.

## Declaration

```swift
var commandFields: [String : Any]? { get set }
```
