Skip to main content
Version: 0.5.5

Quick Start

1. Install KCLOpenAPI Tool

The kcl-openapi tool can be installed in following ways:

1.1 go install

go install kcl-lang.io/kcl-openapi@latest

1.2 Curl|sh install (MacOS & Linux)

If you don't have go, you can install the CLI with this one-liner:

curl -fsSL https://kcl-lang.io/script/install-kcl-openapi.sh | /bin/bash

1.3 Download from release

# 1. download the released binary from:
# https://github.com/kcl-lang/kcl-openapi/releases

# 2. Unzip the package and add the binary location to PATH
export PATH="<Your directory to store KCLOpenapi binary>:$PATH"

1.4 Verify your installation

➜  kcl-openapi -v
kcl-openapi 0.5.0

2. Generate KCL Files