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 autocompleteSet up autocomplete for bash:
ably autocomplete bashSet up autocomplete for zsh:
ably autocomplete zshSet up autocomplete for powershell:
ably autocomplete powershellRefresh the autocomplete cache:
ably autocomplete --refresh-cacheSee also
- CLI reference — Full list of available commands.