Skip to main content
Version: 0.8

kcl mod push

Push a package to the kcl mod registry.

Usage

kcl mod push [options][kpm_registry]

Description

kcl mod push will push a package to the kcl mod registry.

options

--tar_path

The path to the tar file to push.

--help, -h

Show help for kcl mod push command.

Examples

push the current package

You can use kcl mod push under the kcl package root directory to upload a kcl package to an OCI-based registry.

# create a new kcl package.
$ kcl mod init <package_name>
# enter the kcl package root directory
$ cd <package_name>
# push it to an oci registry
$ kcl mod push <oci_url>

push a tar to the registry

You can also use kcl mod push to upload a tar file to an OCI-based registry.

kcl mod push --tar_path <tar_path> <oci_url>