Page cover

fish

The cldkctl completion fish command generates an autocomplete script for the Fish shell. This script enables command-line autocompletion for cldkctl, allowing you to quickly complete commands and flags by pressing the Tab key. The setup can be loaded temporarily for the current session or permanently for all new shell sessions.

Usage

cldkctl completion fish [flags]

Steps

Follow the steps below to run and view the result of this command:

  1. To enable autocompletion temporarily for your current shell session, run the following command:

cldkctl completion fish | source

This command will activate the autocompletion immediately but only until the current terminal session ends.

  1. To enable autocompletion permanently for every new session, execute the command below once:

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

This will create a completion file in your Fish configuration directory so that autocompletion is automatically available in all future sessions.

  1. After setting up the file, restart your terminal or open a new shell session for the changes to take effect.

  2. Once configured, you can type any cldkctl command and press Tab to auto-complete available commands, subcommands, or flags.

Flags

This command supports global flags. Refer to the Global Flags section for details.

Flag
Description

-h, --help

Help for the fish subcommand.

--help

Disable completion descriptions.

Last updated