Files
redocly-cli/docs/guides/autocomplete.md
2023-11-17 09:45:03 +00:00

18 lines
597 B
Markdown

## Set up tab completion for Redocly CLI
Give your `redocly` command superpowers by adding tab completion to your terminal. Run the command to generate the completions, then add the output to your `.bashrc` or equivalent file.
Generation the completion script:
```shell Command
redocly completion
```
The command output contains installation instructions. For example, to install the completion script in `bash`, use:
```shell Command
redocly completion >> ~/.bashrc
```
The approach is similar for other shells. After the installation, restart your terminal for the changes to take effect.