Atlassian CLI includes a shell completion feature that allows you to use the Tab
key to finish typing a command. When you start typing a command and press the Tab
key, it suggests a list of possible commands to complete what you've started.
Shell completion is supported in the following shells:
1 2echo "autoload -U compinit; compinit" >> ~/.zshrc
1 2source <(acli completion zsh)
To enable autocomplete in your new session, execute the following commands in your terminal:
1 2acli completion zsh > "${fpath[1]}/_acli"
1 2acli completion zsh > $(brew --prefix)/share/zsh/site-functions/_acli
Ensure you have the bash-completion
package installed on your system.
On most Linux distributions, you can install bash-completion through the package manager. Execute the following command in your terminal
Ubuntu:
1 2sudo apt update sudo apt install bash-completion
On macOS, you can install bash-completion
using Homebrew:
bash-completion@2
:1 2brew install bash-completion@2
bash-completion
and add the following line to your ~/.bash_profile
or ~/.bashrc
to load bash-completion
:1 2if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi
1 2source ~/.bash_profile # or source ~/.bashrc
1 2source <(acli completion bash)
1 2acli completion bash > /etc/bash_completion.d/acli
1 2acli completion bash > $(brew --prefix)/etc/bash_completion.d/acli
1 2acli completion fish | source
1 2acli completion fish > ~/.config/fish/completions/acli.fish
1 2acli completion powershell | Out-String | Invoke-Expression
Check and Create the profile file:
1 2Test-Path $PROFILE
False
), you can create it with the following command:1 2New-Item -Path $PROFILE -ItemType File -Force
Edit the profile:
1 2notepad $PROFILE
1 2acli completion powershell | Out-String | Invoke-Expression
Check and Create the profile file:
1 2pwsh -c 'Test-Path $PROFILE'
False
), create it with the following command:1 2pwsh -c 'New-Item -Path $PROFILE -ItemType File -Force'
Edit the profile:
nano
1 2nano $PROFILE
1 2code $PROFILE
Add the Autocomplete command and the following line to the profile file:
1 2acli completion powershell | Out-String | Invoke-Expression
Rate this page: