2016-11-29 04:08:34 +08:00
# Swift Package Manager
2024-06-11 07:40:03 +08:00
This plugin provides a few utilities that make you faster on your daily work with the [Swift Package Manager ](https://github.com/apple/swift-package-manager ), as well as autocompletion for Swift 5.9.
2016-11-29 04:08:34 +08:00
2016-11-30 07:20:43 +08:00
To start using it, add the `swiftpm` plugin to your `plugins` array in `~/.zshrc` :
2016-11-29 04:08:34 +08:00
```zsh
2016-11-30 07:20:43 +08:00
plugins=(... swiftpm)
2016-11-29 04:08:34 +08:00
```
## Aliases
| Alias | Description | Command |
|-------|-------------------------------------|------------------------------------|
| `spi` | Initialize a new package | `swift package init` |
| `spf` | Fetch package dependencies | `swift package fetch` |
| `spu` | Update package dependencies | `swift package update` |
| `spx` | Generates an Xcode project | `swift package generate-xcodeproj` |
| `sps` | Print the resolved dependency graph | `swift package show-dependencies` |
| `spd` | Print parsed Package.swift as JSON | `swift package dump-package` |