Skip to content

kyma-project/cli

REUSE status

Kyma CLI

Warning

The Kyma CLI version v2, with all commands available within this version, is deprecated. We've started designing the v3 commands that will be first released within the alpha command group. Read more about the decision here.

Kyma CLI is a command line tool which supports Kyma users.

Install

For the installation instructions, see How to Install.

Usage

Inspect the new available alpha commands by calling the --help option:

kyma@v3 alpha --help

Import Image Into Kyma's Internal Docker Registry

Note

To use the following image-import command, you must install the Docker Registry module on your Kyma runtime

docker pull kennethreitz/httpbin

kyma@v3 alpha registry image-import kennethreitz/httpbin:latest

Run a Pod from a locally hosted image

kubectl run my-pod --image=localhost:32137/kennethreitz/httpbin:latest --overrides='{ "spec": { "imagePullSecrets": [ { "name": "dockerregistry-config" } ] } }'

Development

To build a Kyma CLI binary, run:

go build -o kyma@v3 main.go

You can run the command directly from the go code. For example:

go run main.go alpha module list

Contributing

See the Contributing Rules.

Code of Conduct

See the Code of Conduct document.

Licensing

See the license file.