Skip to main content
Version: 0.5.1

kpm run

Compile a kcl package.

Usage

kpm run [options][package_source]

Description

kpm run will compile a kcl package.

options

--input

Specify the entry file path of the package.

--tag

Specify the tag of the package specified by oci url package_source.

--vendor

--vendor will move the dependency packages into the current packages and automatically download the missing dependency packages.

--kcl_args

--kcl_args specifies the arguments passed to the kcl compiler.

--help, -h

Show help for kpm run command.

Examples

compile the current kcl package

Under the kcl package directory, kpm run can be used to compile the current kcl package.

kpm run

compile a kcl package tar file

kpm run can be used to compile a kcl package tar file.

kpm run /Users/demo/my_package.tar

compile a kcl package from oci url

kpm run can be used to compile a kcl package from oci url.

kpm run --tag 0.0.1 oci://localhost:5001/test/my_package

compile a kcl package from oci ref

kpm run can be used to compile a kcl package from oci ref.

kpm run test/my_package:0.0.1