Skip to main content
Version: 0.10

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>

Reference

This command pushes kcl modules to the registry.

Usage:
kcl mod push [flags]

Examples:
# Push the current module to the registry
kcl mod push

# Push the current module to the registry in the vendor mode
kcl mod push --vendor

Flags:
-h, --help help for push
--tar_path string packaged target path that will be pushed
--vendor run in vendor mode (default: false)

Global Flags:
-q, --quiet Set the quiet mode (no output)