# 使用 Homebrew 安装 swiftly

查看 swiftly 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:swiftly
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swiftly
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swiftly
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swiftly>
- **版本:** 1.1.3
- **来源摘要:** Swift toolchain installer and manager
- **主页:** <https://github.com/swiftlang/swiftly>
- **仓库:** <https://github.com/swiftlang/swiftly>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/swiftlang/swiftly.git>
- **最后更新:** 2026-06-22T14:06:25-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- swiftly (cli)
- swiftly (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.3
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/swiftlang/swiftly
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

swiftly is the Swift project's official command-line installer and version manager for standalone Swift toolchains. It matters to package-manager culture because it gives Swift a first-party answer to language-version managers such as swiftenv, with project-level `.swift-version` files and support for stable and snapshot toolchains.

### 项目历史

The GitHub repository was created in June 2022. The README describes swiftly as a Swift-written CLI for installing, managing, and switching Swift toolchains on Linux and macOS.

Swift.org announced swiftly 1.0 on March 28, 2025 as the first stable release and said the tool had previously existed for years as a community-supported Linux tool. The announcement also credits Patrick Freed for creating swiftly and contributing it to the Swift organization.

### 采用历史

The 1.0 announcement marked swiftly's move from community-supported tool to officially supported part of the core Swift toolchain, including hosting under the Swift GitHub organization and adding macOS support.

Swift.org installation pages use swiftly for standalone Swift installation outside Xcode. The documentation covers installing the latest release, installing older releases, using snapshots, and self-updating the tool.

### 使用方式

Common usage is `swiftly init`, `swiftly install`, `swiftly use`, `swiftly list-available`, and `swiftly self-update`. A repository can include `.swift-version` so contributors and CI select the same Swift toolchain.

swiftly is aimed at developers who need more than the Swift version bundled with Xcode: Linux services, command-line tools, CI jobs, nightly snapshots, and compatibility testing across older Swift releases.

### 为什么软件包爱好者会关心

swiftly is significant because language toolchain installation is usually where system packages, tarballs, shell scripts, and version managers collide. Swift.org moving this into an official CLI reduces the amount of bespoke bootstrap code Swift users need in project setup.

For package maintainers, `.swift-version` turns Swift itself into repository metadata, similar in spirit to `.ruby-version`, `.node-version`, or `rust-toolchain`, while retaining official Swift release and signature infrastructure.

### 时间线

- 2022: GitHub repository created.
- 2025: Swift.org announces swiftly 1.0 as the first stable release.
- 2025: swiftly becomes officially supported as part of the core Swift toolchain.
- 2026: GitHub release metadata shows active 1.1.x maintenance.

### Related projects

- Related projects include Swift Package Manager, swiftenv, Xcode toolchains, Swift.org install infrastructure, and the Swift OpenAPI-based release APIs used by swiftly.

### 来源

- <https://api.github.com/repos/swiftlang/swiftly>
- <https://github.com/swiftlang/swiftly#readme>
- <https://www.swift.org/blog/introducing-swiftly_10/>
- <https://www.swift.org/install/macos/swiftly/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .swift-version
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swiftly
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [skip](https://pkg.so/zh-hans/brew/skip/) - Popular package that depends on this formula.
- [juliaup](https://pkg.so/zh-hans/brew/juliaup/) - Shares pkgdb curated category or tags: cli, developer-tools, installer, toolchain, version-manager.
- [ghcup](https://pkg.so/zh-hans/brew/ghcup/) - Shares pkgdb curated category or tags: cli, developer-tools, installer, toolchain, version-manager.
- [xcodes](https://pkg.so/zh-hans/brew/xcodes/) - Shares pkgdb curated category or tags: cli, developer-tools, installer, version-manager.
- [proto](https://pkg.so/zh-hans/brew/proto/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain, version-manager.
- [zigup](https://pkg.so/zh-hans/brew/zigup/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain, version-manager.
- [llvm](https://pkg.so/zh-hans/brew/llvm/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain.
- [xcbeautify](https://pkg.so/zh-hans/brew/xcbeautify/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [swiftlint](https://pkg.so/zh-hans/brew/swiftlint/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.

## Combined YAML source

View the package source record on GitHub. [combined/swiftly.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swiftly.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
