completion
Generate shell completion information for 1Password CLI.
If you use Bash, Zsh, fish, or PowerShell, you can add shell completion for 1Password CLI. With completions loaded, after you start typing a command, press Tab to see available commands and options.
Load shell completion information for Bash
To always load the completion information for Bash, add this to your
.bashrc
file:
To use shell completion in Bash, you’ll need the bash-completion
package.
Load shell completion information for Zsh
To always load the completion information for Zsh, add this to your
.zshrc
file:
Load shell completion information for fish
To always load the completion information for fish, add this to your
.fish
file:
Load shell completion information for PowerShell
To always load the completion information for PowerShell, add this
to your .ps1
file:
To use shell completion in PowerShell, you need to enable execution of scripts. To do that, start a PowerShell window as administrator and run the following command: