Skip to main content
⏳ Estimated read time: 1 min read

fish

The stackgen completion fish command generates an autocompletion script for Fish shell. This allows you to use the TAB key to complete StackGen commands, flags, and arguments in Fish.

Usage

stackgen completion fish [flags]

Flags

FlagDescription
-h, --helpHelp for fish
--no-descriptionsDisable completion descriptions

Examples

Generate the autocompletion script

stackgen completion fish > ~/.config/fish/completions/stackgen.fish

This command will:

  • Generate the Fish completion script
  • Save it to the Fish completions directory
  • Fish automatically loads completions from this directory

Verify the completion is working

stackgen [TAB]

Press TAB after typing "stackgen " to see the available subcommands.

note
  • Fish automatically loads completion scripts from the ~/.config/fish/completions directory
  • No additional steps are needed after placing the file in the correct location
  • If you update the StackGen CLI, you may need to regenerate the completion script