Skip to main content
2 min read

Shell Autocompletion

Shell Autocompletion

The stackgen completion command generates autocompletion scripts for various shells to enhance your command-line experience with the StackGen CLI. This makes it easier to use StackGen commands by providing tab completion for commands, flags, and arguments.

Usage​

stackgen completion [command]

Flags​

FlagDescription
-h, --helpHelp for completion.

Shell subcommands (bash, fish, powershell, zsh) add their own flags (for example --no-descriptions on bash). See the per-shell pages below and Global flags.

Subcommands​

Here's an overview of the available subcommands:

bash​

Generate the autocompletion script for Bash shell. This subcommand creates a script that provides tab completion for StackGen commands, significantly improving your productivity when working with the CLI in Bash environments, which are common in Linux distributions and macOS.

fish​

Generate the autocompletion script for Fish shell. This subcommand helps users of the Fish shell get intelligent tab completion for StackGen commands. Fish is a smart and user-friendly shell that is becoming increasingly popular among developers.

powershell​

Generate the autocompletion script for PowerShell. This subcommand creates completion scripts for Microsoft PowerShell, making it easier to work with StackGen CLI on Windows systems or for users who prefer PowerShell on other platforms.

zsh​

Generate the autocompletion script for Zsh shell. This subcommand provides tab completion support for the Z shell (Zsh), which is the default shell in macOS and a popular alternative to Bash on many Linux distributions.