Skip to content

CLI reference🔗︎

This document contains a reference of the Kubitect CLI tool. It documents each command along with its flags.

Tip

All available commands can be displayed by running kubitect --help or simply kubitect -h.

To see the help for a particular command, run kubitect command -h.

Kubitect commands🔗︎

kubitect apply🔗︎

Apply the cluster configuration.

Usage

kubitect apply [flags]

Flags

  • -a, --action <string>
      cluster action: create | scale | upgrade (default: create)
  • --auto-approve
      automatically approve any user permission requests
  • -c, --config <string>
      path to the cluster config file
  • -l, --local
      use a current directory as the cluster path

kubitect destroy🔗︎

Destroy the cluster with a given name. Executing the following command will permanently delete all resources associated with the cluster, including virtual machines and configuration files.

Important

Please be aware that this action is irreversible and any data stored within the cluster will be lost.

Usage

kubitect destroy [flags]

Flags

  • --auto-approve
      automatically approve any user permission requests
  • --cluster <string>
      name of the cluster to be used (default: default)

kubitect export config🔗︎

Print cluster's configuration file to the standard output.

Usage

kubitect export config [flags]

Flags

  • --cluster <string>
      name of the cluster to be used (default: default)

kubitect export kubeconfig🔗︎

Print cluster's kubeconfig to the standard output.

Usage

kubitect export kubeconfig [flags]

Flags

  • --cluster <string>
      name of the cluster to be used (default: default)

kubitect export preset🔗︎

Print cluster configuration preset to the standard output.

Usage

kubitect export preset [flags]

Flags

  • --name <string>
      preset name

kubitect list clusters🔗︎

List clusters.

Usage

kubitect list clusters

kubitect list presets🔗︎

List available cluster configuration presets.

Usage

kubitect list presets

Autogenerated commands🔗︎

kubitect completion🔗︎

Generate the autocompletion script for Kubitect for the specified shell.

Usage

kubitect completion [command]

Commands

  • bash
      Generate the autocompletion script for bash.
  • fish
      Generate the autocompletion script for fish.
  • zsh
      Generate the autocompletion script for zsh.

Tip

Run kubitect completion shell -h for instructions how to add autocompletion for a specific shell.


kubitect help🔗︎

Help provides help for any command in the application. Simply type kubitect help [path to command] for full details.

Usage

kubitect help [command]

or

kubitect [command] -h

Other🔗︎

Version flag🔗︎

Print Kubitect CLI tool version.

Usage

kubitect --version

or

kubitect -v

Debug flag🔗︎

Enable debug messages. This can be especially handy with the apply command.

Usage

kubitect [command] --debug