---
title: "performCommand(context:arguments:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/commandplugin/performcommand(context:arguments:)"
---

# performCommand(context:arguments:)

Invoked by the package manager to perform the custom actions of the command.

## Declaration

```swift
func performCommand(context: PluginContext, arguments: [String]) async throws
```
