--- url: "https://asyncapi.com/docs/tools/cli/autocompleteEnabled" titulek: "Auto-complete setup | AsyncAPI Initiative for event-driven APIs" h1: "Auto-complete setup" popis: "AsyncAPI CLI Autocomplete Setup This guide provides steps to enable autocomplete for the AsyncAPI CLI. The setup supports zsh, bash, and PowerShell (manual setup only). Automatic Setup (Post-Install" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:46:25" znaku: 2752 slov: 356 kodovani: "utf-8" sha256: "6eee3d61c12593d6c5d4e5f6331710bd11ea30acd8d2315e871230b3295c7af0" --- ##### On this page AsyncAPI CLI Autocomplete Setup Automatic Setup (Post-Install Script) Steps: Manual Setup (For PowerShell and Troubleshooting) Steps: # Auto-complete setup Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/cli/tree/master/docs/autocompleteEnabled.md) # AsyncAPI CLI Autocomplete Setup This guide provides steps to enable autocomplete for the AsyncAPI CLI. The setup supports `zsh`, `bash`, and `PowerShell` (manual setup only). ## Automatic Setup (Post-Install Script) The AsyncAPI CLI includes a post-install script that automatically configures autocomplete for supported shells (`zsh` and `bash`). No additional steps are required. ### Steps: 1. Ensure that AsyncAPI CLI is installed. You can verify by running: `asyncapi --version` If the command fails, install it using: `npm install -g @asyncapi/cli` 2. Apply the changes by running: `source ~/.bashrc # For bash source ~/.zshrc # For zsh` 3. Verify autocomplete by typing: `asyncapi ` You should see command suggestions. ## Manual Setup (For PowerShell and Troubleshooting) If the automatic setup does not work or if you need to enable autocomplete manually (especially for PowerShell), follow these steps. ### Steps: 1. **Build the AsyncAPI CLI manually:** If you are working with the CLI project locally, you need to build it first: `npm install npm run build` 2. **Run the autocomplete command manually:** `./bin/run autocomplete # Run this from the project root folder` 3. **Locate the AsyncAPI CLI executable:** Run the following command to find the executable path: `which asyncapi # For bash/zsh Get-Command asyncapi | Select-Object -ExpandProperty Definition # For PowerShell` If the command does not return a path, ensure AsyncAPI CLI is installed. 4. **Generate and apply the autocomplete script:** Run the following command based on your shell: `printf "$(./bin/run autocomplete script bash)" >> ~/.bashrc; source ~/.bashrc # For bash printf "$(./bin/run autocomplete script zsh)" >> ~/.zshrc; source ~/.zshrc # For zsh printf "$(./bin/run autocomplete script powershell)" >> $PROFILE; . $PROFILE # For PowerShell` 5. **Test autocomplete:** `asyncapi ` If it works, autocomplete is successfully enabled! --- If you encounter any issues, ensure that your shell configuration file is correctly updated and sourced. Restart your terminal if necessary. [Go BackInstallation guide](/docs/tools/cli/installation) [Up NextCLI Architecture](/docs/tools/cli/architecture) Was this helpful? Help us improve the docs by sharing your feedback. [Submit Feedback](https://github.com/asyncapi/website/issues/new?template=docs-feedback.yml&title=Docs%20Feedback%3A%20%2Fdocs%2Ftools%2Fcli%2FautocompleteEnabled&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)