Skip to main content
版本: 0.8

概览

KCL 工具链是 KCL 语言的工具集合,旨在提升 KCL 的批量迁移、编写、编译和测试的效率。

类别工具名称说明
主工具集kcl (kcl run 的别称)kcl 命令行工具提供对基于 KCL 语言的配置编写、编译和运行
kcl runkcl 命令行工具提供对基于 KCL 语言的配置编写、编译和运行
kcl doc解析KCL代码并生成文档
kcl fmt格式化KCL代码
kcl import导入其他数据和模式到KCL
kcl lint检查KCL的代码风格
kcl modKCL模块相关功能和包管理
kcl play在本地运行KCL playground
kcl registryKCL注册表相关功能
kcl server在本地运行KCL REST服务器
kcl test运行KCL中的单元测试
kcl vet使用KCL验证JSON和YAML等数据文件
ide 插件集IntelliJ IDEA KCL 插件提供 IntelliJ IDEA 平台的 KCL 编写、编译辅助
NeoVim KCL 插件提供 NeoVim 平台的 KCL 编写、编译辅助
VS Code KCL 插件提供 VS Code 平台的 KCL 编写、编译辅助

参数说明

The KCL Command Line Interface (CLI).

KCL is an open-source, constraint-based record and functional language that
enhances the writing of complex configurations, including those for cloud-native
scenarios. The KCL website: https://kcl-lang.io

Usage:
kcl [command]

Available Commands:
clean KCL clean tool
completion Generate the autocompletion script for the specified shell
doc KCL document tool
fmt KCL format tool
help Help about any command
import KCL import tool
lint Lint KCL codes.
mod KCL module management
play Open the kcl playground in the browser.
registry KCL registry management
run Run KCL codes.
server Run a KCL server
test KCL test tool
version Show version of the KCL CLI
vet KCL validation tool

Flags:
-h, --help help for kcl
-v, --version version for kcl

Use "kcl [command] --help" for more information about a command.