jx completion

jx completion

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


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

This command prints shell code which must be evaluation to provide interactive completion of jx commands.

$ source <(jx completion bash)

will load the jx completion code for bash. Note that this depends on the bash-completion framework. It must be sourced before sourcing the jx completion, e.g. on the Mac:

$ brew install bash-completion $ source $(brew –prefix)/etc/bash_completion $ source <(jx completion bash)

On a Mac it often works better to generate a file with the completion and source that:

$ jx completion bash > ~/.jx/bash $ source ~/.jx/bash

If you use zsh [1], the following will load jx zsh completion:

$ source <(jx completion zsh)

[1] zsh completions are only supported in versions of zsh >= 5.2

jx completion SHELL [flags]


  -h, --help   help for completion

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input (default true)
      --verbose      Enables verbose output


  • jx - jx is a command line tool for working with Jenkins X
Auto generated by spf13/cobra on 16-Oct-2019

Last modified October 17, 2019: release 0.0.1140 (49542bb)