<!--
{
  "availability" : [
    "SwiftPM: 5.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Target/PluginUsage/plugin(name:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription6TargetC11PluginUsageO6plugin4nameAESS_tFZ"
  },
  "title" : "plugin(name:)"
}
-->

# plugin(name:)

Specifies use of a plugin target in the same package.

```
static func plugin(name: String) -> Target.PluginUsage
```

## Parameters

`name`

The name of the plugin target.

## Return Value

A `PluginUsage` instance.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)