mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-09 22:47:27 +00:00
This commit adds support for auto completion for bash and zsh shells. A new root level command called "completion" has been introduced, and the user can get the auto completion code by running `ark completion bash/zsh`. For bash completion, the built-in GenBashCompletion() from cobra has been used, but for zsh, the built-in GenZshCompletion() is known to cause issues. The workaround has been copied from zsh completion code of kubectl. Signed-off-by: Shubham <shubham@linux.com>
Command line reference
The Ark client provides a CLI that allows you to initiate ad-hoc backups, scheduled backups, or restores.
The files in the CLI reference directory in the repository enumerate each of the possible ark commands and their flags.
This information is available in the CLI, using the --help flag.
Running the client
We recommend that you download a pre-built release, but you can also build and run the ark executable.
Kubernetes cluster credentials
In general, Ark will search for your cluster credentials in the following order:
--kubeconfigcommand line flag$KUBECONFIGenvironment variable- In-cluster credentials--this only works when you are running Ark in a pod