Autocomplete

Open in

Use the ably autocomplete command to display installation instructions for shell autocompletion. Once configured, autocomplete enables tab completion for commands and options in your terminal.

Synopsis

ably autocomplete [shell]

Arguments

shell

The shell type to set up autocomplete for. Supported values: zsh, bash, powershell.

If no shell is specified, the default shell is used.

Options

--refresh-cache | -r

Refresh the autocomplete cache instead of displaying instructions.

Examples

Display autocomplete setup instructions for the default shell:

ably autocomplete

Set up autocomplete for bash:

ably autocomplete bash

Set up autocomplete for zsh:

ably autocomplete zsh

Set up autocomplete for powershell:

ably autocomplete powershell

Refresh the autocomplete cache:

ably autocomplete --refresh-cache

See also