--- title: 安装 kubectl 插件 --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; 安装 vela kubectl 插件可以帮助你更简单的交付云原生应用! ## 安装 你可以通过以下方式安装 `kubectl vela`: 1. 安装并且设置 [krew](https://krew.sigs.k8s.io/docs/user-guide/setup/install/) 2. 更新 kubectl 插件列表: ```shell kubectl krew update ``` 3. 安装 kubectl vela: ```shell script kubectl krew install vela ``` **macOS/Linux** ```shell script curl -fsSl https://kubevela.io/script/install-kubectl-vela.sh | bash ``` 你也可以在 [release 页面(>= v1.0.3)](https://github.com/oam-dev/kubevela/releases)手动下载二进制可执行文件,Kubectl 会自动从你的系统路径中找到它。 ## 使用 ```shell $ kubectl vela -h A Highly Extensible Platform Engine based on Kubernetes and Open Application Model. Usage: kubectl vela [flags] kubectl vela [command] Available Commands: Flags: -h, --help help for vela dry-run Dry Run an application, and output the K8s resources as result to stdout, only CUE template supported for now live-diff Dry-run an application, and do diff on a specific app revison. The provided capability definitions will be used during Dry-run. If any capabilities used in the app are not found in the provided ones, it will try to find from cluster. show Show the reference doc for a workload type or trait version Prints out build version information Use "kubectl vela [command] --help" for more information about a command. ```