Skip to content

Suggested searches

    Search all documentation ↑↓ to navigate Enter to open Esc to close

    CLI autocomplete

    Generate and install prb shell completion scripts for Bash, Zsh, Fish, or PowerShell, then verify that command and flag completion works.

    Markdown

    The prb completion command generates an autocomplete script for your shell. It completes commands, subcommands, flags, and supported values.

    Choose your shell below to enable autocomplete for the current session or every new session.

    For the current session:

    Terminal window
    source <(prb completion bash)

    To enable autocomplete for every session on Linux:

    Terminal window
    prb completion bash | sudo tee /etc/bash_completion.d/prb >/dev/null

    On macOS with Homebrew:

    Terminal window
    brew install bash-completion@2
    prb completion bash > "$(brew --prefix)/etc/bash_completion.d/prb"

    Start a new shell after installing the script. Bash must load bash-completion for the generated script to take effect.

    Type a partial command and press Tab. For example:

    Terminal window
    prb fram<Tab>

    Your shell should complete it to prb framework. You can also test subcommands and flags:

    Terminal window
    prb framework l<Tab>
    prb framework list --o<Tab>

    If completion does not work, confirm that prb is available in the new shell and regenerate the script after upgrading the CLI so it includes the latest commands and flags.