# 使用 Homebrew, apk, apt, Nix 安装 click

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

## 安装

```sh
sudo av install brew:click
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install click
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add click
```

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

- Debian apt (92%):

```sh
sudo apt install click
```

  证据: Debian stable package indexes: click from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#click
```

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

## 软件包事实

- **软件包键:** brew:click
- **软件包管理器:** Homebrew
- **版本:** 0.6.3
- **来源摘要:** Command-line interactive controller for Kubernetes
- **主页:** <https://github.com/databricks/click>
- **仓库:** <https://github.com/databricks/click>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- click (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Click is Databricks' Command Line Interactive Controller for Kubernetes, a Rust REPL for quickly managing Kubernetes clusters and objects.

### 项目历史

The GitHub repository was created in July 2017. The README describes Click as a REPL whose active configuration tracks the current Kubernetes context, namespace, and object so commands can be applied without repeatedly specifying targets.

The official changelog labels version 0.3.0 as the first public release. Later releases added richer Kubernetes object support, completion, aliases, ranges, one-off execution, exec-provider authentication, Rust 2021, k8s-openapi, and newer table/rendering dependencies.

### 采用历史

Click's official install paths include Cargo and source builds, with an AUR package documented by the README. Input package metadata also lists Homebrew, Debian, Ubuntu, Alpine, and Nix, showing that package-manager distribution expanded beyond the upstream Rust install path.

The GitHub repository metadata showed more than one thousand stars at research time, indicating a visible but specialized Kubernetes operator audience.

### 使用方式

Click reads Kubernetes configuration from `~/.kube/config` by default and honors `KUBECONFIG` when set. It also stores its own configuration in the `.kube` directory, and its prompt tracks context, namespace, and object.

The README documents authentication through tokens, username/password, private key and certificate, and GKE-style auth providers. The changelog shows later support for Azure and OIDC auth providers, CRDs, file copy, cronjobs, daemonsets, persistent volumes, and other operational commands.

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

Click is package-nerd interesting as a Kubernetes-era REPL distributed through Rust's Cargo ecosystem and system package managers. It overlaps with `kubectl`, but optimizes for repeated interactive work across many Kubernetes objects and contexts.

Its packaging story also reflects a familiar CLI arc: first installable from a language package manager, then picked up by OS package managers as Kubernetes operators wanted a normal binary on their PATH.

### 时间线

- 2017: The GitHub repository is created.
- 2022: GitHub release metadata records v0.6.0; the changelog notes migration to k8s-openapi and Rust 2021.
- 2022: v0.6.2 adds configurable kubectl binary support.
- 2023: v0.6.3 adds experimental Teleport support, cronjob interaction, and a `last` command.

### Related projects

- Kubernetes and kubectl are the core related tools because Click reads kubeconfig files and wraps Kubernetes object workflows.
- Cargo and crates.io are related distribution mechanisms because the README documents `cargo install click`.
- The Arch AUR is a related package channel documented by the README.

### 来源

- <https://github.com/databricks/click#readme>
- <https://github.com/databricks/click/blob/master/CHANGELOG.md>
- <https://api.github.com/repos/databricks/click>
- <https://api.github.com/repos/databricks/click/releases>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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, $KUBECONFIG

## Credential files

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

- Debian apt - click - 0.5.2-8: normalized package name match | Debian stable package indexes: click from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for handling (and building) Click packages | https://gitlab.com/ubports/development/core/click/
- Debian apt - click-dev - 0.5.2-8: normalized package name match | Debian stable package indexes: click-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | build Click packages | https://gitlab.com/ubports/development/core/click/
- Debian apt - click-doc - 0.5.2-8: normalized package name match | Debian stable package indexes: click-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Click packages (documentation) | https://gitlab.com/ubports/development/core/click/
- Debian apt - click-service - 0.5.2-8: normalized package name match | Debian stable package indexes: click-service from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Click packages (privileged service) | https://gitlab.com/ubports/development/core/click/
- Debian apt - gir1.2-click-0.4 - 0.5.2-8: normalized package name match | Debian stable package indexes: gir1.2-click-0.4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GIR bindings for Click package management library | https://gitlab.com/ubports/development/core/click/
- Debian apt - libclick-0.4-0 - 0.5.2-8: normalized package name match | Debian stable package indexes: libclick-0.4-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | run-time Click package management library | https://gitlab.com/ubports/development/core/click/
- Debian apt - libclick-dev - 0.5.2-8: normalized package name match | Debian stable package indexes: libclick-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for Click package management library | https://gitlab.com/ubports/development/core/click/
- Debian apt - python3-click-package - 0.5.2-8: normalized package name match | Debian stable package indexes: python3-click-package from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Click packages (Python 3 interface) | https://gitlab.com/ubports/development/core/click/
- Nix - click: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/click/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - click - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: click from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for handling (and building) Click packages | https://gitlab.com/ubports/development/core/click/
- Ubuntu apt - click-dev - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: click-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | build Click packages | https://gitlab.com/ubports/development/core/click/
- Ubuntu apt - click-doc - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: click-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Click packages (documentation) | https://gitlab.com/ubports/development/core/click/
- Ubuntu apt - click-service - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: click-service from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Click packages (privileged service) | https://gitlab.com/ubports/development/core/click/
- Ubuntu apt - gir1.2-click-0.4 - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-click-0.4 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GIR bindings for Click package management library | https://gitlab.com/ubports/development/core/click/
- Ubuntu apt - libclick-0.4-0 - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libclick-0.4-0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | run-time Click package management library | https://gitlab.com/ubports/development/core/click/
- Ubuntu apt - libclick-dev - 0.5.2-2ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: libclick-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files for Click package management library | https://gitlab.com/ubports/development/core/click/


## Combined YAML source

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