# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, zypper 安装 tektoncd-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tektoncd-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tektoncd-cli
```

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

### Linux

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install tekton-cli
```

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

### Windows

- Chocolatey (92%):

```sh
choco install tektoncd-cli
```

  证据: Chocolatey community package catalog: tektoncd-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.4028','coreinfo'

- Scoop (92%):

```sh
scoop install main/tektoncd-cli
```

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

## 软件包事实

- **软件包键:** brew:tektoncd-cli
- **软件包管理器:** Homebrew
- **版本:** 0.45.1
- **来源摘要:** CLI for interacting with TektonCD
- **主页:** <https://github.com/tektoncd/cli>
- **仓库:** <https://github.com/tektoncd/cli>
- **最后更新:** 2026-07-27T11:08:53Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tkn (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Tekton CLI, installed as `tkn`, is the command-line interface for Tekton, a Kubernetes-native CI/CD framework. It gives users high-level commands for Tekton resources without requiring every interaction to go through raw `kubectl` custom-resource operations.

### 项目历史

Tekton itself is described by the official site as a cloud-native open source framework for creating CI/CD systems that run across cloud providers and on-premise systems. The docs explain that Tekton installs as an extension on Kubernetes and provides custom resources for tasks, pipelines, triggers, catalogs, chains, and related components.

The CLI developed as a supporting component for this ecosystem. Its README says the Tekton Pipelines CLI provides a command-line interface for interacting with Tekton, while the overview docs identify `tkn` as the preferred command-line method because it gives a quicker, streamlined experience compared with lower-level `kubectl` usage.

### 采用历史

By the v0.5.0 release in November 2019, the CLI was already being aligned with Tekton Pipelines releases and adding workflow features such as interactive resource creation, starting pipelines with resources, task descriptions, and starting TaskRuns. That release note also records Homebrew-core availability, a useful marker of package-manager adoption.

The current README shows broad packaging and distribution: Homebrew, Chocolatey, Scoop, Linux tarballs, RPMs, DEBs, Ubuntu PPA, Nix, Arch/Manjaro, Homebrew on Linux, and source builds. It also documents using `tkn` as a `kubectl` plugin by symlinking it as `kubectl-tkn`, which makes it fit naturally into Kubernetes operator workflows.

### 使用方式

Typical use is managing Tekton tasks, pipelines, PipelineRuns, TaskRuns, triggers, bundles, Hub resources, completions, and versions from a terminal. Users run `tkn` against the Kubernetes context in their kubeconfig, while `kubectl` remains available for lower-level debugging.

Package users care because `tkn` is the ergonomic front end to a Kubernetes CRD-heavy CI/CD system. Installing the CLI from a package manager gives a stable user-facing command while clusters run independently managed Tekton controllers.

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

Tekton CLI is significant because it packages the human interface to cloud-native CI/CD. In the package-nerd niche, it is the kind of tool that makes Kubernetes custom resources livable: a small binary, shell completions, package-manager distribution, and commands that map CI/CD concepts to terminal workflows.

### 时间线

- 2019: v0.5.0 release aligned the CLI with Tekton Pipelines v0.8.0 and noted Homebrew-core availability.
- 2026: v0.45.0 added customrun describe support, OpenTelemetry migration, Pipelines v1.12.0 support, and dependency security updates.
- 2026: Official docs identify Tekton as a CNCF incubating project and `tkn` as the preferred command-line method.

### Related projects

- Related projects include Tekton Pipelines, Tekton Triggers, Tekton Catalog, Tekton Hub, Tekton Chains, Tekton Operator, Pipelines-as-Code, Kubernetes, and kubectl.

### 来源

- <https://github.com/tektoncd/cli/blob/main/README.md>
- <https://github.com/tektoncd/cli/releases/tag/v0.45.0>
- <https://github.com/tektoncd/cli/releases/tag/v0.5.0>
- <https://tekton.dev/>
- <https://tekton.dev/docs/cli/>
- <https://tekton.dev/docs/concepts/overview/>
- source_facts.description


## 安全说明

没有找到 tektoncd-cli 的匹配本地密钥处理 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: ~/.kube/config

## Credential files

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

- Nix - tektoncd-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/tektoncd-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - tektoncd-cli: normalized package name match | MacPorts ports tree: devel/tektoncd-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - tektoncd-cli: normalized package name match | Chocolatey community package catalog: tektoncd-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.4028','coreinfo'
- Scoop - main/tektoncd-cli: normalized package name match | Scoop official bucket manifest trees: bucket/tektoncd-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- zypper - tekton-cli - 0.45.1-1.1: installed executable or alias match | openSUSE Tumbleweed package metadata: tekton-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI for interacting with the Tekton CD system | https://github.com/tektoncd/cli


## Combined YAML source

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