For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationCommand referenceRelease notes
DocumentationCommand referenceRelease notes
  • Command reference
    • iagctl cert-gen
    • iagctl completion
    • iagctl login
    • iagctl runner
    • iagctl server
    • iagctl version
LogoLogo
Open sourceSupportFAQsDocs Home
On this page
  • Syntax
  • Set up completion on macOS
  • Set up completion on Linux
  • Set up completion for Zsh
  • Set up completion for Fish
  • Options
  • Options inherited from parent commands
Command reference

iagctl completion

Was this page helpful?
Previous

iagctl create decorator

Next
Built with

Generate shell completion scripts.

The iagctl completion command outputs completion code for bash, zsh, or fish to enable interactive command completion in your shell.

Syntax

$iagctl completion [bash|zsh|fish]

Set up completion on macOS

If you’re using Bash on macOS, you first need to install bash-completion using Homebrew. Run bash --version to check your version, then follow the steps for your version below.

Bash 3.2
Bash 4.1+
  1. Install bash-completion v1.x:
$ brew install bash-completion
  1. Enable bash-completion:
$ echo 'source $(brew --prefix)/etc/bash_completion' >> ~/.bash_profile
  1. Install the gateway completion script:
$ iagctl completion bash > $(brew --prefix)/etc/bash_completion.d/iagctl
With Bash 3.2, you need to run this command every time you update the gateway or switch your application mode to ensure you have the latest completion available.
  1. Reload your shell.

Set up completion on Linux

  1. Install bash-completion using your package manager:
$ # RHEL/CentOS
$ yum install bash-completion
$
$ # Debian/Ubuntu
$ apt-get install bash-completion
  1. Reload your shell and verify the installation:
$ type _init_completion

If this command fails, run:

$ echo 'source /usr/share/bash-completion/bash_completion' >> ~/.bashrc
  1. Install the gateway completion script:
$ echo 'source <(iagctl completion bash)' >> ~/.bashrc
  1. Reload your shell.

Set up completion for Zsh

  1. Install the gateway completion script:
$ echo 'source <(iagctl completion zsh)' >> ~/.zshrc
  1. Reload your shell.

Set up completion for Fish

  1. Install the gateway completion script:
$ echo 'iagctl completion fish | source' >> ~/.config/fish/config.fish
  1. Reload your shell.

Options

$ -h, --help Help for completion

Options inherited from parent commands

$ --profile string Specify the client profile to use (case-insensitive, defaults to [client] section)
$ --config string Path to the configuration file
$ --raw Display the result of the command in raw format
$ --verbose Enable verbose output