Skip to main content
Version: 0.5

kpm push

Push a package to the kpm registry.

Usage

kpm push [options][kpm_registry]

Description

kpm push will push a package to the kpm registry.

options

--tar_path

The path to the tar file to push.

--help, -h

Show help for kpm push command.

Examples

push the current package

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

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

push a tar to the registry

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

kpm push --tar_path <tar_path> <oci_url>