← 返回命令列表

Linux command

kubectl-plugin 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all available plugins with full paths

kubectl plugin list

List only plugin binary names without paths

kubectl plugin list --name-only

说明

kubectl plugin provides utilities for interacting with plugins. It discovers plugin executables in PATH that begin with the kubectl- prefix. For example, a binary named kubectl-foo becomes available as kubectl foo. Running kubectl plugin list traverses all directories in PATH and displays matching executables in the order they appear. A warning is shown for any files beginning with kubectl- that are not executable, and for valid plugin files that shadow each other (duplicate names in different PATH directories). Plugins can be installed manually by placing executables in PATH, or managed through krew, the kubectl plugin manager. Krew provides a curated index of community plugins and handles installation, upgrades, and removal.

参数

list
List all available plugin executables on the user's PATH.
--name-only
Show only the binary name of each plugin, rather than its full path.
-h, --help
Display help information.

FAQ

What is the kubectl-plugin command used for?

kubectl plugin provides utilities for interacting with plugins. It discovers plugin executables in PATH that begin with the kubectl- prefix. For example, a binary named kubectl-foo becomes available as kubectl foo. Running kubectl plugin list traverses all directories in PATH and displays matching executables in the order they appear. A warning is shown for any files beginning with kubectl- that are not executable, and for valid plugin files that shadow each other (duplicate names in different PATH directories). Plugins can be installed manually by placing executables in PATH, or managed through krew, the kubectl plugin manager. Krew provides a curated index of community plugins and handles installation, upgrades, and removal.

How do I run a basic kubectl-plugin example?

Run `kubectl plugin list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in kubectl-plugin?

List all available plugin executables on the user's PATH.