# 使用 Homebrew, apk, Nix, pacman, scoop 安装 drone-cli

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

## 安装

```sh
sudo av install brew:drone-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install drone-cli
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add drone-cli
```

  证据: Alpine Linux edge package indexes: drone-cli from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#drone-cli
```

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

- pacman (92%):

```sh
sudo pacman -S drone-cli
```

  证据: Arch Linux sync databases: drone-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/drone
```

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

## 软件包事实

- **软件包键:** brew:drone-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/drone-cli>
- **版本:** 1.9.0
- **来源摘要:** Command-line client for the Drone continuous integration server
- **主页:** <https://drone.io>
- **仓库:** <https://github.com/harness/drone-cli>
- **上游文档:** <https://docs.drone.io/cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/harness/drone-cli/archive/refs/tags/v1.9.0.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- drone (cli)
- drone (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.9.0
- 本地数据: OK
- 上游仓库: https://github.com/harness/drone-cli
- 检测到的最新版本: v1.9.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Drone CLI is the command-line companion to Drone, the container-oriented continuous integration system. As a package, its importance is less about being a standalone product and more about giving operators, repository admins, and automation scripts a stable `drone` executable for talking to Drone servers.

### 项目历史

The CLI has historically followed Drone's server-side model: pipelines live with source repositories, while the command-line tool handles installation-time and day-two operations such as login/configuration, repository administration, signing, encryption, logs, and local execution helpers. Its repository now lives under Harness, reflecting Drone's later stewardship under the Harness organization.

### 采用历史

Drone CLI adoption tracks Drone adoption in self-hosted and cloud CI environments. The official installation docs show package-manager and direct binary installation paths, which made it natural to ship through Homebrew and similar package indexes for developers who need the same `drone` command locally and in automation.

### 使用方式

The official CLI docs organize usage around installation/configuration and subcommands for encryption, local execution, logs, signing, JSONNET conversion, users, and repositories. In practice, package users install it to administer Drone instances, inspect pipeline state, and script CI server operations.

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

For package maintainers, Drone CLI is a good example of a CI ecosystem client that is useful only when it stays aligned with its server API. The single `drone` executable, broad subcommand tree, and Homebrew formula make it a small but important bridge between hosted CI infrastructure and local developer shells.

### 时间线

- 2010s: Drone becomes known as a container-native CI/CD system with a separate CLI for server interaction.
- 2020s: Drone CLI source is maintained under the Harness GitHub organization.
- Docs era: Official docs present the CLI as the supported command-line interface for installing, configuring, and operating Drone.

### Related projects

- Drone server and Drone runners provide the CI runtime that the CLI administers.
- The Drone documentation site is the primary command reference for the CLI.
- Harness is the current upstream organization for the `harness/drone-cli` source repository.

### 来源

- <https://github.com/harness/drone-cli>
- <https://docs.drone.io/cli/install/>
- <https://docs.drone.io/cli/configure/>
- <https://docs.drone.io/cli/drone-exec/>
- <https://docs.drone.io/cli/repo/drone-repo-ls/>


## 安全说明

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

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** drone-cli
- **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

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

- Nix - drone-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/dr/drone-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - drone-cli - 1.9.0-r4: normalized package name match | Alpine Linux edge package indexes: drone-cli from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Drone CLI | https://github.com/harness/drone-cli
- pacman - drone-cli - 1.9.0-1: normalized package name match | Arch Linux sync databases: drone-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command line interface for Drone CI | https://docs.drone.io/cli
- Nix - drone: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/dr/drone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - drone - 2.25.0-r16: installed executable or alias match | Alpine Linux edge package indexes: drone from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Container-Native, Continuous Delivery Platform | https://drone.io/
- apk - drone-doc - 2.25.0-r16: installed executable or alias match | Alpine Linux edge package indexes: drone-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Container-Native, Continuous Delivery Platform (documentation) | https://drone.io/
- apk - drone-openrc - 2.25.0-r16: installed executable or alias match | Alpine Linux edge package indexes: drone-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Container-Native, Continuous Delivery Platform (OpenRC init scripts) | https://drone.io/
- pacman - drone - 2.28.2-1: installed executable or alias match | Arch Linux sync databases: drone from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Continuous Delivery platform built on container technology (Enterprise Edition) | https://drone.io
- Scoop - main/drone: installed executable or alias match | Scoop official bucket manifest trees: bucket/drone.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [act](https://www.automicvault.com/zh-hans/pkg/brew/act/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [bitrise](https://www.automicvault.com/zh-hans/pkg/brew/bitrise/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools.
- [brigade-cli](https://www.automicvault.com/zh-hans/pkg/brew/brigade-cli/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools.
- [circleci](https://www.automicvault.com/zh-hans/pkg/brew/circleci/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools.
- [dagger](https://www.automicvault.com/zh-hans/pkg/brew/dagger/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools.
- [pipelight](https://www.automicvault.com/zh-hans/pkg/brew/pipelight/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools.
- [codecov-cli](https://www.automicvault.com/zh-hans/pkg/brew/codecov-cli/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools.
- [flyway](https://www.automicvault.com/zh-hans/pkg/brew/flyway/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [travis](https://www.automicvault.com/zh-hans/pkg/brew/travis/) - Local metadata places this package in an adjacent workflow. Shared terms: ci-cd, cli, client, command-line, continuous.
- [woodpecker-cli](https://www.automicvault.com/zh-hans/pkg/brew/woodpecker-cli/) - Local metadata places this package in an adjacent workflow. Shared terms: ci-cd, cli, client, continuous, developer.

## Combined YAML source

View the package source record on GitHub. [combined/drone-cli.yml](https://github.com/automic-vault/db/blob/main/combined/drone-cli.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
