glab-duo-cli - Man Page

Run the GitLab Duo CLI.

Synopsis

glab duo cli [command] [flags]

Description

Run the GitLab Duo CLI (duo) through glab​.

The GitLab Duo CLI brings the GitLab Duo Agent Platform to your terminal. Ask GitLab Duo questions about your codebase and use it to autonomously perform actions on your behalf.

The GitLab Duo CLI runs in two modes:

When you use the GitLab Duo CLI through glab, glab handles authentication for you. You authenticate only once.

Prerequisites:

Note: If you are on GitLab 18.11 to 19.1, you can use the GitLab Duo CLI by turning on beta and experimental features ⟨https://docs.gitlab.com/user/duo_agent_platform/turn_on_off/#turn-on-beta-and-experimental-features⟩​.

Configuration options:

glab passes all other arguments and flags through to the GitLab Duo CLI binary. To see the GitLab Duo CLI commands and flags, run glab duo cli help​.

For more information, see the GitLab Duo CLI documentation ⟨https://docs.gitlab.com/user/gitlab_duo_cli/⟩​.

Options

--install[=false] Install the GitLab Duo CLI binary without running it.

--update[=false] Check for and install updates to the binary.

-y, --yes[=false] Skip confirmation prompts.

Options Inherited from Parent Commands

-h, --help[=false] Show help for this command.

Example

# Start an interactive GitLab Duo CLI session
glab duo cli

# Use the GitLab Duo CLI in headless mode with a single prompt
glab duo cli run --goal "Fix the failing tests in this project"

# Pass any command or flag through to the GitLab Duo CLI binary (for example: model, version, run)
glab duo cli <command>
glab duo cli --model claude_sonnet_4_6

# Show GitLab CLI help content
glab duo cli --help

# Show GitLab Duo CLI help content, including commands and flags
glab duo cli help

# Run without prompts (for use in scripts and non-interactive environments)
glab duo cli --yes

# Install the GitLab Duo CLI binary
glab duo cli --install

# Install the GitLab Duo CLI binary without prompts
glab duo cli --install --yes

# Check for and install updates
glab duo cli --update

See Also

glab-duo(1)

Info

Aug 2026 Auto generated by spf13/cobra