---
title: commands
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextensioncontext/commands
---

# commands

The commands associated with the extension.

## Declaration

```swift
var commands: [WKWebExtension.Command] { get }
```

## Discussion

Discussion Provides all commands registered within the extension. Each command represents an action or behavior available for the web extension.

## See Also

### Related Documentation

- [performCommand(_:)](webkit/wkwebextensioncontext/performcommand(_:).md)
