---
name: cli-enable_cli_autocompletion
title: Enabling shell autocompletion for IBM Cloud CLI (Linux and macOS only)
description: 'Starting from version `0.7.0`, the IBM Cloud&reg; Command Line Interface installers don''t enable shell autocompletion automatically. To have the autocompletion support, you need to manually enable it. The autocompletion scripts are installed in the following locations:'
last-updated: 2026-05-01
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/cli?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Enabling shell autocompletion for IBM Cloud CLI (Linux and macOS only)
{: #shell-autocomplete}

Starting from version `0.7.0`, the IBM Cloud&reg; Command Line Interface installers don't enable shell autocompletion automatically. To have the autocompletion support, you need to manually enable it. The autocompletion scripts are installed in the following locations:

* `Bash` autocompletion: `/usr/local/ibmcloud/autocomplete/bash_autocomplete`
* `Zsh` autocompletion: `/usr/local/ibmcloud/autocomplete/zsh_autocomplete`

## Enabling autocompletion for Linux
{: #shell-autocomplete-linux}

* If you're using `Bash`, add:

   `[[ -f /usr/local/ibmcloud/autocomplete/bash_autocomplete ]] && source /usr/local/ibmcloud/autocomplete/bash_autocomplete` into one of the following files:

* For Login shell: `~/.bash_profile`
* For Nonlogin shell: `~/.bashrc`

* If you're using `Zsh`: add:

   `source /usr/local/ibmcloud/autocomplete/zsh_autocomplete` into `~/.zshrc`.

## Enabling autocompletion support for macOS
{: #shell-autocomplete-macos}

* If you're using `Bash`, add:

   `source /usr/local/ibmcloud/autocomplete/bash_autocomplete` into `~/.bash_profile`.

* If you're using `Zsh`, add:

   `source /usr/local/ibmcloud/autocomplete/zsh_autocomplete` into `~/.zshrc`.