一覧へ戻る
kcl-lang/cli(新しいタブで開きます)
主要言語: Go
KCL Command Line Interface (CLI).
- star 数
- 39
- watcher 数
- 2
- fork 数
- 28
- issue 数
- 3
- 最終更新
- 2026/10/28
主要言語: Go
KCL Command Line Interface (CLI).
Introduction | Installation | Quick start
KCL cli is a command-line interface that includes KCL language core features, IDE features, package management tools, plugins, community integration, and other tools. It now integrates the following tools:
curl -fsSL https://kcl-lang.io/script/install-cli.sh | /bin/bashwget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bashpowershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex"brew install kcl-lang/tap/kcl
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git scoop install kcl-lang/kcl
You can download kcl via go install.
go install kcl-lang.io/cli/cmd/kcl@latest
You can also get kcl from the github release and set the binary path to the environment variable PATH.
# KCL_CLI_INSTALLATION_PATH is the path of the `KCL CLI` binary. export PATH=$KCL_CLI_INSTALLATION_PATH:$PATH
docker run -it kcllang/kcl
docker run -it kcllang/kcl-arm64
git clone https://github.com/kcl-lang/cli && cd cli # On Windows, MacOS and Linux go build ./cmd/kcl/ # Build on Linux Musl CGO_ENABLED=1 go build -tags="musl netgo static osusergo" -ldflags="-linkmode external -extldflags '-static'" ./cmd/kcl
Use the following command to ensure that you install kcl successfully.
kcl --help
kcl run ./examples/kubernetes.k