Commands
Positional arguments#
A command’s heading shows every positional argument it takes: <arg> is required, [arg] is optional and [arg...] takes any number. A command shown with no argument slot, such as glci lint or glci history clean, takes none and fails with exit code 2 when given one, naming the unexpected argument:
$ glci history clean 5
unexpected argument "5": "glci history clean" takes no positional arguments (see 'glci history clean --help')
Values for those commands go through flags (glci history clean --keep 5, glci lint -f ci.yml). A command that takes a fixed number of arguments rejects the wrong count the same way. A command group such as glci config or glci system cache rejects an unknown subcommand rather than running its default action or printing its help, and suggests the closest match:
$ glci system cache claen
unknown command "claen" for "glci system cache"
Did you mean this?
clean
glci#
Launch the interactive TUI. Browse pipeline structure, run jobs, view history. If stdout is not a TTY, prints help.
Its keys, including Enter to play a manual job and the notice shown when the daemon refuses a key press, are described under Interactive TUI.
The job count on the launch screen and the Browse Pipeline graph show the pipeline the planner builds, the same one glci show and glci jobs print: workflow:rules, each job’s rules:, .glciconfig.toml [jobs.*] planning overrides and parallel: expansion applied. glci has no --context flag, so they are always planned under the default context, which is named under the launch screen’s and Browse Pipeline’s titles. A job its rules: exclude is not drawn. Each needs: edge, in the graph and in a job’s details, is one the scheduler waits on: an optional: need on a job outside the plan is dropped, and cross-pipeline needs (pipeline:/project:) are not local edges. When workflow:rules reject that context, Browse Pipeline is empty and says so; go back (Esc) and press n to start a run under another context from the run form. A config glci cannot plan, or one GitLab would refuse (see glci run), is drawn as parsed, with glci: showing the CI file unplanned: <reason> under the title; the full reason is printed on stderr, where it is readable once the TUI exits. A pipeline GitLab refuses only under that context, where a job needs a job that rules: leave out, is drawn as parsed too, with glci: GitLab refuses the pipeline under <context> (esc, then n, to run under another context): <reason>. A live run redraws the graph from the daemon’s plan, with the needs that run schedules.
A CI file that does not parse at all leaves nothing to browse: glci prints the CI configuration is invalid: report glci lint prints and exits 1 before the TUI opens, and before it starts the daemon. An unreadable .glciconfig.toml or GitLab settings that cannot be resolved exit 2 with their own message. A run started from the TUI that the daemon refuses over the config (one GitLab would reject, or one refused in the chosen context) ends in the run view as ✗ Pipeline FAILED with that CI configuration is invalid: report as its error; refused from the pipeline view’s r or R, it is the one-line notice under the title.
Like glci run, it first creates the default .glciconfig.toml (which skips .pre) at the repository root when no project config is found; set GLCI_NO_DEFAULT_CONFIG=1 to opt out.
glci run [job...]#
Run pipeline jobs locally. Job names support glob patterns (* is the only metacharacter). Global flags also apply.
If no project config is found, it first creates the default .glciconfig.toml (which skips .pre) at the repository root and prints glci: created <path>… on stderr, in --json mode too; set GLCI_NO_DEFAULT_CONFIG=1 to opt out. It is the only command besides the TUI that writes one.
A config GitLab would refuse to build a pipeline from is refused here too, before any job starts — a top-level key that is no job, a blank hidden key, an unparseable rules: if: expression, a stages: list of the wrong shape, an unknown hooks: sub-key, a needs: or dependencies: entry naming a job in a later stage, a dependencies: entry naming no job at all. So is a pipeline GitLab would refuse in the run’s context: one where a job needs, without optional: true, a job that rules: leave out ('<job>' job needs '<target>' job, but '<target>' does not exist in the pipeline. ...), or one where a job rule’s changes: compare_to: names no commit (Failed to parse rule for <job>: rules:changes:compare_to is not a valid ref). Every job in the pipeline is checked, not just the ones the run selects, and a downstream pipeline refused this way fails its trigger job. The run stops before it starts, rather than planning around the problem and finishing green with the affected job quietly missing or ordered against its stage. The remaining graph checks glci lint adds on top — a needs: target that does not exist, a dependency cycle — are not re-run here; those stay with the scheduler. A run that selects a job whose needs: names no job at all stops with planning execution: job "<job>" needs "<target>" which does not exist and exits 2; glci lint reports the same file as invalid.
A CI file that does not parse, a config GitLab would refuse and a pipeline refused in the run’s context get the verdict glci lint gives: the same CI configuration is invalid: report on stderr, and exit 1 (under --json too, with nothing written to stdout, since no pipeline was created). A failure before the CI file is judged, such as an unreadable .glciconfig.toml, an unknown -p preset, a malformed --input or a daemon or container engine that cannot be reached, prints its own message and exits 2. A script can therefore tell “the pipeline is invalid” from “glci could not start”. glci retry splits a refused start the same way: 1 for an invalid configuration, 2 otherwise.
| Flag | Description |
|---|---|
-d, --detached | Start pipeline in background and exit |
-e, --executor | Executor: docker, kubernetes (default “docker”) |
--image | Default Docker image (default “alpine:latest”) |
--stage | Run only jobs in this stage |
--env KEY=VALUE | Set variable (repeatable) |
--env-file | Load variables from env file |
--mask KEY | Mark this variable secret, so its value is redacted from include-resolution output and expand_vars refuses it (repeatable) |
--secrets | Remote variables: all (project+group+instance), project, none (default “all”) |
--refresh-secrets | Force refresh cached API variables |
--git-strategy | clone, fetch, none, remote (default “clone”) |
--context | CI context: branch=NAME, merge_request, tag=NAME, env=NAME, or preset (default: the pipeline pushing HEAD would create, usually branch=<checked-out branch>) |
--mr-source | Source branch for merge_request; without --context or a preset context, implies merge_request |
--mr-target | Target branch for merge_request; without --context or a preset context, implies merge_request |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
--dirty | Include uncommitted files (default: true). They also count as changed for rules: changes: (see The changes diff). If the overlay fails, the run uses committed code and warns glci: warning: --dirty overlay failed, ... (see Dirty mode) |
--no-dirty | Only use committed code |
--reuse-artifacts | Reuse artifacts from prior run |
--simulate | Echo commands, produce dummy artifacts |
--show-variables | Print each job’s resolved variables (and rule trace) before it runs |
--unmask | Show masked/secret values in clear text: --show-variables output, and redacted include: paths (display only; expand_vars still refuses masked variables) |
--expand | With --show-variables, show full values (default truncates long values) |
--all-variables | With --show-variables, include predefined CI_* variables (hidden by default) |
--timeout | Override job timeout (e.g. 30m, 1h) |
--no-registry | Disable embedded registry |
--registry | Custom registry URL |
--registry-user | Container registry username |
--registry-password | Container registry password |
--push-through | Mirror pushes to upstream registry |
--pull-policy | Docker image pull policy: always, if-not-present, never |
--no-token | Disable forwarding host token as CI_JOB_TOKEN |
--skip | Skip a job (treated as success; repeatable) |
--no-skip | Force-run a normally-skipped job (repeatable) |
--no-skip-all | Disable all skip rules from config |
--manual | Auto-run a manual job (repeatable) |
--manual-all | Auto-run ALL manual jobs |
--no-manual | Disable manual auto-run |
--project-dir | Map a project path to a local dir, for cross-project triggers and submodules (repeatable) |
--plain | Disable colors (also off when the output is not a terminal or NO_COLOR is set) |
--json | Emit line-delimited JSON events on stdout instead of human output |
--json-logs | With --json, include job trace output as job_log events (off by default) |
--report FILE | Write the run’s result report to FILE when the pipeline finishes |
--report-format | Format for --report: junit (default) or json |
-p, --pipeline | Named preset from .glciconfig.toml |
-w, --watch | Re-run on file changes |
--debounce | Debounce interval (default 500ms) |
--on-change | Shell command to run when files change (requires –watch) |
--on-change-mode | How --on-change runs: block (default) or restart (kill & relaunch in background) |
Colors are off automatically on any stream that is not a terminal (glci run > build.log 2>&1 writes plain text) and whenever NO_COLOR is set; --plain turns them off on a terminal too. This covers glci’s own narration, job prefixes and summary; a job’s trace is passed through as the job wrote it.
--json and --report are the supported machine-readable surfaces — the event schema,
the report formats and how job statuses map onto JUnit are documented in
Structured Output. Exit codes are
unchanged in structured mode: 0 passed, 1 pipeline failed or cancelled, or the CI
configuration is invalid (see above), 2 glci error. --report cannot be combined with --detached, which has no outcome to report.
glci show#
Visualize pipeline without running it. Evaluates rules: using the specified context, include: rules included (see Include rules).
Without --context, show, jobs, variables and run simulate the pipeline that pushing HEAD would create: branch=<current branch> on a branch; on a detached HEAD, tag=<t> for a tag at HEAD, else branch=<b> for a local branch whose tip is HEAD, else branch=<b> for a remote-tracking branch whose tip is HEAD (a checkout of origin/feature is branch=feature), else merge_request; outside a git repository, merge_request. --context wins over the -p/--pipeline preset’s context, which wins over --mr-source/--mr-target or the preset’s mr_source/mr_target given without a context (these imply merge_request). Either context may name a [contexts] entry, whose mr_source/mr_target rank after the flags and before the preset’s, and whose env joins the preset variable layer (see Context presets). A context that does not parse is an error for all four commands, and a -p preset whose context does not parse is one for lint, merged and doctor as well, since they expand include: entries against the predefined variables of the default or preset context. When glci chose the context itself it prints it on stderr, e.g. glci: no --context given, assuming branch=main (checked-out branch), and so does glci retry of a pipeline recorded before glci kept its context (newer pipelines replay the recorded one); the reason is one of checked-out branch, tag at detached HEAD, branch tip at detached HEAD, remote branch tip at detached HEAD, no branch or tag at HEAD or not a git repository. On a terminal, glci show puts the line at the top of the paged output instead; --json drops it. glci lint (when the config passes) and glci merged (once the config resolves) print it as glci: assuming branch=main (checked-out branch), since they have no --context to point at and the include: rules they decide depend on the context (glci lint --quiet and glci merged --json drop it), and glci doctor shows it as a hint under its CI config row, in --json too. See Default context.
A CI file that does not parse, or a config GitLab would refuse to build a pipeline from — the same set glci run refuses, including a pipeline refused only in the chosen context, where a job needs a job that rules: leave out — has no pipeline to draw, so show prints the CI configuration is invalid: report glci lint prints and exits 1, with --json too (nothing is written to stdout). The other graph problems lint reports do not stop show. A failure before the CI file is read — an unreadable .glciconfig.toml, an unknown -p preset, a malformed --input — is not a verdict on it: show prints that error as it is and exits 2, the same split glci lint makes.
| Flag | Description |
|---|---|
-w, --watch | Re-render on file changes |
--debounce | Debounce interval (default 500ms) |
--on-change | Shell command to run when files change (requires –watch) |
--on-change-mode | How --on-change runs: block (default) or restart (kill & relaunch in background) |
--plain | Disable colors (also off when stdout is not a terminal or NO_COLOR is set) |
--no-dag | Hide needs annotations |
--json | JSON output |
--context | CI context: branch=NAME, merge_request, tag=NAME, env=NAME, or preset (default: the pipeline pushing HEAD would create, usually branch=<checked-out branch>) |
--mr-source | Source branch for merge_request; without --context or a preset context, implies merge_request |
--mr-target | Target branch for merge_request; without --context or a preset context, implies merge_request |
--env KEY=VALUE | Set variable for rules: evaluation (repeatable) |
--env-file | Load variables from env file |
--mask KEY | Mark this variable secret, so its value is redacted from include-resolution output and expand_vars refuses it (repeatable) |
--unmask | Show redacted include: paths in clear text (display only; expand_vars still refuses masked variables) |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
-p, --pipeline | Named preset |
--env/--env-file let you preview how the pipeline resolves under variable-scoped rules: (e.g. a $DEPLOY_ENV == "prod" gate) without running any jobs — orders of magnitude faster than a real run for debugging rules: changes.
glci stop [pipeline-id]#
Stop running pipelines or individual jobs. The pipeline (or, with --job, the job) is marked canceled at once; the runner then aborts the job and removes its containers as GitLab Runner does on GitLab: on the job’s next log update, or, for a job that is printing nothing, about 30 seconds after its last output. If the daemon no longer tracks the pipeline (e.g., after a daemon restart), glci stop <id> falls back to force-removing leftover containers and the pipeline network, then marks the pipeline as canceled in history.
| Flag | Description |
|---|---|
--job | Stop specific job |
glci log [pipeline-id] [job-name]#
Show job trace logs. Streams live for running jobs. Naming a job (glci log 5 build-job) on a job that is already running first prints everything it has logged so far, then continues live — see Viewing logs. When a daemon is running but this shell’s socket path is too long to dial it, glci log warns the running daemon cannot be reached from this shell and reads the log from disk instead of streaming it. Following a whole running pipeline (glci log 5) also prints the run’s warnings on stderr as glci: warning: ... lines, such as a --dirty overlay that failed, including one a cross-project trigger job raises later.
glci retry [pipeline-id]#
Retry failed jobs. The retry does not wait for the new pipeline, but it prints what preparing it warned about first, such as a --dirty overlay that failed. A downstream pipeline whose config failed to load (config_error) has no jobs to retry; retrying it, including with a bare glci retry right after such a run, is an error that names the parent’s trigger job to retry instead (glci retry <parent> --job <trigger>).
A retry re-runs the failed jobs under what the original pipeline was started with, as its history entry records it: the CI file (an explicit -f/--file wins), the inputs it was given, simulation mode (an explicit --simulate or --simulate=false wins), the context (including one glci assumed because the run named none), --mr-source/--mr-target, the -p/--pipeline preset, the --secrets mode, --no-token and the --mask names. A retry in simulation mode says so on stderr, and the Retrying ... line names the replayed context and preset. A recorded preset that .glciconfig.toml no longer defines is an error naming the pipeline and the preset. Credentials and --env/--env-file values, including env typed in the TUI run form, are never written to history, so --token, --gitlab-url and --project are read from the glci retry command line like any global flag, and env is not replayed. A [contexts] entry, chosen with --context, in the TUI run form or by the -p preset, is recorded by name, so the retry resolves it as the config defines it now: its context, mr_source/mr_target and env. Other glci run flags (--executor, --image, --stage, --skip, --manual, --push-through, --project-dir, --timeout, …) are not recorded either; the retry uses the config defaults for them. A pipeline recorded before glci kept these runs under the default context for what is checked out now, and the retry says which one on stderr.
The retry parses the CI file as it is now. One edited since the pipeline ran into a file that does not parse, or into a config glci run would refuse, is refused with glci: cannot retry pipeline #<id>: its CI file, as it is now, is invalid, then the CI configuration is invalid: report glci lint prints, and exit 1, as glci run is; any other failure to start the retry exits 2.
| Flag | Description |
|---|---|
--job | Retry specific job |
--simulate | Echo commands instead of executing; --simulate=false runs a simulated pipeline’s failures for real (default: as the original pipeline ran) |
glci jobs#
List parsed pipeline jobs. Applies the same context filtering as glci show, and, like show and lint, the stage, needs, parallel, when and allow_failure fields of .glciconfig.toml [jobs."<name>"] overrides, so it lists the jobs and edges glci run executes. Global flags also apply.
Like show, it lists nothing for a CI file that does not parse or a config glci run would refuse, including one refused in the chosen context: it prints the CI configuration is invalid: report and exits 1, with --json too. A failure before the CI file is read (an unreadable .glciconfig.toml, an unknown -p preset, a malformed --input) prints its own message and exits 2.
| Flag | Description |
|---|---|
--stage | Filter by stage |
--json | JSON output |
--context | CI context: branch=NAME, merge_request, tag=NAME, env=NAME, or preset (default: the pipeline pushing HEAD would create, usually branch=<checked-out branch>) |
--mr-source | Source branch for merge_request; without --context or a preset context, implies merge_request |
--mr-target | Target branch for merge_request; without --context or a preset context, implies merge_request |
--env KEY=VALUE | Set variable for rules: evaluation (repeatable) |
--env-file | Load variables from env file |
--mask KEY | Mark this variable secret, so its value is redacted from include-resolution output and expand_vars refuses it (repeatable) |
--unmask | Show redacted include: paths in clear text (display only; expand_vars still refuses masked variables) |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
-p, --pipeline | Named preset |
-w, --watch | Re-list on file changes |
--debounce | Debounce interval (default 500ms) |
--on-change | Shell command to run when files change (requires –watch) |
--on-change-mode | How --on-change runs: block (default) or restart (kill & relaunch in background) |
glci variables [job...]#
Show the resolved CI/CD variables for each job, with the source of each value, alongside the per-rule evaluation trace — for debugging variable precedence and rules: matching. Aliased as glci vars. Resolves locally without running the pipeline, so jobs excluded by their rules: are still shown (status excluded).
Predefined CI_* variables are hidden by default to keep the focus on the variables you control (job, rules:, global, --env, etc.); use --all to show them. A predefined variable referenced by a rule’s if: is always shown so you can see the value the rule was evaluated against. Does not fetch GitLab API secrets or runtime values — use glci run --show-variables for those. Global flags also apply.
A job lists only the global variables it inherits. The ones its inherit: variables: leaves out are named on a Not inherited (inherit: variables:): ... line under its table, and in a not_inherited array with --json. They are unset in its rules:, and a predefined variable one of them shadowed shows its predefined value again.
Like jobs, it reports nothing for a CI file that does not parse or a config GitLab would refuse outright (a rules: if: that does not parse, a needs: entry naming a later-stage job, …): it prints the CI configuration is invalid: report and exits 1, with --json too. A failure before the CI file is read (an unreadable .glciconfig.toml, an unknown -p preset, a malformed --input) prints its own message and exits 2.
| Flag | Description |
|---|---|
--stage | Filter by stage |
--json | JSON output |
-a, --all | Include predefined CI_* variables (hidden by default) |
--unmask | Reveal masked/secret values (display only; expand_vars still refuses masked variables) |
--expand | Show full values (default truncates long values to 512 chars) |
--env KEY=VALUE | Set variable (repeatable) |
--env-file | Load variables from env file |
--mask KEY | Mark this variable secret, so its value is redacted from include-resolution output and expand_vars refuses it (repeatable) |
--context | CI context: branch=NAME, merge_request, tag=NAME, env=NAME, or preset (default: the pipeline pushing HEAD would create, usually branch=<checked-out branch>) |
--mr-source | Source branch for merge_request; without --context or a preset context, implies merge_request |
--mr-target | Target branch for merge_request; without --context or a preset context, implies merge_request |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
-p, --pipeline | Named preset |
-w, --watch | Re-resolve on file changes |
--debounce | Debounce interval (default 500ms) |
--on-change | Shell command to run when files change (requires –watch) |
--on-change-mode | How --on-change runs: block (default) or restart (kill & relaunch in background) |
Sample output:
deploy_prod (stage: deploy) [included, when: on_success]
Rules:
#0 $CI_COMMIT_BRANCH (main) == $CI_DEFAULT_BRANCH (main) → true
Variables:
KEY VALUE SOURCE
CI_COMMIT_BRANCH main predefined
DEPLOY_ENV production rules
GREETING hello global
A rule that could not be evaluated reads → false with the reason appended in parentheses. That reason never quotes a variable’s value — see Rule evaluation never quotes a value.
glci lint#
Validate CI configuration. Parses the full CI file (including include: directives) and checks for structural issues. $VARs in include: entries expand against the predefined variables of the pipeline pushing HEAD would create, or of the -p preset’s context, under --env, --env-file, the preset’s env and .glci.env, as on glci run. With a token, the GitLab Lint API is the fallback when the offline parse fails (GLCI_PREFER_API=1 asks it first); on that route every local file GitLab would read is sent from your working tree, and a local: include whose rules glci leaves for GitLab (they reference a masked variable, use a form glci cannot evaluate, or are refused by glci’s checker) fails lint when GitLab read it and the working-tree copy does not resolve, rather than passing on GitLab’s copy from the default branch. See local files are always the working tree’s.
Checks: every top-level key that is not a global keyword is a job (with script:, run: or trigger:) or a trigger job (any other key with needs:, which then needs a trigger: or a single needs:pipeline), and no hidden key (.name) is blank, with GitLab’s messages; with an include skipped for want of a token, a key the skipped file may complete or turn into a job is listed as not fully verified instead, needs: targets exist, no needs: or dependencies: entry names a job in a later stage (<job> job: need <target> is not defined in current or prior stages, or dependency in place of need; an optional: true need is not exempt, as on GitLab, and a cross-pipeline need such as {pipeline: $PARENT_PIPELINE_ID, job: build} is not checked against this pipeline’s jobs at all), every dependencies: entry names a job (<job> job: undefined dependency: <target>), no dependency cycles, timeout: values parse, every job’s stage: is declared in stages:, every top-level include: location ends in .yml or .yaml, every include entry’s inputs: is a mapping that names only inputs the file’s spec: header declares (unknown input arguments: <names>) and gives no inputs to a file with no header (Given inputs not defined in the `spec` section of the included configuration file), every --input/--inputs-file name is declared by the root file’s spec: header and no input is given to a root without one (the same two messages, prefixed with the root’s path in the repository, `.gitlab-ci.yml`:; see Pipeline inputs), hooks: contains only the sub-keys GitLab accepts, every script:, before_script:, after_script:, services:command: and hooks:pre_get_sources_script holds a string or a nested array of strings, keywords hold the type GitLab requires (allow_failure: and interruptible: a boolean, retry: and parallel: an integer or a hash, stage: and timeout: a string, tags: and dependencies: a list of strings (timeout: and tags: under default: too), each needs: entry a job name or a mapping whose job: is one, with a boolean optional: and artifacts: (in a rule’s needs: too), a trigger’s strategy: a string and its forward: a mapping of boolean yaml_variables: and pipeline_variables:, pages: a boolean or a mapping of string path_prefix:, expire_in: and publish:, inherit:’s default: and variables: a boolean or a list of strings, image: and each of services: a string or a mapping with a string name: (and a list of strings for entrypoint:, a string alias:, a known pull_policy:), environment: a string or a mapping whose name matches GitLab’s pattern and whose url:, action:, on_stop:, deployment_tier: and auto_stop_in: are strings, cache: a mapping or a list of them (key: a string without / or a files: mapping, paths: and fallback_keys: lists of strings, untracked:/unprotect: booleans, when: and policy: in GitLab’s sets), artifacts: a mapping of the types GitLab requires, only:/except: a list of strings or a mapping, variables: scalars or mappings with a scalar value:, an alphanumeric description:, a boolean expand: and options: that list the value:, resource_group:, coverage:, manual_confirmation:, a delayed job’s start_in: and workflow: name: strings, under default: and at the top level too, with GitLab’s messages), no job, variable (top-level, job, rule, workflow rule, service or parallel: matrix:), job inputs: or spec: inputs: entry is named by an unquoted yes/no/on/off/true/false, which GitLab reads as a boolean (including a variable a job gets through extends: or !reference), and every rules: if: expression parses.
Lint evaluates no job or workflow: rules:, so it cannot report what only a context decides, such as a job needing a job that rules: leave out; GitLab’s own lint does not either, short of a dry run. glci show --context <ctx> and glci jobs --context <ctx> refuse that with the same report.
include: rules are decided, because they choose which files make up the configuration. Lint has no --context, so they are decided against the -p preset’s context or the pipeline pushing HEAD would create, and a file they drop is neither read nor checked. When no preset sets a context and the config passes, lint names the one it assumed on stderr (glci: assuming branch=main (checked-out branch)); a refusal is printed alone. See Include rules.
Those messages are worded exactly as GitLab’s lint API words them, apart from letter case — GitLab lowercases the whole message, job name included, while glci echoes the name as you wrote it so you can find it in your file:
$ glci lint
CI configuration is invalid:
jobs:build:hooks config contains unknown keys: post_get_sources_script
jobs:deploy:script config should be a string or a nested array of strings up to 10 levels deep
The parse itself refuses what GitLab refuses for the YAML alone — a !reference GitLab cannot read (!reference [".tmpl", 1] is not valid), a document that is not a mapping — as CI configuration is invalid: parsing CI config: loading YAML: line N: ..., and an include: entry that is neither a string nor a mapping (a number, a list, a boolean such as a plain yes) as ... resolving includes: include: Each include must be a hash or a string, not ...; see a config refused for its YAML alone.
A missing extends: or !reference target makes the config invalid, as GitLab’s lint does. glci reports CI configuration is invalid: parsing CI config: resolving extends: extends target ".tmpl" not found (referenced by "build"), or ... resolving references: !reference [".tmpl", "script"] could not be found: key ".tmpl" not found; so is an extends: target that exists but is not a mapping. With a token configured, glci also asks GitLab’s Lint API, as for any offline failure, and the message then carries GitLab’s verdict too. The one exception is a parse that skipped an include: project: or include: component: because no GitLab token is configured: the target may be defined in the skipped file, so glci cannot tell a typo from a gap of its own making. It then warns about each such target and, rather than calling the config valid, says it could not verify it, still exiting 0. That verdict is printed under --quiet too, which only silences a plain pass; at most ten targets are listed, in sorted order:
$ glci lint
glci: skipping project include group/templates: no GitLab token configured
glci: !reference [".rules", "premerge"] could not be found: key ".rules" not found; ignoring it, since it may be defined in a skipped include
CI configuration could not be fully verified: 3 jobs, 5 stages
Not found, and possibly defined in an include skipped because no GitLab token is configured:
!reference [".rules", "premerge"] could not be found: key ".rules" not found
Set a GitLab token (--token, GITLAB_TOKEN, or [gitlab] token in .glciconfig.toml) to check them; GitLab rejects the pipeline if any is truly missing
If the config is invalid for another reason, the same list follows the errors: a job whose only content came from an extends: target that was not found is dropped, and a job that needs: it then fails on that. With a token the include is fetched and the target either resolves or is an error. A target that exists but holds null or false is an error even with an include skipped (see glci merged).
glci lint is not a full replica of GitLab’s validation — glci’s parser is deliberately permissive
elsewhere — so a clean run here does not guarantee a clean push.
A when: must be one GitLab accepts, and the set depends on where it is written. A job’s own when: takes on_success, on_failure, always, manual or delayed; a trigger job’s takes the same set except delayed. Neither takes never, which only a rule may use. A job or trigger job rule’s when: takes all six, never included, and a workflow: rule’s takes always or never only. The check is case-sensitive, and a value inherited through extends: is checked on the job that inherits it. GitLab words the two levels differently, and so does glci:
$ glci lint
CI configuration is invalid:
jobs:typo_job when should be one of: on_success, on_failure, always, manual, delayed
jobs:typo_rule:rules:rule when unknown value: allways
As on GitLab, a job that fails one of its own checks — resource_group:, when:, dependencies:, allow_failure:, manual_confirmation:, a delayed job’s start_in: — is reported for those alone: none of its other keywords (image:, cache:, interruptible:, retry:, parallel: and the rest) is checked until they are fixed. A trigger job that fails one also gets jobs:<name> config should contain either a trigger or a needs:pipeline, as on GitLab, and so does one that passes them with neither a trigger: nor a valid needs:pipeline. Like every config error, it also stops glci run from starting.
An if: expression that does not parse is reported with GitLab’s own wording, and so are the two shapes GitLab rejects for the same reason — an if: that is present but empty, and one that is not a string. A rule with no if: key at all is valid and matches unconditionally.
A variable is written $VAR: GitLab’s lexer has no ${VAR} form, so an if: using it is reported the same way. The check is only as strict as glci’s expression parser, which is not a byte-for-byte replica of GitLab’s lexer, so it catches expressions GitLab would reject, but a clean result is not proof GitLab will accept every one of them.
An expression using =~ or !~ is only rejected for a malformed /pattern/ literal. A pattern held in a variable or a quoted string is never compiled – it is a substring test, as on GitLab – so a broken one lints clean and simply matches nothing. See the right-hand side of a match.
$ glci lint
CI configuration is invalid:
jobs:deploy:rules:rule if invalid expression syntax
The check covers job, workflow: and include rules, and a job or workflow: rule’s changes: and exists: get the same validation as an include rule’s (jobs:<name>:rules:rule:changes config should be an array of strings, ... should be an array or a hash), including the 50-entry limit on a plain exists: list, which only an include rule lifts; a nested list of rules (a YAML alias to shared rules) is flattened, as on GitLab. A workflow: rule reports as workflow:rules:rule, a rule on a top-level include: entry (nested includes too) as include:rule, and a rule on a trigger job’s trigger: include: entry as jobs:<name>:trigger:include:include:rules:rule. GitLab validates include rules before it decides them, so a bad one is refused here as it would be on push, whether or not it would have matched. The whole include rule is validated, not just if:, with GitLab’s wording: an unknown key (include:rule config contains unknown keys: allow_failure), a when: other than never or always (include:rule when unknown value: manual), a rules: that is not a non-empty list (include:rules config should be an array, or include:rules config can't be blank for an empty one), and a malformed changes: or exists: (include:rule:changes should be an array or a hash, include:rule:exists config missing required keys: project, and so on). GitLab downcases these messages, so a key or value is echoed in lower case (a when: value other than a job’s when: is echoed only when it is already lower case and at most 64 characters long, so the daemon’s secret masking still recognises it); several unknown keys are listed alphabetically, where GitLab keeps their order in the file. A bad top-level include rule is reported only once, however many there are, because GitLab stops at the first. It stops the parse while includes are resolved, so it is reported on one line, CI configuration is invalid: parsing CI config: resolving includes: include:rule when unknown value: manual, by every command that resolves the config: lint, merged, doctor, jobs, show, variables and run. On a trigger: include: entry every error is reported, and a rules: that is not a list of mappings is reported against the entry itself (jobs:<name>:trigger:include:include rules should be an array of hashes). The one check glci leaves out is whether a changes: or exists: regexp: compiles, since GitLab compiles it with Ruby’s regex engine. A job that expands through parallel: or parallel: matrix: is reported once, under the name you wrote — GitLab validates the entry, not the shards.
Writing a long condition as a YAML block scalar is fine — if: >, if: >- and if: | all evaluate normally, as they do on GitLab, and whitespace anywhere between tokens is ignored:
deploy:
script: ./deploy.sh
rules:
- if: >
$CI_PIPELINE_SOURCE == "push" &&
$CI_COMMIT_BRANCH == "main"
true and false are expression literals, matching GitLab. A bare false is falsy, while a variable holding the string "false" is a non-empty string and therefore truthy; comparing a boolean against a string compares their text, so $FLAG == true matches when FLAG is "true". An unset variable equals neither. ! binds to its own operand rather than to a comparison, as on GitLab, so !$FOO == "bar" is (!$FOO) == "bar" and the negated side compares as "true"/"false" – parenthesise to negate a comparison whole. Both sides of a comparison take the same operands, a parenthesised group included, and a group keeps the value inside it. A quoted string is taken verbatim, with no escape sequences, so \" does not protect a quote – the literal ends at the next quote of the same kind, and the leftover text is either refused or reparsed into a different expression that lints clean. Those two outcomes match GitLab, as does refusing a literal that spans a newline. A leftover that begins with a comparison operator is the exception: $A == "x\" == "y" is a chained comparison GitLab accepts, and glci reports it here as invalid expression syntax because it does not chain comparisons. See operators and operands and string literals.
The include-extension check matches GitLab’s YAML_ALLOWLIST_EXTENSION: the last path segment must end in .yml/.yaml, case-insensitively, with at least one character before the dot.
It runs before the file is read, so a wrong extension reports as one instead of as a missing file:
$ glci lint
CI configuration is invalid: parsing CI config: resolving includes: local include "ci/child.txt": path must end in .yml or .yaml
A wildcard is expanded first and each match is checked, so local: 'ci/*' fails when ci/ holds a non-YAML file, while local: 'ci/*.yml' beside the same file is fine; the message names the pattern and the match it found. Directories a wildcard matches are skipped, as GitLab’s wildcard search returns files only.
include: component: is exempt — a component location is FQDN/project/name@version — and so is any location still holding an unexpanded $VAR.
An entry whose rules: drop it is never checked, since GitLab discards it before validating it; one its rules: keep is checked like any other.
For a remote URL the query string or fragment is part of the name GitLab checks, so https://.../f.yml?ref_type=heads is rejected.
Containment is a sibling check with the same effect on lint. A local include naming a file outside the repository is refused with local include "../shared.yml" escapes project directory, and one reached through a symbolic link with local include "alias.yml": a symbolic link, which GitLab does not follow — GitLab reads includes as blobs, so it follows no link, and refuses one even when its target is inside the repository. Both apply to every local include glci reads; one its rules: drop is never read. See A local include is refused as outside the repository.
This covers top-level include: only. A trigger: include: location is checked when the child pipeline is created, not by glci lint — GitLab defers it the same way, and containment there is checked at that point too.
Exit codes: 0 when the config is valid, or could not be fully verified because an include was skipped (see above), 1 when it is invalid (the report above is the whole output, each error printed once), 2 when lint could not get as far as a verdict — an unreadable .glciconfig.toml, an unknown -p preset, a malformed --input or unreadable --inputs-file (a well-formed --input or --inputs-file naming an input the root file cannot take is a verdict, exit 1), GitLab connection settings that cannot be resolved, or a bad flag. A code-2 failure prints its own message, never CI configuration is invalid.
| Flag | Description |
|---|---|
-q, --quiet | Exit code only, no output on success (a config that could not be fully verified is still reported) |
--mask KEY | Mark this variable secret, so its value is redacted from include-resolution output and expand_vars refuses it (repeatable) |
--unmask | Show redacted include: paths in clear text (display only; expand_vars still refuses masked variables) |
--env KEY=VALUE | Set variable for $VAR expansion in include: entries, include: rules and the expand_vars input function (repeatable) |
--env-file | Load variables for $VAR expansion in include: entries, include: rules and the expand_vars input function from env file |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
-p, --pipeline | Named pipeline preset from .glciconfig.toml (its env and masked, the env of the [contexts] entry its context names (the preset’s own env winning a shared key), and its context for the predefined variables, are used for $VAR expansion in include: entries and expand_vars, and to decide include: rules) |
-w, --watch | Re-validate on file changes |
--debounce | Debounce interval (default 500ms) |
--on-change | Shell command to run when files change (requires –watch) |
--on-change-mode | How --on-change runs: block (default) or restart (kill & relaunch in background) |
Note: Local
include:paths resolve from the repository root, matching GitLab — not from the directory that holds the CI file. A CI file in a subdirectory can therefore reference a file elsewhere in the repo:# framework1/.gitlab-ci.yml include: - local: common/.app-workflow.yml # resolved as <repo-root>/common/.app-workflow.ymlBoth
glci lintrun fromframework1/andglci lint --file framework1/.gitlab-ci.ymlrun from the repo root resolve the include the same way. glci finds the repository root by walking up to the nearest.git; outside a git repository it falls back to the CI file’s own directory. This applies to every command that parses the CI config —lint,run,jobs,show,variables,merged, anddoctor.
glci merged#
Print the fully-resolved CI configuration — the config after include:, extends:, !reference, default: inheritance and spec: inputs: interpolation. It is the local equivalent of GitLab’s “Full configuration” view: glci’s own fully-resolved view of the same config, not a byte-for-byte copy (see below). Takes no positional arguments. Aliased as glci merged-yaml. Global flags also apply.
The output is the configuration before job and workflow: rules: are evaluated, so it answers “what did my includes and extends produce”. Only $VAR expansion in include: entries, include: rules and expand_vars depend on a context: the predefined variables come from the -p preset’s context, or from the pipeline pushing HEAD would create (see Variables in include:). A file whose include: rules drop it is not in the output. When no -p preset sets a context, the one glci assumed is named on stderr (glci: assuming branch=main (checked-out branch)), never on stdout, and --json drops it. Use glci show for what would run in a given context and glci variables for variable precedence and rule traces.
A CI file that does not resolve — it does not parse, an include: cannot be read, a top-level include: rule is one GitLab refuses, an extends: or !reference target is missing — prints the CI configuration is invalid: line glci lint prints and exits 1, with nothing on stdout. Since no job or workflow: rule is evaluated, a config GitLab refuses only for its rules or its graph is still printed, and so is one with a top-level key that is no job: a spec: in a file with no --- after it is printed as written. A failure before the CI file is read (an unreadable .glciconfig.toml, an unknown -p preset, a malformed --input) prints its own message and exits 2.
| Flag | Description |
|---|---|
--json | JSON output |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
-p, --pipeline | Named preset from .glciconfig.toml (its env and masked, the env of the [contexts] entry its context names (the preset’s own env winning a shared key), and its context for the predefined variables, are used for $VAR expansion in include: entries and the expand_vars input function, and to decide include: rules) |
--env KEY=VALUE | Set variable for $VAR expansion in include: entries, include: rules and the expand_vars input function (repeatable) |
--env-file | Load variables for $VAR expansion in include: entries, include: rules and the expand_vars input function from env file |
--mask KEY | Mark this variable secret, so its value is redacted from include-resolution output and expand_vars refuses it (repeatable) |
--unmask | Show redacted include: paths in clear text (display only; expand_vars still refuses masked variables) |
-w, --watch | Re-print on file changes |
--debounce | Debounce interval (default 500ms) |
--on-change | Shell command to run when files change (requires –watch) |
--on-change-mode | How --on-change runs: block (default) or restart (kill & relaunch in background) |
glci merged # merged YAML on stdout
glci merged --json | jq '.["build-job"]' # machine-readable
glci merged --input env=staging # with pipeline inputs
glci merged --file framework1/.gitlab-ci.yml
Keys are sorted — the one exception being parallel: matrix: entries, which print in the order their variables were declared, since that order decides the shard names. The output is byte-stable across runs either way, and can be diffed:
glci merged > /tmp/after.yml
git stash push -- .gitlab-ci.yml && glci merged > /tmp/before.yml
git stash pop && diff /tmp/before.yml /tmp/after.yml
git stash push -- <path> is deliberate: a bare git stash on a clean tree stashes nothing and exits 0, and the later git stash pop then fails. Write the outputs to /tmp/ so they never land in the working tree the diff is about.
Only the configuration goes to stdout; warnings — such as an include: project: skipped for lack of a token — go to stderr, so a redirect keeps the config clean while the omission is still reported. An include that exists but cannot be fetched is a hard error, not a silent omission, and so is an included file whose spec: inputs: do not resolve — that one used to be a warning that merged the file with its $[[ inputs.X ]] placeholders left intact. So is an include entry whose inputs: names an input the file does not declare (unknown input arguments: <names>), or that supplies inputs to a file with no spec: header (see Pipeline inputs); such an argument used to be dropped. The root file’s own --input and --inputs-file values are held to the same two rules, and refused with the same messages prefixed with the root’s path (`.gitlab-ci.yml`: unknown input arguments: <names>); they used to be dropped too. An included file with no spec: header is printed with its $[[ inputs.X ]] blocks as written even when the root declares X, as GitLab merges it; glci used to fill the root’s inputs into it. A missing extends: or !reference target fails the command, as it fails GitLab’s, unless an include was skipped for want of a token: the target may then be defined in the skipped file, so it degrades to a warning instead — so watch the warnings: an unresolved !reference inside a list (a script:, say) is dropped from that list, and one used as a mapping value becomes null. A !reference to a key that exists but holds null or false fails even then: GitLab reports it as could not be found too, and since the key is in the file rather than in a skipped include, glci fails on it as GitLab does. A reference to a value that is itself an unresolved !reference stays a warning. Resolving remote:, project: and component: includes performs network fetches.
What the output contains:
include:andextends:keys are gone: their contents have been merged in.!referencesplices are expanded in place.default:is applied to every job that inherits it, and thedefault:block itself is kept.- Global
variables:are merged into each job’svariables:(job values win, andinherit: variables:is honoured); the top-levelvariables:block is kept. .preand.postare added tostages:only when the config declares astages:key. A config without one produces merged output with nostages:key at all, not the default stage list.- When the config does declare
stages:,.preand.postare re-anchored: stripped from wherever they were written, then placed first and last, sostages: [.post, build]prints[.pre, build, .post]. The strip matches only top-level entries, as GitLab’s does, so an edge name nested inside a sub-list survives it and keeps its position —stages: [a, [.post], b]prints[.pre, a, .post, b, .post], where the trailing.postis the unconditional append and the stage order that results is[.pre, a, .post, b]. - Hidden jobs (
.template:) are kept, matching GitLab’s merged YAML.
Remote include: types (project:, component:) need a token — pass --token or set GITLAB_TOKEN, otherwise they are skipped with a warning on stderr. A spec: include: project: entry is the exception: with no token it fails the parse, since the file cannot be interpolated without the input definitions it holds.
Treat the output as sensitive. It contains variable values from every included file, including private
project:/component:includes fetched with your token, and any--inputvalues.--env,--env-fileand-palso feedexpand_vars, so they can change the printed config, and the config on stdout can then carry their values. Review before pasting into an issue or committing it.Warnings and errors on stderr quote the
include:path after$VARexpansion. Values are replaced with[MASKED]on the same terms GitLab uses — a variable is hidden when it is marked, not because its value looks secret — so mark a local secret with--mask KEYor a preset’smasked = [...], exactly as you would tick Mask variable in GitLab.--unmaskturns redaction off while debugging. See Masking in include output.
How this differs from GitLab’s merged YAML#
Verified against GitLab source; normalize for these before comparing:
| Difference | glci | GitLab |
|---|---|---|
default: and global variables: | applied into each job (the top-level blocks are still printed) | applied after merged_yaml is produced, so they stay only as top-level blocks |
extends: | keys removed | kept in the merged config (values are merged in either way) |
| Key order | sorted, except parallel: matrix: entries, which keep their declared variable order | source order preserved |
parallel: matrix: | not expanded | not expanded — same behaviour |
Nested stages: sub-lists | flattened, so a nested edge stage does not survive feeding the output back in as a config | kept nested, because merged_yaml is captured before Entry::Stages#value flattens |
.glciconfig.toml [jobs."<name>"] overrides | not applied | n/a |
| Strings that look like another type | quoted when GitLab’s YAML reader would retype them ("oN", "tRUE", "1:30"), so the output reads back as the same values | quoted the same way by Psych, in single quotes |
For a line-by-line diff, normalize both sides first — for example yq -P 'sort_keys(..)' on each file. Because [jobs."<name>"] overrides are not applied, glci merged can differ from what glci run actually executes in projects that use them; use glci jobs or glci show for that.
glci history#
List past pipeline runs.
| Flag | Description |
|---|---|
--limit | Max results (default 20) |
--json | Output as JSON (an empty array when there is no history) |
glci history show [id]#
Show pipeline details with job list. Defaults to the latest pipeline. A downstream pipeline whose config failed to load has no jobs; its header shows the failure reason (config_error) and each config error instead.
| Flag | Description |
|---|---|
--plain | Plain text output (no colors; also off when stdout is not a terminal or NO_COLOR is set) |
--no-dag | Hide DAG dependency arrows |
--json | Output the pipeline record and its jobs as JSON |
glci history clean#
Delete history. Without --keep it deletes every pipeline, with its artifacts, job traces and release records; there is no undo. The count goes through --keep: a positional count (glci history clean 5) is rejected rather than ignored.
| Flag | Description |
|---|---|
--keep N | Keep last N |
glci ps#
List active pipelines and containers.
| Flag | Description |
|---|---|
-c, --containers | Show only glci-managed containers |
--json | Output as JSON |
With --json, daemon_running and engine_available are reported explicitly, and
--containers omits the pipelines key entirely rather than reporting an empty list.
When a daemon is running but this shell’s socket path is too long to dial it, glci ps
fails with the running daemon cannot be reached from this shell rather than report it as
not running - after listing the containers, with the pipelines marked unknown; --json fails
without a document, and --containers does not ask the daemon and still works. See
Troubleshooting.
See Structured Output.
glci artifacts#
glci artifacts list [pipeline-id]#
| Flag | Description |
|---|---|
--all | Across all pipelines |
glci artifacts download [pipeline-id] <job>#
| Flag | Description |
|---|---|
--output | Output path |
glci artifacts extract [pipeline-id] <job>#
| Flag | Description |
|---|---|
--output | Output directory |
glci artifacts inspect [pipeline-id] <job>#
glci artifacts diff <id1> <id2>#
| Flag | Description |
|---|---|
--job | Job name |
glci artifacts delete [pipeline-id] [job]#
| Flag | Description |
|---|---|
--all | All pipelines |
--older-than | Duration (e.g. 7d) |
glci releases#
glci releases list [pipeline-id]#
| Flag | Description |
|---|---|
--all | Across all pipelines |
glci releases show [pipeline-id] <tag>#
glci releases download [pipeline-id] <tag> [file]#
| Flag | Description |
|---|---|
-o, --output | Output path/directory |
glci registry#
Manage the embedded container registry.
glci registry list#
List images stored in the local registry.
| Flag | Description |
|---|---|
--project | Filter by project path |
glci registry pull <image> [prefix]#
Pull an image from the daemon registry into the local container engine (Docker or Podman). An optional prefix retags the image (e.g., local produces local.registry.gitlab.com/...).
glci registry clean#
Remove stored registry blobs. With the daemon running, the daemon cleans its own registry. Until its first pipeline starts the registry (or after the registry container stopped), the daemon removes the idle registry volume itself, and reports no registry data to clean when there is none; --project then works only when there is no data, since which blobs belong to one project is known only to the running registry. Otherwise: if it reports an error or its socket refuses the connection (registry not cleaned: the running daemon failed:), or it cannot be reached from this shell (a socket path too long to dial - see Troubleshooting), the command fails with registry not cleaned: and leaves the registry alone rather than delete it under the daemon. Stop the daemon (glci daemon stop) to clean the registry directly. If it does not answer within 10 seconds, the command reports registry clean not confirmed:, as the daemon may still be cleaning. Without a daemon, the command removes the registry volume the daemon for this GLCI_HOME uses (glci-registry-<hash>, the hash identifying GLCI_HOME), on the engine endpoint that daemon would use (the [docker] host from the config when set, otherwise the shell’s DOCKER_HOST/CONTAINER_HOST or the engine’s current context or connection), plus the ~/.glci/registry directory older releases kept it in, and reports no registry data to clean when there is neither. An engine it cannot reach fails the command (registry not cleaned: looking up the ... volume ...) rather than pass for an empty registry. It never removes a container: if one still mounts the volume - a mock server left running by glci daemon stop --force or a crash - the command fails with registry not cleaned: the ... volume is still mounted by ..., naming it and the command that removes it. --project needs a running daemon.
| Flag | Description |
|---|---|
--project | Only clean specific project’s images |
glci registry stats#
Show registry storage usage (total size, image count, layer count).
glci pages#
Preview GitLab Pages sites from local pipeline runs.
glci pages serve [pipeline-id] [job-name]#
Extract and serve a Pages job’s artifact over HTTP. Pipeline ID defaults to the latest pipeline. Job name defaults to the first Pages-enabled job found (pages: true or pages: { publish: "dir" }). The publish directory within the artifact is served (default public/). If the publish directory is not found, the artifact root is served. If the preferred port is taken, the next available port is chosen automatically.
| Flag | Description |
|---|---|
-p, --port | Port to serve on (default 8080) |
--host | Host to bind to (default 127.0.0.1) |
glci config#
Show effective merged configuration (global ~/.glci/config.toml + project .glciconfig.toml). Running glci config with no subcommand is equivalent to glci config show.
Displays the [defaults], [docker], [includes], [runner], [daemon], [images], [runners.<name>], [skip], [pipelines.*] and [contexts.*] sections, in that order. The [images] block is omitted entirely when nothing is set, and any diagnosable problem with it is printed above it as a ⚠ line. The [includes] block appears only when templates_url is set, with a ⚠ line under it when the value is unusable (every include: template: would fail with it). The [daemon] block shows idle_timeout, max_log_size and max_log_files when the global config sets any of them — what the next daemon start uses; an idle_timeout that is not a duration of at least one minute is shown as the default it falls back to, annotated with the reason — for example idle_timeout = "30m" ("30s" is shorter than the minimum of 1m; using the default). A key that is no longer supported (see Removed keys) is reported as a warning naming the file and the key. Runner configuration including config templates is validated at load time — template syntax errors appear as warnings.
If the project .glciconfig.toml set any global-only key, the ignored-keys warning is printed first, above the configuration sources — those keys are the one case where what you wrote is not what glci uses, so a silently missing section would read as a bug. A [runners.<name>] section whose fields were all stripped is skipped rather than printed as an empty header, and when nothing at all survives you get No configuration set (the project config only set ignored keys — see the warning above).
The [docker] block shows engine, host, and container_socket; a [runners.<name>] block shows engine, docker_host, docker_context, container_socket, config_template (as a line count), config_template_file, tls_cert_path, and tls_verify. engine and the TLS keys are included because they decide which daemon glci talks to and how far it trusts it.
| Flag | Description |
|---|---|
--gitlab | Show resolved GitLab instance config (URL, token source, project) |
--network | Show [docker] (when set), [network] and the [paths] container_* dirs, with defaults annotated |
--network prints the resolved values of [docker] (when set), [network] (mock_server_port, host_gateway, bus_subnet, [network.extra_hosts] entries) and [paths] (container_builds_dir, container_cache_dir, container_certs_dir): host_gateway reads "auto" annotated with what it becomes when a pipeline starts — (default — host-gateway on Docker Desktop WSL2, glci's bus network gateway elsewhere), or (configured — ...) when "auto" is set explicitly — while "host-gateway" or a pinned address is annotated (configured); bus_subnet shows the range glci’s bus networks take their subnet from ("172.16.0.0/16" by default, or "auto"). Validation warnings are printed first. When the config cannot be resolved — a bad host_gateway or bus_subnet, [network.extra_hosts] entry, [paths] container_* dir or [images] value — it prints the [network] section as written, then exits non-zero with the same error glci run refuses on.
--gitlab resolves through the same path as every other command, so --token and --gitlab-url are honored here — checking whether your remedy worked works.
It annotates the URL with the source that won, highest precedence first: (from --gitlab-url flag), (from GITLAB_URL env var), (from project config file), (from global config file), (from git remote), or (default). The two config-file sources are named separately because it changes which tokens glci is willing to send — a URL from the project file only ever gets a token from that same file or --token.
The token is never printed, only its state: token = <set> (from ...) naming the source (--token flag, env var, project config file, global config file, glab credential-helper, or glab CLI config (fallback)), token = <not set>, or — when a token was found but withheld:
token = <withheld>
(url comes from the project config, which travels with the repository,
so only --token or a [gitlab] token in that same file is sent there)
When a project config names both the URL and the host variable whose value is sent there (token = "$FOO"), the variable name is added as a continuation line under token — never its value.
See [gitlab] url in a project config.
glci config show#
Same as glci config – accepts the same --gitlab and --network flags.
glci config init#
Scaffold a starter .glciconfig.toml at the root of the current repository (in the current directory outside a repository), whichever subdirectory you run it from. Errors, naming the file, if a project config is already found between the current directory and the repository root.
glci config edit#
Open the project config in $EDITOR (falls back to $VISUAL). If no project config exists, it first creates the default one at the repository root, as glci run would. With GLCI_NO_DEFAULT_CONFIG=1, or outside a repository, it creates nothing and opens $EDITOR on the path the file belongs at instead. With no editor set it fails before creating anything.
Unlike every other command, this one does not refuse to run on a project config that fails to parse — it is the command you use to repair one. It only ever opens .glciconfig.toml, never the global ~/.glci/config.toml; edit that one directly.
glci system#
glci system df#
Show disk usage of this GLCI_HOME’s glci resources: pipeline history, the bare repo cache, the remote include cache (~/.glci/cache/includes), registry CA certs, the daemon log, and its containers, networks and volumes on the container engine. Those are selected exactly as plain prune selects them: they carry this GLCI_HOME’s glci.home label (resources created before glci labelled them are not counted), and the daemon-lifetime ones prune always leaves - the mock server and shared runner containers, and the CI cache, registry and shared config volumes - are not in the counts. The CI cache and registry volumes, which prune --all removes, are listed on rows of their own. The container count says how many are running; prune leaves those in place. A listing the engine does not answer shows as (not reachable).
glci system prune#
Remove this GLCI_HOME’s unused containers, networks, volumes and caches.
Without --all, it removes this GLCI_HOME’s stopped glci containers, unused glci networks and orphaned glci volumes, the bare repo cache (~/.glci/bare-repos), the remote include cache (~/.glci/cache/includes) and the daemon log. Both caches refill on demand.
| Flag | Description |
|---|---|
-a, --all | Also remove registry data, pipeline history and the CI cache volume |
--force | Skip confirmation prompt |
Prune never removes anything a running daemon or its pipelines use. With or without --all:
- A running daemon is stopped first and restarted after, so no pipeline can prepare a repository, take a bare-cache lock or start a container while the prune runs. Whether a daemon runs is decided under the daemon-spawn lock, so a daemon that a concurrent
glci runstarts while the prune waits for that lock is the one stopped (or refused). Nothing can start a new daemon until the prune is done. The confirmation prompt says when the daemon will be stopped. A pipeline that aglci runsubmits to the idle daemon in the moment between the check and the stop is cancelled by the stop. - It refuses, before the prompt and without removing anything (
nothing pruned:), when the running daemon is running or preparing a pipeline (the daemon is running N pipeline(s); wait for them, or find them withglci psandglci stop <id>each), does not answer its health check (the daemon (pid N) is not responding), drives another engine endpoint than this shell selects (the prune would clean this shell’s endpoint and restart the daemon onto it; run it from the shell that started the daemon), answers on this shell’s socket with another PID than the PID file names, or cannot be reached from this shell, since the restart would fail and leave every shell it serves without one (see Troubleshooting). It checks again under the lock, right before the stop. - A daemon that does not exit within 30 seconds of
SIGTERMfails the command withnothing pruned: stopping daemon:, and everything is left in place; stop it withglci daemon stop --forceand run the prune again. A failed restart is reported asrestarting daemon:. - Engine resources are matched by this
GLCI_HOME’s label (glci.home=<hash>, which glci puts on its containers, networks and volumes, and has gitlab-runner put on the job containers it creates). AnotherGLCI_HOME’s containers, networks and volumes on the same engine are never touched, nor are glci resources created by a release that did not label them yet. Only stopped containers are removed (with their anonymous volumes): a running one - such as a job container left byglci daemon stop --force- is left and reported (Left N running container(s) in place), and so, while one of this home’s runner containers still runs, are its stopped job containers, which gitlab-runner reuses from one stage to the next. Networks, volumes and containers the engine refuses to remove are reported with the engine’s reason. gitlab-runner’s short-lived helper containers (service health checks, cache permission setup) and its per-build networks are not labelled and never pruned; neither are resources created by earlier releases - list them withglci system engine containers|networks|volumesand remove them by hand once. An engine that cannot be reached fails the command withcontainer(s) not fully pruned:(and the same for networks and volumes).
prune works on the engine endpoint a daemon started now would use (the [docker] host from the config when set) - the running daemon’s, as it refuses on drift. --all removes the registry and CI cache volumes of this GLCI_HOME (glci-registry-<hash>, glci-registry-ca-<hash>, glci-cache-<hash>), along with every container still mounting them, running ones included, and leaves another GLCI_HOME’s volumes alone - unlike registry clean, it also removes a mock server left by glci daemon stop --force. A persistent volume that is not removed fails the command with persistent volumes not fully pruned:.
glci system cache clean#
Wipe the CI cache volume of this GLCI_HOME (glci-cache-<hash>) and the containers that mount it; another GLCI_HOME’s cache on the same engine is left alone. A running daemon is stopped first to release the volume and restarted after. As with system prune --all, the command refuses (cache not cleared:) without stopping anything when the running daemon cannot be reached from this shell, and fails with stopping daemon: if the daemon does not exit within 30 seconds. Without a running daemon, it removes the volume on the engine endpoint a daemon started now would use (the [docker] host from the config when set); an engine it cannot reach fails it with cache not cleared: rather than report no cache.
glci system logs info#
Show log file path and size.
glci system logs clean#
Remove the log file.
glci system engine containers|networks|volumes#
Inspect glci-managed container-engine resources (Docker or Podman). Aliased as glci system docker for backward compatibility.
glci daemon#
glci daemon status#
Show PID, uptime, active pipelines, version (release and commit, in the same form as glci version), the container engine, and the endpoint it is driving:
engine: docker
engine endpoint: tcp://build-box:2375 (from env)
The engine endpoint line names where the endpoint was resolved from — config, env, connection, context, or default — including the context/connection name when one was in effect (from context "arch"), and shows (engine default) when no endpoint was resolved and the engine CLI uses its own. Any password in the endpoint’s userinfo is redacted. A daemon built before this field existed reports (unknown — daemon predates this field) rather than a guess.
When this shell’s daemon socket path is too long to use, a running daemon is reported as the running daemon cannot be reached from this shell (exit non-zero), not as daemon not responding - the daemon is fine, so do not glci daemon stop --force it. With no daemon running, daemon is not running is followed by a warning naming the limit. See Troubleshooting.
glci daemon start#
Start the daemon manually.
glci daemon stop#
Graceful shutdown. Sends the daemon SIGTERM, which cancels its running pipelines and stops its containers, then waits up to 30 seconds for it to exit. If it has not exited by then, the command fails with did not exit within 30s; use --force to kill. A daemon that has not begun serving yet (for example while it resumes pipelines left by a crash) exits without serving. One that has not bound its socket and written its PID file yet cannot be found, so glci daemon stop reports daemon is not running and leaves it to start.
| Flag | Description |
|---|---|
--force | Send SIGKILL immediately. This skips the shutdown, so containers keep running and the next daemon resumes or removes them |
glci daemon logs#
Show daemon log output.
| Flag | Description |
|---|---|
-F, --follow | Follow log output in real time (like tail -f) |
-n, --lines | Number of lines to show (default 50, 0 for all) |
glci skill#
glci skill install#
Download and install the glci skill file for AI coding agents. When run interactively, prompts for agent and scope selection. Supports: Claude Code, Cursor, Windsurf, VS Code (Copilot), GitLab Duo, Codex (OpenAI), OpenCode.
The file is fetched at the commit the binary was built from (with any -dirty suffix trimmed), or at its release tag when only the release is known (go install …@vX.Y.Z). It falls back to main when that ref is unavailable, for example for an unpushed local commit, or when the binary knows neither. The ref used is printed while fetching.
| Flag | Description |
|---|---|
--agent | Target agent(s): claude-code, cursor, windsurf, vscode, gitlab-duo, codex, opencode (comma-separated) |
--scope | Installation scope: project or global |
glci doctor#
Run health checks: project config, container engine, glci’s own images, daemon, token, CI config, git, history permissions, and last the job network. Each check reports pass (✓), fail (✗), or warning (~) with details. Remediation and provenance are printed as an unsymboled → ... continuation line underneath the row they belong to, so a single broken engine does not read as “1 failure + 1 warning”.
The CI config row parses the CI file as glci lint does, include: rules included, so a top-level include rule GitLab refuses fails it (does not parse: parsing CI config: resolving includes: include:rule ...). When no -p preset sets a context, a hint under the row names the one the include rules were decided in (assuming branch=main (checked-out branch)), in --json too.
Color is applied only when stderr is an interactive terminal and NO_COLOR is unset (its presence is the signal, whatever the value) — doctor output is routinely captured into logs and CI job traces, where escape codes are noise.
| Flag | Description |
|---|---|
--json | Output the report as JSON on stdout, suppressing the text report |
--no-job-network | Skip the job-network check, which starts containers on the Docker host |
--mask KEY | Mark this variable secret, so its value is redacted from the CI config row and expand_vars refuses it (repeatable) |
--unmask | Show redacted include: paths in clear text (display only; expand_vars still refuses masked variables) |
--env KEY=VALUE | Set variable for $VAR expansion in include: entries, include: rules and the expand_vars input function (repeatable) |
--env-file | Load variables for $VAR expansion in include: entries, include: rules and the expand_vars input function from env file |
--input KEY=VALUE | Pipeline input (repeatable) |
--inputs-file | Load inputs from YAML file |
-p, --pipeline | Named pipeline preset from .glciconfig.toml (its env and masked, the env of the [contexts] entry its context names (the preset’s own env winning a shared key), and its context for the predefined variables, are used for $VAR expansion in include: entries and expand_vars, and to decide include: rules) |
The glci images row lists the five images glci pulls on its own behalf — the sidecar, the runner, the helper, the utility image and binfmt — each with the reference it resolved to and the config key it came from, plus the pull-through cache upstreams when [images] upstreams is set. With nothing configured it collapses to one line naming the count. A helper shown as (unset) — chosen by gitlab-runner is the normal default: glci only names a helper under [images] registry. The row warns, never fails, when a value in [images] is one glci can tell is wrong; it exists so a wrong prefix reads as a diagnosis instead of a pull failure mid-run. --json carries the same data as images and upstreams on that check. See The images glci pulls for itself.
The row shows the reference glci prefers. For the sidecar image specifically, actual resolution still walks commit tag → release tag → glci:local → :latest unless [images] glci pins it outright — see How the image is resolved. An [images] value that glci run would refuse outright also fails the Global config row (see below).
The History permissions row stats the stored pipeline history under ~/.glci/projects (or $GLCI_HOME/projects) and warns when any of it is readable by other accounts on the machine, naming the first such path. Job traces carry whatever a job printed, secrets included. glci tightens a project’s history the first time it opens it after an upgrade, so this row only ever reports the projects you have not run since - its remedy is chmod -R go-rwx on the history root, or simply running each project once. The rest of ~/.glci is daemon state, not job output, and is not checked. See Pipeline history.
The Job network row verifies the path every job container takes to the mock server: a container on a network glci does not control, reaching a port published on the Docker host through an extra_hosts entry. It starts a throwaway responder container on the Docker host, published on a port the engine picks, then fetches it from a second container on a fresh network — the position FF_NETWORK_PER_BUILD puts every job in — at the address jobs really get (see [network] host_gateway):
| Address jobs get | What the probe does | Row on success |
|---|---|---|
"auto" on any daemon but Docker Desktop WSL2 — a glci network’s gateway | creates a second throwaway network and has the client reach that network’s gateway from the first | containers reach the host at a glci network's gateway (<ip>) |
"auto" on Docker Desktop WSL2, or host_gateway = "host-gateway" (on Podman and Windows-container daemons, which cannot take it, the gateway row applies) | maps the probe host to Docker’s sentinel | containers reach the host via Docker's host-gateway |
| a pinned IP | maps the probe host to that address | containers reach the host at <ip> |
Podman takes the gateway path like any other non-WSL2 daemon. The probe creates up to two containers and two throwaway networks (glci-net-probe-*), all removed when it finishes; in gateway mode the second network takes its subnet from [network] bus_subnet, as glci’s bus network does, so the gateway tested is in the range jobs really get. The responder is always a container, even when the daemon looks local: an ambient DOCKER_HOST or an active docker context can point the engine at another machine without appearing in any glci config, and a responder on the wrong host would fail the check on a healthy setup. The responder exits on its own after 150 seconds, so even a glci doctor that is killed outright cannot leave it serving. It is the one check that starts containers of its own, and it exists because the failure it catches is otherwise unreadable: packets to a host address the container cannot reach are dropped rather than refused, so every job sits at Getting source from Git repository for the full ~130s TCP timeout and then fails on a git error that mentions nothing about networking. A host glci could not measure at all (no engine, no utility image, no free port, or the whole probe exceeding its 90-second budget — usually a first-time image pull, so it is worth re-running once the image is cached) reports not checked — ... as a warning rather than calling the environment broken. An interrupted check is the exception: Ctrl-C fails the row (exit 1, not 130), because glci has no verdict and must not let a gated glci run proceed as if it had one. The failure hints depend on the address tested: for a network’s gateway they say to rule out a host firewall first, then suggest [network] host_gateway = "host-gateway" with its cost (on a native Linux daemon that is docker0, so docker login $CI_REGISTRY inside docker:dind is refused); for the sentinel chosen on Docker Desktop WSL2 they ask for an address to pin that is not in 172.17.0.0/16, which docker:dind uses for its own bridge; for a forced "host-gateway" or a pinned address they say to remove it. All of them mention a host firewall, which looks the same, and link to the full diagnosis. --no-job-network skips it, reporting ~ Job network not checked — --no-job-network so a --json consumer can tell a skipped check from a glci version that had none.
--json gives {"ok": bool, "checks": [{"name", "status", "detail", "hints"}]}, where
status is pass, fail or warn and ok mirrors the exit code — so
glci doctor --json | jq -e .ok is a clean gate. See
Structured Output.
Exit status#
glci doctor prints the full report either way (or, with --json, the JSON document in place of it), then exits 1 if any check hard-failed and 0 otherwise — so glci doctor && glci run is meaningful in a script.
| Condition | Result |
|---|---|
| Container engine not reachable | ✗ fail — exit 1 |
| Podman API socket not reachable | ✗ fail — exit 1 |
| CI config file not found | ✗ fail — exit 1 |
| CI config does not parse | ✗ fail — exit 1 |
CI config parsed, but an extends:/!reference target was not found while an include was skipped for want of a token (what glci lint calls not fully verified) | ~ CI config: N jobs, M stages; not fully verified warn, one hint per target (at most ten) — exit 0 |
CI config not checked: refused before the file was read (an unknown -p preset, a preset whose context does not parse, a malformed --input) | ✗ CI config: not checked: <reason> fail — exit 1 |
Project .glciconfig.toml does not parse | ✗ Project config fail — exit 1 |
Global ~/.glci/config.toml does not parse | ✗ Global config fail — exit 1 |
Global config holds a value glci run refuses — a [network] host_gateway that is not an address, a [network] bus_subnet that is not a usable IPv4 range, a malformed [network.extra_hosts] entry, a [paths] container_* dir that is not a container path, or an invalid [images] value | ✗ Global config fail — exit 1 |
Not inside a git repository (no .git here or in any parent) | ✗ fail — exit 1 |
Containers cannot reach the Docker host (Job network) | ✗ fail — exit 1 |
| Job network check interrupted with Ctrl-C | ✗ Job network fail — exit 1 |
| Error checking daemon status | ✗ fail — exit 1 |
| Daemon socket path too long for this shell (with or without a daemon running) | ✗ fail — exit 1, with no glci daemon stop --force hint |
| Daemon not running | ~ warning — exit 0 |
| No GitLab token (or withheld) | ~ warning — exit 0 |
| Project config set global-only keys | ~ Project config warning — exit 0 |
| A config file sets a key that is no longer supported (Removed keys) | ~ Global config or ~ Project config warning, naming the file and the key — exit 0 |
[daemon] idle_timeout is not a duration of at least one minute | ~ Global config warning — the daemon uses the default 30m — exit 0 |
| Stored history readable by other accounts | ~ History permissions warning — exit 0 |
Engine config drift (daemon started before [docker] engine changed) | ~ Engine config warning — exit 0 |
| Job network could not be probed (engine down, utility image unavailable, no free port, 90-second budget exceeded) | ~ Job network warning — exit 0 |
A value glci cannot resolve fails the Global config row because glci run refuses to start a pipeline on it, and every key that can do that — the [network] section, the [paths] container_* dirs and [images] — is global-only, so nothing a repository’s .glciconfig.toml sets can fail this row. A key that only falls back — [daemon] idle_timeout, which reverts to 30m — warns instead.
A config glci cannot read is a failure rather than a warning, because it is not neutralized — every skip rule, preset and job override the user wrote is missing from the run that would follow. The rest of the warnings are deliberately not failures. The daemon starts automatically on first use, so “not running” is its normal resting state - unless this shell’s daemon socket path is too long to use, which fails the Daemon row whether or not a daemon is running (see Troubleshooting); a token is only needed for remote include: and private registries, and local pipelines run against the embedded mock server without one; dropped project keys are already neutralized, so the run ahead is safe; and a removed key is read by nothing, so it cannot change the run. Treating any of them as a failure would make every glci doctor && gate refuse to run on a perfectly working setup.
A config file that is not valid TOML is a hard failure, on a Project config or Global config row depending on which file it was, naming the file and the line. The remedy follows the file: → fix the reported line — glci config edit opens the file even while it is broken for the project one, → fix the reported line in <path> for the global one, since glci config edit only ever opens the project config. The GitLab token and CI config checks then report not checked — the glci config does not parse (see the config check) rather than repeating the same TOML error under a heading that blames the wrong file. The config check runs first so that this row precedes the engine row, whose advice (“set [docker] engine”) is about a file glci has just failed to read.
“CI config file not found” and “does not parse” are separate rows because the fixes differ — reporting a missing file as a YAML error sends you hunting through a file that is not there. The not-found case is decided by a stat of the top-level file, so a missing include: local: target still reports as a parse error rather than claiming .gitlab-ci.yml is absent, and it adds a → use -f to point at another file hint.
The Git repository row finds the repository the way git does, by walking up to the nearest .git. A subdirectory of a working tree passes, so glci doctor -f ../../.gitlab-ci.yml && glci run -f ../../.gitlab-ci.yml works as a gate from there. When the current directory is not the repository root, the row adds → repository root is <path>; without -f, glci looks for .gitlab-ci.yml in the current directory, because a bare glci run from a subdirectory does not find the root’s CI file. The row fails only when no .git exists in the current directory or any directory above it.
On macOS/Windows the Podman socket check cannot fail — it reports “cannot verify from host” as a warning, because the socket lives inside the Podman VM (see below). The same is true on Linux when the resolved Podman endpoint is not a local unix:// path: a remote socket cannot be dialed from here either.
“Error checking daemon status” is the failure case of the daemon check — glci could not tell whether a daemon is running (e.g. an unreadable ~/.glci/daemon.pid), which is a broken state rather than the normal “not running” one.
The container-engine check is engine-agnostic: it probes <engine> info (with a bounded timeout so a wedged socket cannot hang glci doctor) and reports the engine version. The active engine (labelled Docker or Podman) is taken from the running daemon when it is up, otherwise from your [docker] engine config.
When Podman is selected, the Docker-compatible API socket is checked separately, because podman info succeeds even when podman system service is not running:
- Linux — glci dials every candidate socket path (an explicit
CONTAINER_HOST, the rootless$XDG_RUNTIME_DIR/podman/podman.sock, and the rootful/run/podman/podman.sock) and reports whichever one is reachable, so a rootless setup is never pointed at a rootful path it doesn’t use. If none respond, it hints how to start the socket (systemctl --user enable --now podman.socketfor rootless,sudo systemctl enable --now podman.socketfor rootful). - Linux with a remote endpoint — when the resolved endpoint (
CONTAINER_HOST, else the defaultpodman system connection) isssh://ortcp://, the socket is on the far side and no local dial can reach it. Rather than fail a healthy remote Podman, the check reports “cannot verify from host” as a warning, exactly as it does on macOS. - macOS / Windows — the socket lives inside the Podman VM and cannot be reached from the host, so the check reports “cannot verify from host” and reminds you to start
podman machine/podman system service.
If Docker is the selected engine but is unreachable, the hint depends on what else is installed: with Podman present, doctor suggests setting [docker] engine = "podman" in ~/.glci/config.toml (and starting its API socket); otherwise it suggests starting Docker (Docker Desktop, colima start, or sudo systemctl start docker).
When a daemon is already running, the check also reports engine-config drift as a warning: the global [docker] engine was changed after the daemon started, so it is not yet in effect. Fix it with glci daemon stop — the daemon re-starts with the new engine on the next command.
Separately, if a project .glciconfig.toml sets any global-only key ([docker] engine/host/container_socket/privileged, the whole [network] / [network.extra_hosts] section, the whole [images] section, [runner] image, [paths] container_builds_dir/container_cache_dir/container_certs_dir, a per-runner engine/docker_host/docker_context/container_socket/tls_cert_path/tls_verify, a widening [token] rule, a config_template for a runner the global config already templates, [defaults] executor/image/dirty, or any [registry] or [daemon] key), those keys are dropped during the merge and named in a warning. Doctor reports them as a ~ Project config row, and suppresses the free-standing stderr line for the duration of the report so it cannot land between two rows and break the alignment.
Other commands print that line instead — glci: warning: .glciconfig.toml: ignoring ... — once per process. It comes from resolving GitLab info or starting a pipeline, so the commands that emit it are glci run, show, jobs, lint, and variables. glci config / glci config show prints it too, first, before any section — otherwise a stripped [docker] host would just have no section and a [runners.x] that set nothing else would vanish with no hint that anything was dropped. When a pipeline starts, the daemon writes the same text to ~/.glci/daemon.log, since it is the process that would have driven the endpoint. See Container-endpoint keys.
The daemon check reports the endpoint the running daemon is driving as Daemon endpoint, and warns when your shell selects a different one (a DOCKER_HOST/CONTAINER_HOST export, an edited [docker] host, or a selection you removed). Applying a new endpoint needs glci daemon stop — glci does not restart a shared daemon over a per-shell variable. When nothing explicit is selected the check says (from the engine's context — not compared), because verifying a context would cost a subprocess per command. It also surfaces the daemon’s endpoint security warning (e.g. a plaintext tcp:// endpoint) and fails the Daemon check outright when the process is alive but its socket does not answer.
glci version#
Show the CLI and daemon builds as <release> (commit <sha>), for example glci v0.9.0 (commit 0123…). The release is dev for a build that is not exactly a release tag, and the commit is shown as build <label> when only a packager’s label is known (see How the image is resolved for where both come from). Reports a [VERSION MISMATCH] warning if the CLI and daemon are different builds. When a daemon is running but this shell’s socket path is too long to dial it, the daemon line is replaced by a warning saying so.
Global flags#
These flags are available on all commands. Every way of starting a run sends them the same way: glci run, the TUI (glci --token ... --project ..., then a run from the run form or the r/R keys) and glci retry all use the same --token, --gitlab-url and --project, and fetch the same --secrets scopes (all unless glci run --secrets says otherwise, or a retried or re-run pipeline recorded another).
| Flag | Description |
|---|---|
-f, --file | Path to CI config file (default “.gitlab-ci.yml”) |
--token | GitLab private token (or set GITLAB_TOKEN env var) |
--gitlab-url | GitLab instance URL (or set GITLAB_URL env var) |
--project | GitLab project path (e.g. group/subgroup/project) |