# 使用 Homebrew, Nix 安装 fastly

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

## 安装

```sh
sudo av install brew:fastly
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fastly
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fastly
```

  证据: nixpkgs package indexes: pkgs/by-name/fa/fastly/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:fastly
- **软件包管理器:** Homebrew
- **版本:** 15.4.0
- **来源摘要:** Build, deploy and configure Fastly services
- **主页:** <https://www.fastly.com/documentation/reference/cli/>
- **仓库:** <https://github.com/fastly/cli>
- **最后更新:** 2026-07-26T11:37:55+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fastly (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Fastly CLI is the open-source command-line interface for the Fastly edge cloud. It packages service management, API access, VCL upload, Compute build/deploy workflows, authentication, and CI-friendly automation behind the fastly command.

### 项目历史

The fastly/cli GitHub repository was created in February 2020, and the changelog records v0.1.0 on February 5, 2020. The README describes it as a CLI for interacting with the Fastly platform and links to Fastly's official command reference.

The CLI evolved quickly through 2020 alongside Fastly's modern developer platform. Its release history shows a steady sequence of early v0.x releases, then continuing major versions as the command surface expanded across Compute, services, TLS, domains, stats, stores, authentication, and product-specific commands.

### 采用历史

Fastly CLI adoption is tied to Fastly customers and developers who need repeatable edge configuration from a terminal or CI system. The official docs explicitly position it as a way to create services, manage backends and domains, upload VCL, build and deploy Compute packages, and use Fastly from a code workspace or CI environment.

Unlike a general-purpose cloud CLI, Fastly CLI is a vendor CLI with package-manager distribution through Homebrew and other installers. Its value comes from matching Fastly's API and release cadence closely enough that edge configuration can be automated without hand-written API calls.

### 使用方式

Common use starts with installation, authentication, and configuration, then moves to command groups such as service, domain, backend, compute, kv-store, secret-store, tls, stats, auth, profile, and whoami. The README also documents FASTLY_API_TOKEN for noninteractive authentication.

Compute workflows are a major use case: the CLI can initialize, build, serve, validate, pack, and deploy Compute packages. For legacy and CDN configuration, it also manages VCL upload and service resources such as domains and backends.

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

Package nerds care about Fastly CLI because it is the installable boundary between local build systems and a production edge network. It has to behave well in shells, CI jobs, and developer laptops while tracking a vendor API that changes frequently.

Its changelog is also a good example of a cloud CLI as living infrastructure: frequent releases, SemVer, monthly release scheduling, auth migrations, dependency updates, and new command groups all show the maintenance burden hidden behind a simple brew install fastly.

### 时间线

- 2020: fastly/cli repository created on GitHub.
- 2020: v0.1.0 released on February 5.
- 2021: v0.24.0 released by February 2021 after rapid 2020 iteration.
- 2026: v15.x releases show ongoing monthly CLI maintenance.

### Related projects

- Fastly API is the service interface exposed by the CLI.
- Fastly Compute is one of the major build and deployment workflows handled by the CLI.
- go-fastly is the Go client dependency used by Fastly tooling.

### 来源

- <https://github.com/fastly/cli>
- <https://raw.githubusercontent.com/fastly/cli/main/README.md>
- <https://raw.githubusercontent.com/fastly/cli/main/CHANGELOG.md>
- <https://www.fastly.com/documentation/reference/cli>
- <https://www.fastly.com/documentation/reference/tools/cli>
- <https://api.github.com/repos/fastly/cli>


## 安全说明

没有找到 fastly 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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

- macOS: ~/Library/Application Support/fastly/config.toml
- Unix: $XDG_CONFIG_HOME/fastly/config.toml, ~/.fastly/config.toml

## Credential files

- macOS: ~/Library/Application Support/fastly/config.toml
- Unix: $XDG_CONFIG_HOME/fastly/config.toml, ~/.fastly/config.toml
## 其他软件包管理器记录

- Nix - fastly: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/fastly/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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