Skip to Content
New to Genbox? Check out our Getting Started guide
Commandscompletion

gb completion

Generate shell completions for the CLI.

Synopsis

gb completion <shell> [options]

Description

Generates shell completion scripts for tab completion of Genbox commands, options, and arguments.

Arguments

ArgumentDescription
shellShell type: bash, zsh, or fish

Options

OptionDescription
--installAutomatically install completions

Examples

Install Completions

# Bash gb completion bash --install # Zsh gb completion zsh --install # Fish gb completion fish --install

Manual Installation

# Generate and save gb completion bash > ~/.genbox-completion.bash echo 'source ~/.genbox-completion.bash' >> ~/.bashrc

Shell-Specific Instructions

Bash

# One-time install gb completion bash --install # Manual gb completion bash >> ~/.bashrc source ~/.bashrc

Zsh

# One-time install gb completion zsh --install # Manual gb completion zsh > ~/.zsh/completion/_genbox echo 'fpath=(~/.zsh/completion $fpath)' >> ~/.zshrc echo 'autoload -Uz compinit && compinit' >> ~/.zshrc source ~/.zshrc

Fish

# One-time install gb completion fish --install # Manual gb completion fish > ~/.config/fish/completions/genbox.fish

What Gets Completed

  • Command names (gb cre<tab> → gb create)
  • Subcommands (gb db <tab> → sync, restore)
  • Options (gb create --<tab> → --profile, --size, etc.)
  • Environment names (gb connect <tab> → lists your environments)
  • Profile names (gb create --profile <tab> → lists profiles)
  • App names (gb push --app <tab> → lists apps)

Example Usage

$ gb cre<TAB> $ gb create $ gb create --pro<TAB> $ gb create --profile $ gb create --profile <TAB> admin-quick api-only full-stack $ gb connect <TAB> feature-auth bugfix-login experiment $ gb destroy feature<TAB> $ gb destroy feature-auth

Notes

  • Restart shell or source config after install
  • Dynamic completions require API access
  • Completions update with CLI updates
  • --install modifies shell config files

See Also

Last updated on