# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, winget, zypper 安装 flyctl

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

## 安装

```sh
sudo av install brew:flyctl
```

## 代理安全回答

flyctl deploys and manages Fly.io applications and infrastructure.

- **凭据访问:** Reads Fly tokens, app config, secrets, and environment variables.
- **远程变更:** Can deploy, scale, destroy, and change remote app state.
- **发布/制品风险:** Publishes application images and release configuration.
- **推荐控制:** Gate deploy, secrets, scale, destroy, and token commands.
- **代理使用指南:** Allow status and config reads; require approval for deploys, secret changes, and destructive operations.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flyctl
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flyctl
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#flyctl
```

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

- zypper (92%):

```sh
sudo zypper install fly
```

  证据: openSUSE Tumbleweed package metadata: fly from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install flyctl
```

  证据: Chocolatey community package catalog: flyctl from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','firacode'

- Scoop (92%):

```sh
scoop install main/flyctl
```

  证据: Scoop official bucket manifest trees: bucket/flyctl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Fly-io.flyctl -e
```

  证据: Windows Package Manager source index: Fly-io.flyctl from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:flyctl
- **软件包管理器:** Homebrew
- **版本:** 0.4.77
- **来源摘要:** Command-line tools for fly.io services
- **主页:** <https://fly.io>
- **仓库:** <https://github.com/superfly/flyctl>
- **最后更新:** 2026-07-30T20:58:11Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fly (别名)
- flyctl (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

flyctl is the official Fly.io command-line interface, installed locally and invoked as fly to create, deploy, and manage applications on Fly.io.

### 项目历史

Fly.io documentation presents flyctl as one of the primary ways to interact with the Fly.io platform. The CLI covers account login, app launch and deployment, Machines, volumes, networking, certificates, logs, secrets, organizations, SSH, WireGuard, and related platform operations.

The public superfly/flyctl repository is the source-control home for the CLI and has been released as a versioned Go command-line tool since early public releases in 2019.

### 采用历史

flyctl adoption follows Fly.io's platform adoption: it is the documented entry point for launching apps, deploying services, managing infrastructure primitives, and automating CI workflows. Official install docs include Homebrew on macOS, shell install scripts on Unix-like systems, and a PowerShell installer on Windows.

### 使用方式

Users run fly auth login or signup, fly launch, fly deploy, fly logs, fly status, fly secrets, fly machine, fly volumes, fly certs, and related commands to manage apps and infrastructure from local terminals or CI jobs.

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

flyctl is package-nerd significant as a fast-moving cloud CLI: package managers need to track frequent upstream releases, expose both fly and flyctl entry points, and preserve a simple install path for users who bootstrap deployments from a fresh workstation or CI image.

It is also a good example of modern PaaS packaging, where the CLI is not just a helper but the main control plane surface for app creation, deployment, credentials, and operational introspection.

### 时间线

- 2019: flyctl v0.0.1 was published.
- 2020: flyctl continued through frequent v0.0.x releases as Fly.io's CLI matured.
- 2022: Fly Machines and related infrastructure commands became part of the CLI surface.
- 2026: Fly.io documentation lists flyctl as the primary local CLI for apps, Machines, volumes, networking, and more.

### Related projects

- Fly.io Machines, Fly Launch, Fly Deploy, LiteFS Cloud, Managed Postgres, WireGuard networking, and Tigris storage are platform areas exposed through flyctl commands.
- The Fly.io docs site and the superfly/flyctl GitHub repository are the main related official project surfaces.

### 来源

- <https://fly.io/docs/flyctl/>
- <https://fly.io/docs/flyctl/install/>
- <https://github.com/superfly/flyctl>
- <https://github.com/superfly/flyctl/releases/tag/v0.0.1>


## 安全说明

没有找到 flyctl 的匹配本地密钥处理 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

- Unix: ~/.fly/config.yml

## Credential files

- Unix: ~/.fly/config.yml
## 其他软件包管理器记录

- Nix - flyctl: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flyctl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - flyctl: normalized package name match | MacPorts ports tree: devel/flyctl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - flyctl: normalized package name match | Chocolatey community package catalog: flyctl from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','firacode'
- Scoop - main/flyctl: normalized package name match | Scoop official bucket manifest trees: bucket/flyctl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Fly-io.flyctl: normalized package name match | Windows Package Manager source index: Fly-io.flyctl from https://cdn.winget.microsoft.com/cache/source.msix
- Nix - fly: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/fl/fly/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - fly - 2.0.1-2.8: installed executable or alias match | openSUSE Tumbleweed package metadata: fly from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Script to Create PNGs | http://martin.gleeson.com/fly/


## Combined YAML source

View the package source record on GitHub. [combined/flyctl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/flyctl.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
- curated agent safety answer
