glab(1)
glab-duo-cli π
(that's glab(1) in the house, bestie)
okay so real talk β welcome to the glab-duo-cli corner of the glab(1) manual. this one's short, sweet, and lowkey iconic. let's get into it β¨
πΈ NAME πΈ
glab-duo-cli β literally just: Run the GitLab Duo CLI.
π SYNOPSIS π
glab duo cli [command] [flags]
π¦ DESCRIPTION π¦
So what you're doing here is running the GitLab Duo CLI (the binary's called duo, cute right?) through glab. ngl that's the whole vibe.
The GitLab Duo CLI brings the GitLab Duo Agent Platform straight to your terminal. You can ask GitLab Duo questions about your codebase, and it'll autonomously do stuff on your behalf. main character energy, honestly π
The GitLab Duo CLI runs in two modes, and you gotta know both:
- Interactive (default):
glab duo cliopens a whole session where you can throw multiple prompts at it, with build and plan modes. it's giving hangout π«Ά - Headless:
glab duo cli run --goal "<prompt>"runs exactly one prompt and dips. perfect for runners, scripts, and automated workflows. in-and-out, no small talk πββοΈ
Also the best part: when you use the GitLab Duo CLI through glab, glab handles authentication for you. you authenticate only once. no cap, that's a slay π
β¨ Prerequisites (read these fr fr) β¨
- Use GitLab 19.2 or later.
- Run
glab auth loginto authenticate. - Meet the prerequisites for GitLab Duo Agent Platform (
https://docs.gitlab.com/user/duo_agent_platform/#prerequisites). - Set a default GitLab Duo namespace (
https://docs.gitlab.com/user/profile/preferences/#namespace-resolution-in-your-local-environment), or run the command in a project that has GitLab Duo access. - For GitLab Self-Managed and GitLab Dedicated on 19.2 or later, turn on GitLab Duo CLI access (
https://docs.gitlab.com/user/gitlab_duo_cli/#manage-gitlab-duo-cli-access). good news: it's on by default.
If you're on GitLab 18.11 to 19.1, you can still 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). retro era π
π Configuration options π
duo_cli_auto_runβ skip the run confirmation prompt. no more "are you sure" πduo_cli_auto_downloadβ skip the download confirmation prompt. same energy β¨
π The pass-through situation π
Except for the update command, glab passes all other arguments and flags straight through to the GitLab Duo CLI binary. so whatever you throw at it, it goes to duo.
Wanna see the GitLab Duo CLI's actual commands and flags? run glab duo cli help. iykyk π₯
For more info, 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. like buying the outfit but not wearing it yet π--update[=false]β check for and install updates to the binary. literally the same thing as theupdatecommand, just a different door to the same room.-y,--yes[=false]β skip confirmation prompts. consent pre-given, we move π«‘
β OPTIONS INHERITED FROM PARENT COMMANDS β
-h,--help[=false]β show help for this command. the classic. the icon. π
π₯ EXAMPLE π₯
yes bestie, examples. we love to see it.
# 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 π§
go read those too, they're besties with this one π«Ά
aaaand that's the page, babe π this manual pag was Auto generated by spf13/cobra, dated Nov 2026, and it lives in glab(1). periodt πβ¨
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms