# 使用 Homebrew, MacPorts 安装 vapor

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

## 安装

```sh
sudo av install brew:vapor
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vapor
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install vapor
```

  证据: MacPorts ports tree: science/vapor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:vapor
- **软件包管理器:** Homebrew
- **版本:** 20.0.2
- **来源摘要:** Command-line tool for Vapor (Server-side Swift web framework)
- **主页:** <https://vapor.codes>
- **仓库:** <https://github.com/vapor/toolbox>
- **最后更新:** 2026-07-31T13:41:16Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- vapor (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 20.0.2
## 项目历史与用法

The Homebrew `vapor` package is the Vapor Toolbox, the command-line companion to Vapor, a server-side Swift web framework. Vapor emerged in the first wave of server-side Swift after Apple open sourced Swift and Linux support in December 2015. Secondary histories and GitHub release records place Vapor's early proof-of-concept and 1.0 era in 2016, with Vapor 1.0 in September 2016 and Vapor 2.0 in 2017, as the Swift ecosystem was still learning how much backend work could be done in Swift.

### 项目历史

A major transition came with Vapor 3.0 in May 2018. Vapor's own release announcement on the Swift forums described Vapor 3 as a ground-up rewrite using Apple's SwiftNIO, shifting the framework toward non-blocking networking and aligning it with the Swift Server Work Group ecosystem. Vapor 4 followed with a stable release in April 2020 and became the long-lived generation documented by current Vapor docs. The core project remains MIT-licensed, hosted on GitHub, and visibly active; the GitHub project page lists more than 26,000 stars and hundreds of releases as of July 2026.

### 采用历史

In package-nerd terms, `brew install vapor` is less about installing a server daemon and more about installing a project generator and workflow helper for Swift backend developers. Typical use is to scaffold a Vapor application, open the generated Swift package in Xcode or another editor, run locally with SwiftPM, and deploy like a normal Swift server process. Its adoption tracks the broader server-side Swift niche: strongest among Swift and iOS developers who want to reuse Swift, Codable models, and Swift tooling on backend APIs.

### 使用方式

The toolbox exists to make the framework ergonomic from a terminal. Swift.org's official Vapor web-service guide tells users to install the Vapor toolbox, create a project with `vapor new HelloVapor`, then build and run the generated Swift package. Vapor's docs describe the framework as a way to write backends, web apps, APIs, and HTTP servers in Swift, and its ecosystem includes routing, Codable content handling, Fluent ORM, Leaf templating, Redis support, authentication, queues, WebSockets, deployment guides, and SwiftPM/Xcode workflows.

In package-nerd terms, `brew install vapor` is less about installing a server daemon and more about installing a project generator and workflow helper for Swift backend developers. Typical use is to scaffold a Vapor application, open the generated Swift package in Xcode or another editor, run locally with SwiftPM, and deploy like a normal Swift server process. Its adoption tracks the broader server-side Swift niche: strongest among Swift and iOS developers who want to reuse Swift, Codable models, and Swift tooling on backend APIs.

### 来源

- <https://docs.vapor.codes/>
- <https://en.wikipedia.org/wiki/Vapor_(web_framework)>
- <https://forums.swift.org/t/vapor-3-0-released-ground-up-rewrite-using-swiftnio/12424>
- <https://github.com/vapor/vapor>
- <https://www.swift.org/getting-started/vapor-web-server/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- MacPorts - vapor: normalized package name match | MacPorts ports tree: science/vapor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
