Tab
key.
With completion, this automatically enters the complete command or you get a list of suggestions.
Homebrew
Homebrew
If you installed the Algolia CLI with Homebrew, and you’ve set up shell completion,
command completion for the Algolia CLI should already work.
Bash
Bash
Command completion depends on the To enable command completion for every new session, run:Start a new Bash session to explore the completions.
bash-completion
package.
If it isn’t installed already, you can install it with your favorite package manager.
For example, with Homebrew, run:
brew install bash-completion@2
.To enable completion in the current session, run:Zsh
Zsh
If you didn’t set up shell completion in Zsh already,
add the following to your To enable completion in the current session, run:To enable command completion for every new session, run:Start a new Zsh session to explore the completions.
.zshrc
file,
or run the commands in the current session:You might want to put the completion script into a directory in your profile,
for example
~/.local/share/zsh/site-functions
.
Then, add fpath=(~/.local/share/zsh/site-functions $fpath)
to your .zshrc
file.Fish
Fish
To enable command completion in the current session, run:To enable command completion for every new session:Start a new Fish session to explore the completions.
PowerShell
PowerShell
To enable command completion in the current session, run:To enable command completion for PowerShell for every new session,
add the output of the previous command to your PowerShell profile.