openshift-completion man page

openshift completion — Output shell completion code for the given shell (bash or zsh)

Synopsis

openshift completion [OPTIONS]

Description

This command prints shell code which must be evaluated to provide interactive completion of openshift commands.

Options Inherited from Parent Commands

--google-json-key=""
The Google Cloud Platform Service Account JSON Key to use for authentication.

--log-flush-frequency=0
Maximum number of seconds between log flushes

Example

# Generate the openshift completion code for bash
openshift completion bash > bash_completion.sh
source bash_completion.sh

# The above example depends on the bash-completion framework.
It must be sourced before sourcing the openshift cli completion, i.e. on the Mac:

brew install bash-completion
source $(brew --prefix)/etc/bash_completion
openshift completion bash > bash_completion.sh
source bash_completion.sh

# In zsh*, the following will load openshift cli zsh completion:
source <(openshift completion zsh)

* zsh completions are only supported in versions of zsh >= 5.2

See Also

openshift(1),

History

June 2016, Ported from the Kubernetes man-doc generator

Referenced By

openshift(1).

Openshift CLI User Manuals Openshift June 2016