Skip to main content

GitLab from the command line

Issues, merge requests and pipelines on GitLab.com. GBrain gives GitLab, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: GitLab and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect GitLab

GitLab is connected on its own sign-in page, in the browser. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every GitLab command, once GitLab is connected
gbrainio tool help gitlab

What GBrain can do with GitLab

GitLab hosts code, reviews and CI in one place. Connected to a workspace, GBrain can answer “which merge requests are waiting on review?”, file an issue from a thread, or find why a pipeline failed.

  • Search projects
  • Read and file issues
  • Review merge requests
  • Check pipelines and jobs
gbrainio
gbrainio tool gitlabIssues, merge requests and pipelines on GitLab.com.USAGE  gbrainio tool gitlab <command> [arguments]COMMANDS  get-artifact-file          Read a file from inside the artifacts archive of a…  get-job                    Get a CI/CD job in a GitLab project  get-mcp-server-version  list-releases              List releases in a GitLab project, most recently r…  list-tags                  List tags in a GitLab project, most recently updat…  accept-merge-request       Merge a merge request, or schedule it to merge aut…  add-branch                 Add a branch to a GitLab project from a source ref  add-commit                 Add a commit with one or more file actions to a pr…  get-commit                 Get a single commit's metadata, optionally includi…  get-merge-request          Get a merge request and optionally its diffs, comm…  get-repository-file        Read a file from a GitLab repository at a given ref  get-pipeline               Get a CI/CD pipeline in a GitLab project, and opti…  get-project                Get metadata for a single GitLab project  get-saved-view-work-items  Fetch a saved view and its work items list from a…  get-user                   Get a single GitLab user  get-work-item              Get a single work item with its type, dates, assig…  get-work-item-types        List the work item types available in a namespace,…  link-work-items            Link a work item to other work items with a relati…  list-commits               List commits in a GitLab project, filtered by ref,…  list-groups                List GitLab groups  list-merge-requests        List or search merge requests in a GitLab project…  list-projects              List GitLab projects  list-repository-tree       List files and directories in a GitLab repository…  list-project-members       List the members of a GitLab project with their ro…  list-work-items            List or search work items in a group or project  save-merge-request-review  Write merge request review artifacts as the authen…  save-note                  Add a comment to a GitLab merge request or work it…  save-pipeline              Run, retry, cancel, or rename a CI/CD pipeline in…  save-work-item             Create or update a GitLab work item, such as an is…  search-labels              Search labels in a GitLab project or group by mult…  get-duo-session            Check a Duo Agent Platform session started by star…  list-duo-agents-and-flows  List the GitLab Duo agents, flows and external age…  list-duo-sessions          List the authenticated user's Duo Agent Platform s…  fork-repository            Create a fork of a project  list-pipelines             List all project pipelines  list-branches              List all repository branches  semantic-search            Semantic search over different types of content  start-duo-session          Start a GitLab Duo Agent Platform session that run…  send-duo-session-input     Answer a GitLab Duo Agent Platform session that is…  search                     Search across GitLab with automatic selection of t…  save-merge-request         Create or update a merge request in a GitLab proje…  open                       Open its page in the browserLEARN MORE  gbrainio tool gitlab <command> -h  What one command takes  https://gbrain.io/docs/tools       The manual
Every command GitLab's own server lists, each in its own words.

GitLab's own server lists these commands, and the CLI prints this page for them once GitLab is connected.

What a terminal may do with GitLab, and what GBrain keeps

Off or On, for each terminal

Each terminal reaches GitLab at the level set for it in the browser: Off, or On, which is every command GitLab's server lists. A terminal reads its level and never raises it.

1,000 actions a day for each command

Each of GitLab's commands stops at 1,000 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on GitLab is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool gitlab reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help gitlab says what GitLab is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

From GitLab

GBrain reaches GitLab at its own server, gitlab.com. On GitLab's own pages: its website, how the connection works, its terms of service and its privacy policy.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

GitLab from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect GitLab in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.