{
  "slug": "glab-adds-a-variable-import-command-a14cabf01804",
  "title": "glab adds a variable import command",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-21T16:03:53.978Z",
  "announced_at": "2026-07-21T16:03:53.978Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When importing project or group CI/CD variables, provide a JSON array in the shape emitted by `glab variable export --output json`; use `--input-file` for a file or pipe JSON on standard input. By default, import targets the current project and errors if a variable already exists; use `--skip-existing` to continue past existing variables.",
    "examples": [
      "glab variable import --input-file variables.json",
      "glab variable import --input-file variables.json --skip-existing",
      "glab variable export --group <group> | glab variable import --group <group>"
    ],
    "gotchas": [
      "Version: v1.109.0",
      "--input-file <file>: Read JSON from this file instead of standard input.",
      "--group <group>: Select a group or subgroup; ignored if a repository argument is set.",
      "--repo <repository>: Select another repository using OWNER/REPO, GROUP/NAMESPACE/REPO, a full URL, or a Git URL.",
      "--skip-existing: Skip existing variables instead of stopping with an error.",
      "Prerequisite: Provide a JSON array of variable objects in the same shape as `glab variable export --output json`; input may come from standard input or `--input-file`.",
      "Prerequisite: Install glab and authenticate with GitLab; the CLI getting-started docs list these setup steps."
    ]
  },
  "why_it_matters": "Import variables for a repository using glab.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.109.0",
    "https://docs.gitlab.com/cli/variable/import/",
    "https://gitlab.com/gitlab-org/cli/"
  ],
  "rank": 0.97033,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-60b39813dd66abcd-3:rescue",
    "evidence_hash": "c9083248a75d333b82fbbf6d9bc2493519515c429e8ed6849ea1177e200edeec"
  },
  "review": {
    "draft_hash": "c910c155db5c64bc5aca983806a246dc3cf73c96e43c1f03ad7260925443ad8e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
