# \`swift package install\` Subcommand

**URL:** <https://forums.swift.org/t/swift-package-install-subcommand/58065>\
**Category:** Package Manager\
**Created:** [June 12, 2022, 1:34pm UTC](https://forums.swift.org/t/swift-package-install-subcommand/58065 "2022-06-12T13:34:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [June 12, 2022, 3:51pm UTC](https://forums.swift.org/t/swift-package-install-subcommand/58065/2 "2022-06-12T15:51:06Z")

</div>

> [@Implement an Install Command for the Swift Package Manager](https://forums.swift.org/t/implement-an-install-command-for-the-swift-package-manager/10148):
>
> As it is, adding dependencies to your project is a bit of a pain. You go to the dependencies repo, copy the Git URL, check to see what the latest version is, go back to your project, add the dependency to your manifests dependencies array, run swift package update, generate an Xcode project or try to build, realize you forgot to add the dependency to your target(s), add it to the target(s), regenerate your Xcode project (if it applies), and now it works! To sum it up, it requires too much back-…

> [@Should SPM allow installation of package on the system](https://forums.swift.org/t/should-spm-allow-installation-of-package-on-the-system/33168):
>
> Hi, Do you think it will be useful if SPM could install package on the system(in /usr/local/bin for exemple)? This project [GitHub - swiftbrew/Swiftbrew: Homebrew for Swift packages](https://github.com/swiftbrew/Swiftbrew) actually make it possible. Thank you,

> [@Swift Package Installation](https://forums.swift.org/t/swift-package-installation/35728):
>
> Swift Package Installation Introduction It would be desirable to simplify the use of executables that have been compiled with swift build and installing the binary, payloads and other requirements into either a global location usable by all users on the system, or make it available only to the current user. This would simplify the distribution and usage of Swift-authored tools, as instructions for installing the software would be as simple as directing the user to type swift tool install. Ot…

---

_[View the full topic](https://forums.swift.org/t/swift-package-install-subcommand/58065)._
