---
title: init()
framework: swift-package-manager
role: symbol
role_heading: Initializer
path: swift-package-manager/documentation/packageplugin/plugin/init()
---

# init()

Instantiates the plugin.

## Declaration

```swift
init()
```

## Discussion

Discussion This happens once per invocation of the plugin. There is no facility for keeping in-memory state from one invocation to the next. Most plugins do not need to implement the initializer.
