> For the complete documentation index, see [llms.txt](https://docs-lunar.earthly.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-lunar.earthly.dev/release-notes/cli/2026.md). Agents can also search and read this documentation through its [MCP server](https://docs-lunar.earthly.dev/~gitbook/mcp).

# 2026

## v5.2.0 (2026-11-24) <a href="#cli-v5-2-0" id="cli-v5-2-0"></a>

### Security

* The `lunar` CLI and CI Tracer now build on Go 1.27.4, which fixes the high-severity Go standard-library vulnerability CVE-2026-97054.

### Features

* `lunar ci-tracer run` in a GitLab job without `LUNAR_HUB_TOKEN` now authenticates with the job's `CI_JOB_TOKEN` and runs the job untraced when the Hub does not serve its project, or is unreachable unless `LUNAR_STRICT_MODE=true`. See [GitLab CI support for the CI Tracer](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-gitlab-ci-support).

### Improvements

* A Hub call from a `lunar` command or the CI Tracer that the Hub accepts but never answers now fails after 10 minutes instead of hanging; long operations such as `lunar collector run` and `lunar sql refresh` have no limit.
* In a GitLab CI merge-request pipeline, `lunar policy ok-pr` and `lunar policy ok-release` now detect the merge request from `CI_MERGE_REQUEST_IID`, so `--pr` no longer has to be passed; an explicit `--pr` still takes precedence.
* When the Hub is restarting or briefly overloaded, the CI Tracer now retries fetching its configuration, downloading the configuration bundle, and looking up the commit's pinned Lunar configuration version, and read-only commands such as `lunar policy bypass-ls` retry too.
* `lunar hub pull` now waits for another configuration pull in progress to finish instead of giving up, and stops trying after the new `--timeout`, which defaults to `4h`.
* `lunar collect --component … --sha …` now retries a transient Hub failure up to five times without storing the data twice, when the Hub is a release later than 5.1.0; older Hubs still get one attempt.

### Bug fixes

* The CI Tracer now retries sending a collector's results to the Hub after a transient failure for up to 30 seconds, instead of dropping the results after one failed attempt.
* In a GitLab job authenticated with its job token, `lunar` commands run by a long-running collector are no longer refused once its Hub session expires; containerized collectors now receive `CI_JOB_TOKEN` and `CI_SERVER_HOST` to renew it. See [GitLab CI support for the CI Tracer](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-gitlab-ci-support).
* A CI Tracer collector whose log upload fails now still reports its results to the Hub, with a warning, instead of discarding them.
* `lunar hub pull` no longer fails when its connection to Lunar Hub breaks mid-pull: it reconnects, reports how the pull ended, and still reruns code collectors when `--rerun-code-collectors` is set.
* `lunar hub pull` no longer prints the command's full usage text when it fails at runtime, so the actual error is no longer buried.

## v5.1.0 (2026-11-18) <a href="#cli-v5-1-0" id="cli-v5-1-0"></a>

### Features

* `lunar ci-tracer run --ci-type gitlab` (or with `LUNAR_CI_TYPE=gitlab`), run without a command or `--pid`, now starts the CI Tracer in the background, attached to the calling GitLab job shell, and returns once tracing is ready. See [GitLab CI support for the CI Tracer](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-gitlab-ci-support).

### Improvements

* In GitLab CI, `lunar policy ok-pr` and `ok-release` now detect the calling pipeline's ID from `CI_PIPELINE_ID` when `--workflow-id` is not given, so they no longer print the missing workflow ID warning.

### Bug fixes

* A GitLab CI job traced with `lunar ci-tracer run --ci-type gitlab` no longer occasionally freezes right after the CI Tracer reports ready, which left the job's next script line unrun until the job timed out.

## v5.0.0 (2026-11-11) <a href="#cli-v5-0-0" id="cli-v5-0-0"></a>

### Breaking changes

* `lunar policy bypass-pr` and `lunar policy bypass-release` for a component now fail unless `--for` or an RFC3339 `--expires-at` deadline is given, instead of defaulting to the configured `bypass.max_duration`; the two flags cannot be combined. See [Break-glass gate bypasses](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-break-glass-gate-bypasses).
* `lunar policy bypass-pr` and `bypass-release` no longer scope a bypass to the commit in `GITHUB_SHA` or `CI_COMMIT_SHA`; pass `--sha` explicitly when a bypass should cover only one commit.

### Migrations and upgrade notes

* `lunar policy bypass-rm` now looks up a bypass by ID before revoking it and fails with `Unimplemented` against an older Hub, so upgrade the Hub before the CLI.

### Security

* The `lunar` CLI and CI Tracer now build with `github.com/klauspost/compress` v1.20.3 and `golang.org/x/net` v0.62.0, which fix the high-severity GO-2026-6865 and GO-2026-6860.

### Features

* `lunar policy bypass-pr` and `bypass-release` accept `--on` with a required `--expires-at` to create a selector bypass, which `--validate-only` checks without creating; `bypass-pr --refresh` updates existing checks, and `lunar policy bypass-ls --all --json` lists bypasses across repositories. See [Break-glass gate bypasses](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-break-glass-gate-bypasses).

### Improvements

* `lunar policy bypass-pr` and `lunar policy bypass-release` now retry a transient Hub failure, within 30 seconds, without creating a duplicate bypass or extending its expiry, when the Hub reports a version newer than 4.15.0.

### Bug fixes

* The CI Tracer no longer logs a `heartbeat request failed` error with status 403 every 30 seconds when its log-shipping credential lacks access to a separate heartbeat index.
* `lunar policy ok-release` and `ok-pr` with `--fail-open` covering `unreachable` now fail open for CI jobs authenticating with an OIDC token when the Hub cannot be reached, instead of exiting 1 while exchanging the token.
* `lunar policy ok-release` and `ok-pr` in a CI job authenticating with an OIDC token now stop at their `--timeout` when the Hub accepts the token exchange but never answers, instead of hanging indefinitely and ignoring `--fail-open`.

## v4.15.0 (2026-11-06) <a href="#cli-v4-15-0" id="cli-v4-15-0"></a>

### Improvements

* `lunar hub get-logs` now adds each Hub pod's retained local metrics files to the diagnostic bundle under `metrics/<pod>/local-metrics.tar`; this needs `pods/exec` permission, and a collection failure is noted in the bundle without stopping other diagnostics.

## v4.14.0 (2026-11-03) <a href="#cli-v4-14-0" id="cli-v4-14-0"></a>

### Improvements

* The `ghcr.io/earthly/lunar-cli` container image is now published for `linux/arm64` as well as `linux/amd64` under each tag, so arm64 CI runners can use it; mirror every platform, for example with `skopeo copy --all`.

## v4.13.0 (2026-10-29) <a href="#cli-v4-13-0" id="cli-v4-13-0"></a>

### Security

* The `lunar` CLI and CI Tracer now build on Go 1.27.3, which fixes the high-severity Go standard-library advisory CVE-2026-111943.
* The `lunar` binary no longer includes the `github.com/docker/docker` module, so vulnerability scanners no longer report CVE-2026-41567 or CVE-2026-42306 against it.

### Features

* Each CLI release is now also published as a signed linux/amd64 container image, `ghcr.io/earthly/lunar-cli`, tagged `vX.Y.Z` with floating `vX.Y`, `vX`, and `latest`, so a CI job can use it as its job image instead of downloading the binary.
* New `lunar hub merge-gate disarm` holds a GitHub organization's merge gate off, or every organization's when no `--org` is given, with no expiry until the next `on`, as the first step of removing Lunar; GitLab is unaffected.
* `lunar hub merge-gate status`, `off`, and `on` now accept a GitHub organization or `owner/repo` through `--org`, an alias of `--group`, and `--host` to pick a forge host; `on --org` arms an organization, and `status` reports each organization's ruleset.
* `lunar hub merge-gate off --offline` switches the merge gate off directly on GitHub or GitLab with your own token (`GH_TOKEN`, `GITHUB_TOKEN`, `GITLAB_TOKEN`, or the `gh` login) while the Hub is down; it requires `--org` or `--group` and `--reason`.
* New `lunar hub merge-gate ruleset <org>` prints a GitHub organization's merge-gate ruleset as JSON, with the `gh api` call that creates it and the calls that remove it; `--app-id` pins the required check to Lunar's GitHub App.
* `lunar hub merge-gate off --soft` keeps the GitLab `Earthly Lunar` check registered and answers it passed on open and new merge requests while policies keep evaluating; `--hard`, the default, removes the check.

### Improvements

* `lunar hub merge-gate status` now shows `never` in the EXPIRES column for an off with no expiry, and `lunar hub merge-gate off` says it stands "until switched back on" when no expiry was recorded.

### Bug fixes

* Collector, policy, and cataloger images pulled from a private registry with `LUNAR_DOCKER_REGISTRY_USER` and `LUNAR_DOCKER_REGISTRY_PASS` now authenticate for every username and password, where some combinations were sent without credentials and failed with `no basic auth credentials`.
* The CI Tracer no longer logs a false `failed to handle event: ... context canceled` error when the CI runner shuts down, or an `unexpected empty syscall address` warning when a traced command starts.

## v4.12.0 (2026-10-20) <a href="#cli-v4-12-0" id="cli-v4-12-0"></a>

### Security

* The `lunar` CLI and CI Tracer now build on Go 1.27.2, which fixes the critical Go standard-library advisories CVE-2026-78663, GO-2026-6612, and GO-2026-6604.

### Features

* New `lunar github-app add`, `list`, `remove`, and `get-token` commands register GitHub Apps with the Hub and print installation tokens minted from them, with `--owner` and `--host` defaulting to the component's inside a collector or cataloger.
* `lunar hub pull` accepts a repeatable `--cancel <config-commit-sha>` to cancel that Lunar configuration version, and an `--actor <name>` that is required with the service token, and fails if the Hub does not confirm the cancel.
* `lunar webhooks update <subscription-id>` adds, removes, or replaces a subscription's events with `--add-event`, `--remove-event`, or `--event`, sets or drops its filter with `--filter`, and sets `--description`; it requires `hub.operate`. See [Outbound webhooks](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-outbound-webhooks).

## v4.11.0 (2026-10-13) <a href="#cli-v4-11-0" id="cli-v4-11-0"></a>

### Security

* The `lunar` CLI and CI Tracer now build with `golang.org/x/net` v0.60.0, which fixes the high-severity CVE-2026-78669.

### Features

* The new `lunar webhooks` command manages outbound webhook subscriptions through `events`, `subscribe`, `filter-test`, `ls`, `deliveries`, `delivery`, `redeliver`, `ping`, `resume`, and `unsubscribe`, and its listing and inspection subcommands accept `--output-json`. See [Outbound webhooks](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-outbound-webhooks).
* `lunar webhooks deliveries` lists outbound webhook deliveries newest first, with each one's subscription, event, status, attempt count and last attempt's result, filtered by `--subscription`, `--event` and `--status`, capped by `--limit`, and available as `--output-json`. See [Outbound webhooks](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-outbound-webhooks).

### Bug fixes

* `lunar cataloger dev --component <component>` now sets `LUNAR_COMPONENT_ID` for a `component-repo` or `component-cron` cataloger even when the Lunar configuration does not declare that component, matching how the Hub runs it.

## v4.10.0 (2026-10-09) <a href="#cli-v4-10-0" id="cli-v4-10-0"></a>

### Breaking changes

* `lunar hub pull --dry-run` now checks through the Hub that every script image exists, failing on a missing image, an invalid reference, an unverifiable image, or no configured Hub; set `LUNAR_HUB_HOST` and `LUNAR_HUB_TOKEN`, or pass `--no-hub` to skip the check.

### Improvements

* `lunar policy bypass-release`, `bypass-pr`, `bypass-ls`, and `bypass-rm` now print the actor of a bypass created by a CI job as `<actor> (CI identity, authorized via OIDC)` instead of `(CI identity; role not verified)`. See [CI job identity for GitHub Actions and GitLab CI](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-ci-job-identity).

### Bug fixes

* `lunar cataloger get-json` now accepts catalogs up to 64 MiB instead of 16 MiB from an upgraded Hub; a `lunar` binary pinned in a plugin image keeps the old limit until the image is rebuilt.

## v4.9.0 (2026-10-06) <a href="#cli-v4-9-0" id="cli-v4-9-0"></a>

### Features

* `lunar setup bootstrap` now takes `--ui-oauth-app-secret <file>` to deposit the dashboard sign-in application's secret, alone or with other credentials; re-running it rotates the secret. See [Signing in to the dashboards with your Git platform account](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-dashboard-sign-in-through-the-hub).
* The CI Tracer now honors `github_action_pattern` on step hooks and gives collectors `LUNAR_CI_GITHUB_ACTION`, such as `actions/checkout@v4`; older Tracers fire such hooks on every step. See [step hooks matched by GitHub Action](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-10-06).

### Bug fixes

* The CI Tracer now sends each collection's component by name, so a Hub that has not yet cataloged the job's Lunar configuration version records it instead of rejecting it. See [2026-10-06](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-10-06).
* Pressing Ctrl+C just as `lunar secret set` starts its hidden-input prompt can no longer leave the terminal with echo turned off.
* When the CI Tracer launches the runner, a traced process crashing no longer makes it stop tracing with `failed to trace command: … operation not permitted`, which previously left later commands on that runner failing until it restarted.
* The CI Tracer no longer crashes traced multithreaded programs that apply their own seccomp sandbox to all their threads, such as Firefox content processes under Playwright, whose tests previously failed with `browser.newPage: Target crashed`.

## v4.8.0 (2026-10-01) <a href="#cli-v4-8-0" id="cli-v4-8-0"></a>

### Bug fixes

* `lunar cataloger run` no longer prints `exit_code=0` beside the error for a failed cataloger run whose container never reported an exit code, such as a run the Hub abandoned. See [2026-10-01](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-10-01).

## v4.7.0 (2026-09-29) <a href="#cli-v4-7-0" id="cli-v4-7-0"></a>

### Breaking changes

#### Step hook patterns match the step id <a href="#cli-step-hook-patterns-match-step-id" id="cli-step-hook-patterns-match-step-id"></a>

The `pattern` of a `ci-before-step` or `ci-after-step` collector hook now matches the step's `id:` in the GitHub Actions workflow instead of its display name. A step without an `id:` is matched as an empty string, so the default `.*` still fires on every step and `.+` targets only steps that declare an `id:`. A pattern written against a step name silently stops matching: give the steps it targets an `id:` and match that instead.

Collectors no longer receive `LUNAR_CI_STEP_NAME`, `LUNAR_CI_STEP_RUN`, or `LUNAR_CI_STEP_USES`. `LUNAR_CI_STEP_ID` is now set on GitHub Actions for steps that declare an `id:`.

* `lunar sql refresh` drops `--full` and `--overlap`: refreshing `checks`, `components`, `component_deltas`, or `prs` now requires `--component`, `--policy`/`--check`, or `--all`, and `--type` limits which tables are refreshed.

### Migrations and upgrade notes

* CI jobs on any branch now collect for a component without a `branch:` when the Hub supplies no default branch, as with `LUNAR_CATALOG_FETCH_TIMEOUT=0` or before the Hub syncs the repository, instead of the CI Tracer asking GitHub.
* `LUNAR_COMPONENT_INFER` now reads changed files from the job's checkout with `git`, using the credentials `actions/checkout` persists by default; steps before checkout, and runs without a commit range such as tags, fall back to the working directory.

### Features

* The new `lunar hub merge-gate status`, `off`, and `on` commands show and switch the GitLab merge gate for every project or one `--group`; `off` and `on` only preview unless given `--yes`, and `off` requires `--reason`.

### Improvements

* The CI Tracer no longer calls the GitHub API, whose rate limit busy repositories exhausted, leaving jobs untraced and their collectors skipped; `LUNAR_GITHUB_TOKEN` is no longer needed and is ignored if set.
* The CI Tracer now reports what started its run — `GITHUB_EVENT_NAME` or `BUILDKITE_SOURCE` — so a `workflow_run`, `schedule`, `issue_comment`, or Buildkite `trigger_job` run never moves a commit onto the latest Lunar configuration.
* `lunar hub merge-gate on` now previews and reports whether it retires a scope's own off, pins the scope on underneath a broader off, or both, naming that off, and `lunar hub merge-gate status` lists a pin as `on`.

### Bug fixes

* The CI Tracer no longer fails to run collectors when a collector or policy in the Lunar configuration has an `on:` list of 12 or more tags, and its expansion errors now name the offending script.
* The CI Tracer no longer stops tracing mid-job with `error re-attaching to tree` when a child process exits while the tracer re-attaches to the process tree; previously the rest of the job went untraced.

## v4.6.0 (2026-09-28) <a href="#cli-v4-6-0" id="cli-v4-6-0"></a>

### Breaking changes

* `lunar collector run` without a component name now fails unless `--all` is passed, and `--all` cannot be combined with a component name; add `--all` to scripts that rerun collectors on every component.

### Improvements

* The CI Tracer now runs a commit's collectors from the Lunar configuration version the commit was first matched with, instead of whichever version is current when the job starts. See [the related Hub changes](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-09-25).
* A CI job at a commit several pull requests share now collects under its own pull request's configuration version; older CI Tracer versions fall back to the branch's version.
* `lunar collector run` now prints warnings from the Hub on stderr, for example when a commit stays on an older Lunar configuration version and which collectors ran or were skipped, so `--output-json` output keeps its shape.
* `lunar hub get-logs --tail -1` now captures each Hub container's whole log in the diagnostic bundle; previously any value of zero or below fell back to the 1000-line default.
* CI collectors in a GitHub Actions run started by an `on: workflow_run` trigger now receive `LUNAR_CI_PIPELINE_TRIGGERED_BY_RUN_ID`, the ID of the run that started it.

## v4.4.0 (2026-09-24) <a href="#cli-v4-4-0" id="cli-v4-4-0"></a>

### Improvements

* The CI Tracer now logs its per-command progress lines at debug, not info, so at the default `LUNAR_LOG_LEVEL` its log volume stays proportional to jobs and steps.

### Bug fixes

* When the CI Tracer cannot describe a CI step, for example because the workflow run cannot be read from GitHub, it now skips just that step, instead of restarting the job at step 1 and re-running its `ci-before-job` collectors.

## v4.3.0 (2026-09-22) <a href="#cli-v4-3-0" id="cli-v4-3-0"></a>

### Features

* `lunar secret set` accepts a new `--file <path>` flag that reads the secret value from a file, which is the route for multi-line material such as a PEM key or a JSON service-account blob that the single-line terminal prompt cannot take. A trailing newline in the file is dropped, and passing `--file` together with a positional value is rejected.

### Improvements

* `lunar policy bypass-ls` now describes a bypass created by the configuration repository's own pipeline as `(CI job of the configuration repository <repository>)`, instead of printing the row's `ci@<repository>` ledger value as if it were a verified forge role. Rows carrying a real verified role, and ordinary CI rows with none, are printed as before. See [Fleet-wide bypasses from the configuration repository's pipeline](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-09-22).
* `lunar policy bypass-release`, `lunar policy bypass-pr`, `lunar policy bypass-ls`, and `lunar policy bypass-rm` now print the actor of a bypass created by a CI job as `<actor> (CI identity; role not verified)` instead of `(unverified)`, so an actor taken from the forge-signed OIDC token is not read as a verified repository role nor as the free-form text accepted on the Hub service token. The `--sha` help on `lunar policy bypass-release` and `lunar policy bypass-pr` now states that a CI OIDC job must name the commit and so has to pass `--sha` alongside `--pr`, because naming `--pr` turns off the CLI's inference of the commit from `GITHUB_SHA` or `CI_COMMIT_SHA`, and the `--actor` help on the create and revoke commands says the Hub records and enforces the authenticated login for a user and the OIDC actor for a CI job. See [Gate bypasses from a CI job](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-09-22).
* `lunar hub permissions` now closes its table with a note that maintainers of the configuration repository hold every permission in it, and that the configuration repository's CI job on the configuration branch holds every permission the table marks as available to CI jobs, on any component — something the per-permission rows cannot express. The note follows the plain table, the `--verbose` listing, and `--defaults`, and `--output-json` reports the same thing as a `config_repo_admin_override` field; a Hub that does not apply the rule leaves both out, so the CLI never claims it of an older Hub. See [Configuration repository administrators](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-configuration-repository-administrators).
* `lunar hub pull --dry-run` now validates the panel files a configuration's `uiPanels` entries point at, so a panel can be checked before the configuration is merged. It applies the same checks a real pull does: the extension-point ID must be one Lunar knows, every `:name` token in a tab's SQL must be a parameter that extension point passes, each tab needs a unique name and a `table` or `markdown` type, a table tab's columns need unique `sqlId`s and a valid alignment, color, and link target, and a panel file may not exceed 64 KiB. A failure names the `uiPanels` entry, the file it points at, and the tab or column at fault, and exits non-zero; a parameter that no tab references is printed as a warning instead, since such a tab shows the same rows for every component or release. The IDs the dry run accepts are the ones the CLI itself ships with, so validate with a CLI no older than the Hub that will handle the pull. See [UI panels: SQL-backed dashboard tabs defined in your configuration](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-ui-panels).

### Bug fixes

* `lunar secret set <name>` with the value omitted now prompts for the value when stdin is a terminal and reads it with echo disabled, so the secret no longer appears on screen or in terminal scrollback, and Enter ends the entry. Previously the command printed nothing, echoed what was typed, and only returned on Ctrl+D, so it looked hung. Piped and redirected input is unchanged — it is still read to end-of-input, so multi-line values passed by a script keep working, with a trailing newline dropped as before.
* A stored login the Hub can no longer renew no longer blocks every command, including the two that fix it: `lunar login` and `lunar logout` now run without loading or renewing the stored login, so `lunar login` replaces the entry and `lunar logout` removes it with best-effort revocation — renewing the login first where it still can, since revoking on GitHub goes through the Hub on a live session. Every other command now treats a login the forge or the Hub refuses to renew — an expired or spent refresh token, a Hub that no longer has the OAuth app it was made with, a rotated session key, an unusable entry — as no credential at all, warning with the cause and what to do, so commands that need no credential keep working and the rest fail exactly as they would with nothing stored; the entry is kept until `lunar login` replaces it or `lunar logout` removes it. A forge or Hub that could not be reached, and a failure writing the stored login, stay errors naming the real cause, and `LUNAR_HUB_TOKEN` still takes precedence wherever it is set, including for `lunar login` and `lunar logout`. See [Signing in to Lunar as yourself](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-personal-sign-in).

## v4.0.0 (2026-09-15) <a href="#cli-v4-0-0" id="cli-v4-0-0"></a>

### Features

#### Signing in from the CLI: `lunar login`, `lunar logout`, and `lunar whoami` <a href="#cli-personal-sign-in-commands" id="cli-personal-sign-in-commands"></a>

`lunar login` signs in to the Hub with a GitHub or GitLab account. The CLI asks the Hub which forge OAuth apps it accepts, runs that forge's sign-in flow — a device code to confirm in the browser, or an authorization page with PKCE on a `127.0.0.1` callback, which can also be completed by pasting the redirect URL back on a headless machine — and stores the resulting Hub session and forge token in the OS keyring, or in a `0600` `~/.lunar/credentials.json` where there is no keyring. `lunar login --list` prints the forge, host, client id, flow, and scopes of every provider the Hub accepts, and `--forge` and `--host` pick one when the Hub accepts more than one.

Every later command uses the stored session automatically and renews both it and the forge token behind it five minutes before they expire; when renewal is no longer possible the command says so and tells you to run `lunar login` again. `LUNAR_HUB_TOKEN` still wins wherever it is set, so the service token and CI credentials keep working unchanged, and having no credential at all is not an error for commands that need none. `lunar whoami` reports who the Hub takes the current credential for — a signed-in person, a CI job, or the service token — with the forge, host, source, and session expiry. `lunar logout` forgets the stored login for the Hub and revokes the forge token where it can: at the instance on GitLab, through the Hub on GitHub when the operator configured the app's client secret, and otherwise by printing the page on which to revoke it by hand.

See [Signing in to Lunar as yourself](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-personal-sign-in).

* When `LUNAR_HUB_TOKEN` holds the OIDC token a GitHub Actions or GitLab CI job was issued — recognized by its asymmetric signature, which neither the Hub service token nor a Hub session has — the CLI now trades it once for a Hub session that lasts the job, uses that session for every Hub call, and passes it to the processes it starts, so the agent and scripts started by `lunar ci-tracer run` hold the session rather than a token the forge expires within minutes. An exchange the Hub refuses fails the command with an error naming the cause: a token whose audience or issuer the Hub does not accept, a Hub with no session key configured, or too many failed attempts from the caller. Against a Hub too old to support the exchange the CLI only warns and continues with the token as it was. Because the Hub vends a forge credential only to the service token, a job traced under a CI OIDC token must set `LUNAR_GITHUB_TOKEN` itself — `${{ github.token }}` on GitHub Actions — or the tracer runs with step attribution and `LUNAR_COMPONENT_INFER` disabled. See [CI job identity for GitHub Actions and GitLab CI](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-ci-job-identity).
* `lunar login` against a GitLab host runs the device authorization grant first, so signing in works from a machine with no browser of its own: the CLI prints a URL and a user code to complete anywhere. GitLab never advertises the endpoint in its OIDC discovery document, so Lunar uses `/oauth/authorize_device` when discovery omits it, and falls back to the authorization-code grant with PKCE on a loopback redirect only when the instance predates GitLab 17.9 or the OAuth application has its device authorization grant turned off — new GitLab applications have it off by default. A client id the instance refuses outright is reported instead of being retried through the fallback. The GitLab application still needs the `http://127.0.0.1/callback` redirect URI so the fallback works, and `lunar login --list` now reports the GitLab flow as `device when the app allows it, else authorization code (PKCE)`. See [Signing in to Lunar as yourself](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-personal-sign-in).
* `lunar hub permissions` prints the permission table the connected Hub applies: one row per permission with its scope, its `READ` or `WRITE` access, the GitHub and GitLab role it requires, and what a CI job may do with it (`no`, `own repo`, `own commit`, `cataloged repo`, `config repo, protected branch`, or `yes`), with `*` marking a role that the `authorization:` block of the installed Lunar configuration changed from its default. `--verbose` lists the Hub calls each permission governs, with the request fields the authorization checks read and that call's own CI value; `--all` adds the fixed `internal`, `authenticated`, and `public` permissions; `--output-json` prints the same table as JSON, naming the configuration version the overrides came from; and `--defaults` prints the table compiled into the CLI, which needs neither a Hub connection nor a credential. Reading the table from a Hub requires Lunar images 4.0.0 or later, which is where the Hub began serving it.
* `lunar hub pull --dry-run` now validates the configuration file the in-repo path on the URI names — `lunar hub pull github://acme-corp/lunar-repo/lunar-config.dev.yml@main --dry-run` loads that file plus its own `lunar-config.dev.d/` fragments — and a local argument may name the configuration file itself as well as a directory, so `lunar hub pull ./lunar-config.dev.yml --dry-run` checks a non-default entry point before it is merged; a path that names nothing, climbs out with `..`, is absolute, or resolves through a symlink outside the repository fails the validation instead of falling back to the root `lunar-config.yml`. See [Choosing which configuration file a Hub loads](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-configuration-entry-point).
* `lunar setup bootstrap` can now deposit a GitLab token that is not bound to a group: pass `--gitlab-token` without `--gitlab-group` and the token is deposited host-wide, for every group on the instance, instead of one top-level group. The new `--gitlab-host` names that instance and takes a bare hostname — lowercased, with no scheme, port, or path — defaulting to `gitlab.com`; it is rejected together with `--gitlab-group`, because a group deposit is keyed by the group alone. Group deposits are otherwise unchanged: the same flags deposit the token under the same per-group slot, and only the error text for a half-supplied pair changes, to `--gitlab-group requires --gitlab-token`. See [Instance-wide GitLab tokens and token pools](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-gitlab-host-wide-token-pools).
* `lunar sql credentials ls` lists the personal SQL API credentials the Hub has issued — login, forge, host, Postgres role, status (active, expired, revoked, or dropped), expiry, and last rotation — as a table, or as JSON with `--output-json`, and `lunar sql credentials revoke <login>` ends one person's SQL access by disabling their role and terminating its open sessions. Both commands talk to the Hub and are refused for a CI job credential. See [Per-person SQL API credentials](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-per-person-sql-api-credentials).
* The CI Tracer again accepts a GitHub token of its own, in `LUNAR_GITHUB_TOKEN`, for the two things it cannot read from the job's environment: step attribution, which reads the workflow definition and the actions it uses, and the changed files behind `LUNAR_COMPONENT_INFER`. Both only ever ask about the repository being built, so in GitHub Actions set the variable to the job's own `github.token` and give the workflow `contents: read` and `pull-requests: read`; on Buildkite, which issues no per-job token, provision one. A tracer running on the Hub service token that sets nothing keeps using the GitHub credential the Hub vends, so existing pipelines are unchanged. When no credential is available at all, step attribution and changed-path component inference are skipped with a log line naming the variable, while tracing, collection, and collector execution continue unaffected.

### Improvements

* `lunar policy bypass-release`, `lunar policy bypass-pr`, and `lunar policy bypass-rm` no longer fail locally with "could not determine who is creating this bypass" when no actor can be inferred: when the CLI is authenticated as a logged-in person, it leaves `--actor` unset and the Hub records the login it authenticated, refusing an `--actor` that names anyone else; with the Hub's service token the CLI still fills the actor in from `GITLAB_USER_LOGIN`, `GITHUB_ACTOR`, or `USER`, and the Hub rejects the request when none of them is set, asking for `--actor`. The `--actor` help text on both commands now states which of the two applies. See [Verified bypass actors](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-09-15).
* `lunar policy bypass-ls` now names why a bypass is no longer in effect instead of calling every spent row `expired`: `status` reads `spent — PR #N was merged or closed` for a PR-gate bypass whose pull or merge request has finished, and `superseded — a later push moved PR #N past sha <sha>` for one pinned to a commit the head has moved past, keeping `revoked <when> by <who>` and `expired` for the cases they describe. A commit-bound bypass has no expiry clock, so it is no longer labelled as if it had one, and the `--active` help now states the four bounds the filter applies.
* `lunar hub pull --dry-run` no longer refuses to start without forge access: with no `LUNAR_GITHUB_TOKEN`, `LUNAR_GITLAB_TOKEN`, or configured Hub, plugins are cloned anonymously and each unpinned component's default branch is read straight from the remote with plain git, so validating a configuration that references only public repositories needs no setup at all. `lunar collector dev`, `lunar policy dev`, and `lunar cataloger dev` resolve default branches the same way, including for GitLab-hosted components when only a GitHub token is set. A private repository is still refused by the remote — the lookup fails with a credentials error instead of hanging on git's username prompt — and wildcard components, which need the forge API, still need a credential.
* `lunar hub pull --dry-run`, `lunar collector dev`, `lunar policy dev`, and `lunar cataloger dev` can now use the token the forge's own CLI is signed in with — `gh` for the host in `LUNAR_GITHUB_HOST` (`github.com` by default), `glab` for gitlab.com — so someone already authenticated to `gh` or `glab` can work with private and wildcard components without arranging a second credential. It is the last source consulted: `LUNAR_GITHUB_TOKEN` and `LUNAR_GITLAB_TOKEN`, then the token of a `lunar login` session, then the Hub-vended credential for a service-token caller, all take precedence, and a service-token caller never shells out to `gh` or `glab`. A forge CLI that is absent, signed out, failing, or slow to answer counts as no token rather than an error, and one invocation is cut off after 5 seconds. A token read this way serves only the CLI's own clones and forge API calls — it cannot sign anyone in to the Hub, which accepts only forge tokens issued to its own OAuth app. When no source yields a token, the error now reads `` run `lunar login`, set LUNAR_GITHUB_TOKEN, or authenticate `gh` `` (and the GitLab equivalent) instead of naming only the first two.
* An operation that genuinely needs a forge credential — expanding a wildcard component, resolving `lunar collector dev --pr`, or reaching a private repository — now fails with an error naming the credential for that component's own forge: sign in with `lunar login`, or set `LUNAR_GITHUB_TOKEN` for a GitHub host and `LUNAR_GITLAB_TOKEN` for a GitLab one. Previously a GitLab component was told to configure a GitHub connection, or reported only that no client was configured for its host.
* On a machine with a stored login, `lunar collector dev`, `lunar policy dev`, `lunar cataloger dev`, and `lunar hub pull --dry-run` now clone repositories, resolve default branches, expand wildcard component names, and read a `--pr` with the signed-in person's own forge token, instead of asking the Hub to vend a credential. `LUNAR_GITHUB_TOKEN` and `LUNAR_GITLAB_TOKEN` still take precedence where they are set, a forge the person is not logged in to falls through to the existing chain, and a machine with no stored login behaves exactly as before.
* `lunar sql connection-string` now returns a credential of your own when you are signed in with `lunar login`, and the shared SQL API connection string when the Hub service token is used; a CI job credential is refused. The connection string is still the only thing written to stdout, so piping it into `psql` or into a configuration file works as before, while a personal credential adds a note on stderr naming the Postgres role, when it expires, that re-running the command rotates it, and that a connection pooler in front of the SQL API only authenticates the role if it resolves users dynamically — PgBouncer `auth_query` rather than a static user list. See [Per-person SQL API credentials](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-per-person-sql-api-credentials).
* On a GitHub Actions `pull_request` event, the CI Tracer now reads the pull request's head commit and base branch from the event payload the runner writes for the job, instead of asking the GitHub API for the workflow run, and falls back to that API call only when the payload is missing or carries neither.
* The CI Tracer now installs its configuration from Lunar Hub instead of cloning the configuration repository and every `uses:` plugin repository, so a traced job no longer needs access to those repositories. The Hub serves only what the job needs — the components of the repository being traced, the collectors whose CI hooks apply to it, and each of those collectors' code — so a CI workload no longer receives policies, catalogers, or other repositories' components. Where the tracer cannot read the repository from its own environment, which is the case when it wraps a self-hosted runner and starts before any job exists, it installs the whole configuration exactly as before. Against a Hub that does not yet serve the configuration, the tracer falls back to cloning.

### Bug fixes

* A Hub host given as a URL now works instead of failing with `too many colons in address`: the `lunar` CLI and the CI Tracer strip an `http://` or `https://` prefix, a trailing slash, and surrounding whitespace from the resolved host, and bracket an unbracketed IPv6 literal, applying the same treatment to `--hub-host`, `LUNAR_HUB_HOST`, and the `hub.host` field of the Lunar configuration. A value that cannot be interpreted — one carrying a path, query, fragment, credentials, an unrecognized scheme, or a port, since the gRPC and HTTP ports have their own settings — now fails the command with an error naming the problem, the setting the value came from, and the bare host name to use instead, except under `--no-hub` or `LUNAR_NO_HUB`, where the host is ignored. Any host that already worked is left byte-identical.
* Running `lunar hub pull --dry-run` twice against the same configuration commit — for example validating a repository's development and production configuration files in one CI job — no longer fails the second run with `config validation failed: ... configuration already exists`. The throwaway draft the first run leaves behind, which is keyed by the configuration repository's commit alone, is now replaced rather than treated as a conflict.

## v3.18.0 (2026-08-26) <a href="#cli-v3-18-0" id="cli-v3-18-0"></a>

### Features

* `lunar policy ok-release` now prints the Hub-rendered verdict block verbatim when the Lunar configuration sets `customization.ok_release_template`, in place of the built-in summary line and the failing and bypassed check lists; when no template is configured, or the Hub cannot render one, the command prints its built-in output as before. Only the printed block changes — the verdict, the exit code, the polling progress messages, and `lunar policy ok-pr` are unaffected. See [Customizing the `ok-release` verdict output](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-08-25).

### Improvements

* `lunar policy ok-release` and `lunar policy ok-pr` no longer print the command's usage and flag list when they fail after their arguments have been parsed — an invalid component ID, an expired timeout, or an authentication failure — so the error and its remedy stay at the end of a CI log instead of being scrolled off by help text.
* `lunar policy ok-release` and `lunar policy ok-pr` now fail on the first response saying Lunar Hub has no component by that name, instead of polling every interval until `--timeout` — ten minutes by default — for the same verdict. Nothing in the run being gated creates a component, so waiting could not change the answer; the error names the invalid component ID and points at the Lunar catalog the name has to come from. An unknown component stays fatal under every `--fail-open` mode, and a component that exists but has not finished evaluating still polls to `--timeout` as before.

### Bug fixes

* The CI Tracer now selects a component whose declared repository identity differs in letter case from the identity the CI environment reports: host, owner, and repository name are compared case-insensitively when matching components to the repository the job runs in, when resolving the names listed in `LUNAR_COMPONENT`, and when falling back to a single component named after the repository. Previously a component authored as `github.com/Acme/Api` in a checkout the Git platform reports as `acme/api` matched nothing, so the job ran collectors for no component and collected nothing, without an error. A monorepo component's subdirectory path is still matched case-sensitively, because it is a file path, and branch matching is unchanged. See [Case-insensitive repository identity matching](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-08-19).

## v2.12.0 (2026-08-11) <a href="#cli-v2-12-0" id="cli-v2-12-0"></a>

### Improvements

* `lunar policy ok-release` and `lunar policy ok-pr` now print a loud warning when running in CI without a detectable workflow run ID — for example when `GITHUB_RUN_ID` is absent and `--workflow-id` was not passed — explaining how to pass `--workflow-id`; previously the gate silently blocked until its timeout.

## v2.11.0 (2026-08-07) <a href="#cli-v2-11-0" id="cli-v2-11-0"></a>

### Features

* `lunar setup bootstrap` now accepts `--gitlab-group` together with `--gitlab-token` to deposit a GitLab group access token — run once per top-level group — and `--github-owner` to deposit per-organization GitHub App keys for multi-organization installs. At least one Git platform credential is now required: `--github-app-pem`, the GitLab pair, or both. Existing single-organization GitHub invocations are unchanged.

## v2.10.0 (2026-08-04) <a href="#cli-v2-10-0" id="cli-v2-10-0"></a>

### Features

* `lunar policy ok-release` and `lunar policy ok-pr` accept a new `--fail-open` flag to exit successfully instead of blocking when no verdict can be obtained: a bare `--fail-open` covers an unreachable Hub, and `--fail-open=timeout` or `--fail-open=both` extend it to gate timeouts (the value must be attached with `=`). Authentication failures and an unknown component name stay fatal under every mode — a typo in a component name cannot silently pass — and a gate whose checks genuinely fail still blocks.
* `lunar policy bypass-release` and `lunar policy bypass-pr` record a time-bound override of a component's release or PR/MR merge gate, `lunar policy bypass-ls` lists a component's bypasses — including expired and revoked ones — and `lunar policy bypass-rm` revokes one early. `--reason` is recorded with the bypass, `--for` sets its duration, and `--sha`, `--pr`, and `--policy` narrow its scope; in CI, when neither `--sha` nor `--pr` is given, the bypass is scoped to the commit taken from `GITHUB_SHA` or `CI_COMMIT_SHA`. See [Break-glass gate bypasses](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-break-glass-gate-bypasses).
* The new `lunar queue` commands inspect and clear the Hub's queue of script runs: `lunar queue status` shows how many runs are queued by script type, and `lunar queue clear <collectors|policies|catalogers|all>` deletes queued runs — useful for recovering from a misconfiguration that filled the queue with work that can only fail and retry. Without `--yes`, `queue clear` prints what it would remove without deleting anything, and runs that are already executing are never deleted.

### Improvements

* The CI Tracer now fetches the component catalog from the Hub only when a CI job names a component, caches it per repository, and asks only for changes since its last fetch, removing redundant Hub round-trips on every run. The new `LUNAR_CATALOG_FULL_REFRESH_PERIOD` variable (default `15m`) bounds how long a missed change can leave the cached catalog stale; `0` disables the periodic full refresh.

## v2.8.0 (2026-07-29) <a href="#cli-v2-8-0" id="cli-v2-8-0"></a>

### Bug fixes

* Fetching scripts from a public repository under an owner with no configured SCM credentials no longer emits a warning per reference: the designed anonymous-access fallback is logged at debug level, so a `lunar collector dev` run over a configuration referencing dozens of public plugin scripts no longer prints a wall of warnings that reads like a failure. A private repository under an unconfigured owner still fails loudly, with the error naming the missing credentials. See [Public repositories without a GitHub App](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-05-27).
* `lunar collector dev` and `lunar cataloger dev` now run code collectors from the component's subdirectory for monorepo components — the same working directory the Hub uses — instead of the repository root, so a collector no longer behaves differently in local development than in production. With `--component` the subdirectory must exist at the checked-out ref, and with `--component-dir` pointing inside a monorepo the component name (and `LUNAR_COMPONENT_ID`) now includes the subdirectory exactly as the Hub names it.
* An interrupted `lunar collector dev`, `lunar policy dev`, or `lunar cataloger dev` run no longer poisons every later run with `failed to install draft config: ... configuration already exists`. The throwaway draft configuration such a run leaves behind is now replaced on the next run instead of blocking it, so no manual deletion under `~/.lunar/drafts/` (or `lunar clear-cache`) is needed to recover.
* `lunar policy ok-release` and `lunar policy ok-pr` no longer fail on a transient connection error partway through their poll. When the Hub becomes briefly unreachable after the poll has already reached it — for example during a load-balancer blip under load — the command now prints `temporarily unable to reach remote server; retrying...` and keeps polling until `--timeout` instead of aborting the gate. A server that is unreachable from the very first call, or any non-transient error, still fails immediately.

## v2.7.0 (2026-07-21) <a href="#cli-v2-7-0" id="cli-v2-7-0"></a>

### Improvements

* `lunar collector dev`, `lunar policy dev`, `lunar cataloger dev`, and `lunar hub pull --dry-run` now work with GitLab-hosted components and plugins: set the new `LUNAR_GITLAB_TOKEN` environment variable (or let a configured Hub supply the credentials), and the CLI routes clone authentication, default-branch resolution, and wildcard component expansion to the matching SCM for each host, including GitLab's nested namespaces. With `--component-dir`, the component name is now derived from the checkout's actual remote host instead of the configured GitHub host.

### Bug fixes

* Fetching the component catalog from the Hub no longer fails with a gRPC `ResourceExhausted` error on very large catalogs: the maximum gRPC message size between the CLI, the CI Tracer, and the Hub is raised from 4 MB to 16 MiB, so the CI Tracer's periodic catalog refresh keeps working on installations with tens of thousands of components.

## v2.6.2 (2026-07-17) <a href="#cli-v2-6-2" id="cli-v2-6-2"></a>

### Features

* The new `lunar setup bootstrap` command performs the secret-deposit step of a Lunar Dedicated install: it generates the workload encryption key and the webhook secret, and deposits them together with the GitHub App private key (`--github-app-pem`) into the dedicated account's secret drop in AWS Secrets Manager, encrypted with the install's CMK. It requires `--tenant` and `--region` from the coordinates packet, and can deposit cross-account by assuming the write-only deposit role with `--deposit-role-arn` and `--external-id` (which must be given together), so the secrets never pass through Earthly's systems. Re-runs are safe: the generated encryption key and webhook secret are write-once and never overwritten, while the GitHub App key is updated on every run, so rotating it is just a re-run. The generated webhook secret is printed exactly once — on the run that deposits it — to be set in the GitHub App's "Webhook secret" field.

### Bug fixes

* `lunar` and the CI Tracer now place their state, cache, and config directories under a writable temp-based path when running as a non-root user whose home directory is unset or resolves to the filesystem root, instead of failing with `mkdir /.lunar: permission denied`; a usable home directory still resolves to `~/.lunar/` as before.

## v2.6.1 (2026-07-16) <a href="#cli-v2-6-1" id="cli-v2-6-1"></a>

### Breaking changes

* The `lunar grafana deploy-dashboards` command is removed. Lunar's Grafana dashboards, datasources, and panel plugins are now installed by the `ghcr.io/earthly/lunar-dashboards` deploy image — the Helm chart runs it automatically on install and upgrade, and the same image can be run directly with Docker or Podman against a Grafana you operate yourself — so no local CLI step or container runtime is involved in dashboard deployment anymore.

### Improvements

* `lunar sql connection-string` accepts a new `--grafana` flag that prints the connection string for the read-only Grafana datasource role instead of the SQL API one.

### Bug fixes

* The CI Tracer now detects scheduled runs — `GITHUB_EVENT_NAME=schedule` on GitHub Actions, `BUILDKITE_SOURCE=schedule` on Buildkite — and records their collections as periodic re-collections rather than CI collections pinned to the checked-out commit, so a scheduled pipeline no longer replaces the component's latest data with its own partial results. See [Scheduled CI runs no longer overwrite component data](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-2026-07-16).

## v2.6.0 (2026-07-09) <a href="#cli-v2-6-0" id="cli-v2-6-0"></a>

### Features

* `lunar-config.yml` can now be validated before merge: `lunar hub pull --dry-run <repo>` runs the Hub's own load-and-validate pipeline — including `uses:` plugin resolution and component repository checks — without applying anything, exiting non-zero on validation errors; it needs GitHub access but no Hub connection, so it can run as a CI check on pull requests. A companion `lunar config schema` command prints a JSON Schema for editor autocomplete.

### Bug fixes

* Fixed a CI/CD Tracer deadlock while configuring signal-heavy traced processes that could hang a build indefinitely and hold its runner until the CI timeout. The deadlock surfaced most often when the Hub was unreachable.

## v2.5.0 (2026-07-08) <a href="#cli-v2-5-0" id="cli-v2-5-0"></a>

### Features

* New `lunar grafana deploy-dashboards` command installs Lunar's Grafana dashboards, datasources, and panel plugins into a Grafana instance you operate (self-hosted or Grafana Cloud). The Grafana endpoint and credentials are supplied by the Hub, the dashboard version is matched to the running Hub automatically, and a Docker or Podman runtime is required locally.

### Improvements

* The Hub gRPC and HTTP ports now default to 443 when not configured, and `lunar ci-tracer run` forwards the resolved Hub connection settings to the tracer process. A CI runner configured with only `LUNAR_HUB_HOST` previously failed the Hub-configured check and could silently run without instrumentation.
* `lunar collector dev` and `lunar policy dev` now work when the Lunar config is split across `lunar-config.d/` files, and fully local runs (`--component-dir` together with `--script`) no longer require GitHub or Hub credentials. Credential errors in the remaining modes now explain what to configure.

### Bug fixes

* The CI/CD Tracer now classifies Node.js-based GitHub Actions launched through a shebang entrypoint as steps; such actions were previously attributed as commands of the preceding step.
* Fixed `sudo` failing inside traced builds with `The "no new privileges" flag is set`: the CI/CD Tracer no longer sets `no_new_privs` on traced processes that hold `CAP_SYS_ADMIN`. Running `sudo` or other setuid binaries under tracing requires a self-hosted runner running as root with `CAP_SYS_ADMIN`; on runners without the capability the previous behavior is unchanged.

## v2.4.0 (2026-06-23) <a href="#cli-v2-4-0" id="cli-v2-4-0"></a>

### Security

* Updated high-severity Go dependencies (`golang.org/x/crypto`, `golang.org/x/net`, `golang.org/x/sys`, `github.com/jackc/pgx/v5`) to patched versions in the `lunar` CLI and CI/CD Tracer build.

## v2.3.2 (2026-06-19) <a href="#cli-v2-3-2" id="cli-v2-3-2"></a>

### Bug fixes

* Fixed collectors failing with `Hub connection details not provided` when a collector image carrying CLI v2.2.0 or later runs against a Hub older than 2.3.1: `lunar collect` inside a collector now falls back to the legacy stdout output those Hubs expect. Out-of-band `lunar collect --component` invocations still submit to the Hub directly.

## v2.3.1 (2026-06-19) <a href="#cli-v2-3-1" id="cli-v2-3-1"></a>

### Migrations and upgrade notes

* The CI/CD Tracer's GitHub Action now lives at `earthly/lunar-ci-tracer` (renamed from `earthly/lunar-ci-action`) — update workflow references to the new name. The separate `lunar-ci-agent-dist` binary distribution is retired: install the tracer through the `lunar` CLI with `lunar ci-tracer run` or `lunar ci-tracer install`.

### Bug fixes

* Pull-request checks now post on GitHub Enterprise Server: the CI/CD Tracer records the repository's GitHub host with each CI collection, so the Hub posts the resulting checks against the right GitHub instance. See [GitHub Enterprise Server and multi-organization support](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-github-enterprise-server-support).

## v2.3.0 (2026-06-19) <a href="#cli-v2-3-0" id="cli-v2-3-0"></a>

### Features

* New `lunar ci-tracer install` command downloads and caches the CI/CD Tracer through the Hub without running it, for warming the cache at build time — for example when baking a runner image.
* The CI/CD Tracer now supports Buildkite. Start it from a Buildkite agent `command` hook to trace builds and run CI collectors; runs are collected even though Buildkite exposes no job or step boundaries, and setting `LUNAR_COMPONENT_INFER=true` enables changed-path attribution for monorepo builds. See [Buildkite support](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-buildkite-support).
* The CI/CD Tracer resolves the GitHub host from the run environment (`GITHUB_SERVER_URL` on GitHub Actions, or the git remote on Buildkite), so runs on GitHub Enterprise Server repositories are attributed to the right component with no extra configuration; `LUNAR_GITHUB_HOST` remains available as an override. See [GitHub Enterprise Server and multi-organization support](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-github-enterprise-server-support).

## v2.2.0 (2026-06-17) <a href="#cli-v2-2-0" id="cli-v2-2-0"></a>

### Features

#### Unified CLI and CI/CD Tracer releases <a href="#cli-unified-cli-tracer-release" id="cli-unified-cli-tracer-release"></a>

The `lunar` CLI and the CI/CD Tracer (previously called the CI agent) now release together under a single version. There is no separate `lunar-ci-agent` binary to install: the CLI fetches, verifies, and caches the tracer through your Hub on first use, and later runs reuse the cache.

Start the tracer with the new `lunar ci-tracer run` command. It resolves the tracer version pinned into the CLI at build time (override with `--version`), downloads the binary through the Hub on a cache miss, verifies its digest, and caches it under `~/.lunar/bin` (override with `LUNAR_BIN_DIR`). All other arguments are forwarded to the tracer unchanged.

Version numbering continues above both earlier release lines — the CLI was at v2.0.0 and the CI agent at v2.1.3 — which is why there is no v2.1.0.

* New `--component <github.com/owner/repo>` and `--sha <commit>` flags let `lunar collect` run outside a traced CI job — for example in a CD pipeline — to attach additional component JSON to an existing component at a specific commit. The flags fall back to `LUNAR_COMPONENT_ID` and `GITHUB_SHA` when unset, and an optional `--pr` associates the write with a pull request. See [Out-of-band collection](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-out-of-band-collection).

### Improvements

* When `LUNAR_COMPONENT_INFER=true` is set, changed-path component inference on GitHub Actions now covers push events as well as pull requests, so a monorepo build on the default branch is attributed to the components whose files actually changed. See [Monorepo support: path-scoped components](https://docs-lunar.earthly.dev/release-notes/product/2026.md#product-monorepo-path-scoped-components).
* `lunar` commands and the CI/CD Tracer automatically retry Hub requests interrupted by a brief Hub outage, such as a rolling restart during an upgrade, instead of failing the operation.
* The CI/CD Tracer resolves component default branches only for the repository it is tracing, instead of for every component at startup. This reduces GitHub API usage on busy runners and fixes Lunar config sync failures caused by exhausting the GitHub App rate limit.

### Bug fixes

* The CI/CD Tracer now bounds the Hub and GitHub API calls made from its tracing loop with timeouts, and job cancellation interrupts them. A stalled call could previously freeze the traced build or leave an orphaned tracer occupying a self-hosted runner after the job was cancelled.
* Fixed a CI/CD Tracer deadlock triggered when a traced process exited while the tracer was still configuring it. The wedged tracer could leave a self-hosted runner reporting online while no longer running jobs.
* The CI/CD Tracer no longer logs a warning for every fault signal seen in traced processes — managed runtimes such as the JVM, Go, and Node.js raise and handle these signals as part of normal operation. A crash is now reported only when a fault signal actually terminates the traced process.

## v2.0.0 (2026-05-17) <a href="#cli-v2-0-0" id="cli-v2-0-0"></a>

### Features

* The new `lunar licence` command group extracts Hub bootstrap artifacts from a licence JWT locally, before any Hub is running in the cluster: `lunar licence verify` validates the licence against the trust list embedded in the binary and prints a summary; `lunar licence pull-secret` generates a Kubernetes `imagePullSecret` manifest for pulling Lunar images from `ghcr.io` (with `--namespace`/`-n`, `--name`, and `--out`/`-o`); and `lunar licence registry-token` prints the GHCR pull token for use with `docker login`. All subcommands accept `--licence-file`, or the `LUNAR_LICENCE_FILE` environment variable.

### Improvements

* The CI/CD Tracer continues running when Hub-backed startup setup fails — fetching runtime logging configuration or completing the initial sync — instead of aborting the CI job; set `LUNAR_STRICT_MODE=true` to keep the previous fail-closed startup behavior.

### Bug fixes

* `lunar collector dev --component` checks out the branch configured for the component in the Hub catalog instead of always using the repository's default branch, and validates that the component exists in the catalog.
* The CI/CD Tracer retries its update checks while Lunar Hub has no current configuration published, instead of proceeding and later surfacing confusing "manifest not found" errors during observation.

## v1.1.2 (2026-05-07) <a href="#cli-v1-1-2" id="cli-v1-1-2"></a>

### Breaking changes

* The CI/CD Tracer no longer accepts a GitHub personal access token for runtime authentication: the `LUNAR_GITHUB_TOKEN` runtime path is removed, and the tracer always uses GitHub App installation tokens vended by Lunar Hub, which was already the default path. Remove `LUNAR_GITHUB_TOKEN` from tracer environments; a Hub connection is now required for GitHub API access.

### Features

* The new `lunar diagnose bundle` command captures a self-contained troubleshooting snapshot of a deployed Lunar stack — descriptions and logs for every Lunar pod plus database statistics — packaged as a single `tar.gz` for sharing with support.

### Improvements

* CLI commands that take a component name — `lunar collector dev`, `lunar policy dev`, `lunar component get-json`, `lunar policy ok-release`, and `lunar policy ok-pr` — fall back to the `LUNAR_COMPONENT_ID` environment variable when no flag or argument is given.
* `lunar hub pull` no longer runs global catalogers automatically on every configuration sync; pass the new `--rerun-catalogers` / `-t` flag to opt in, mirroring the existing `--rerun-code-collectors` / `-l` flag. Per-component catalogers are unaffected and keep firing on their own hooks.
* The new `LUNAR_INSTALL_FILE_MAX_DISK_SIZE` setting (for example `200m` or `5gb`) caps the disk space used by locally cached Lunar configuration versions, pruning the oldest unused versions first; the default `0` leaves size-based pruning disabled.
* The CI/CD Tracer now handles attaching to a CI job that is already running — for example when launched as a step inside a GitHub Actions job — initializing from the current step instead of dropping all events, and it reports readiness only after its initial configuration sync with Lunar Hub succeeds.

### Bug fixes

* The CI/CD Tracer starts and idles when Lunar Hub has no configuration installed yet, instead of exiting with a startup sync failure and leaving the CI runner untraced.
* The CI/CD Tracer correctly traces GitHub code scanning runs that use the `dynamic` event type, including step resolution for CodeQL default-setup workflows whose definitions are not committed to the repository.
* The CI/CD Tracer no longer fails to initialize on GitHub-hosted runners: step scripts under the hosted runners' `work/_temp/` path are now recognized, where previously only the self-hosted `_work/_temp/` layout was detected.
* CI/CD Tracer startup update checks are now properly cancelled when their timeout fires (configurable via `LUNAR_UPDATE_CHECK_TIMEOUT`, default 5m), and attaching to an already-running process no longer logs misleading error and warning messages for expected mid-job attach conditions.

## v1.1.1 (2026-03-26) <a href="#cli-v1-1-1" id="cli-v1-1-1"></a>

### Improvements

* `lunar policy ok-release` and `lunar policy ok-pr` print which policy checks are blocking and their status, instead of only reporting that the component is unable to release or merge.
* `lunar policy ok-release` and `lunar policy ok-pr` poll until policy results are complete instead of returning a one-shot answer that could report failure before workflows and collectors had finished; polling is configurable with `--poll-interval` (default 10s) and `--timeout` (default 10m), and the commands print what they are still waiting on.
* A new `--ready-file` option makes the CI/CD Tracer create a file once tracing is active when attaching to a running process with `--pid`, so wrapper scripts can wait for tracing to start instead of polling `/proc`.
* `lunar` and the CI/CD Tracer now default their state, cache, and config directories to user-level paths under `~/.lunar/` when running as a non-root user, instead of system paths such as `/var/lib/lunar`; explicit overrides like `LUNAR_STATE_DIR` still take precedence.

## v1.1.0 (2026-03-19) <a href="#cli-v1-1-0" id="cli-v1-1-0"></a>

### Improvements

* `lunar collect` has a new `--array-append` flag that wraps the collected value in a single-element array; arrays at the same path are concatenated during the Component JSON merge, so repeated collector invocations can accumulate list values.
* `lunar collector dev` and `lunar policy dev` can now run directly inside a plugin directory (one containing `lunar-collector.yml` or `lunar-policy.yml`) without requiring a repository with a full `lunar-config.yml` setup.
* Collectors running on CI command hooks (`ci-before-command`, `ci-after-command`) now inherit the full environment of the traced CI process instead of a minimal sandbox, so variables such as `PATH` and `JAVA_HOME` set during CI steps are visible to collector scripts.

### Bug fixes

* The CI/CD Tracer terminates and reaps any remaining traced child processes when the root traced process exits, instead of leaving them ptrace-stopped.
* The CI/CD Tracer resolves steps from reusable workflow references, fixing "job not found in workflow definition" step-resolution failures in GitHub Actions jobs that call another workflow via `uses:`.
* The CI/CD Tracer detects shebang scripts during process tracing, so a tool like `npm` is reported as the command binary instead of its interpreter (`node`) in `binary.name` hook matching and `LUNAR_CI_COMMAND_BIN`.
* The CI/CD Tracer no longer fails to parse GitHub Actions workflow definitions that set a step's `env` to a runtime expression such as `${{ fromJSON(inputs.envs) }}`.

## v1.0.11 (2026-02-22) <a href="#cli-v1-0-11" id="cli-v1-0-11"></a>

### Security

* Git access tokens no longer appear in debug logs: git commands authenticate through the process environment instead of embedding the token in clone and remote URLs.

### Features

* The new `--component-dir` flag points `lunar collector dev` at a local directory as the target repository, instead of cloning the component's repo.
* The new `--config` option on `lunar collector dev` and `lunar policy dev` loads the Lunar config from a remote Git repository, accepting both `github.com/org/repo` and `github://org/repo@branch` forms.
* Collector command hooks support advanced matching of traced commands: exact or pattern-based binary matching (`name_pattern`, `dir_pattern`), positional and flag-based argument matchers (including both `--flag=value` and `--flag value` forms), and environment variable matchers.
* The new `--no-hub` option makes the Hub connection optional, so `lunar collector dev` and `lunar policy dev` can run without a configured Hub.
* Plugin scripts can be addressed with dot notation in dev commands — `myplugin.mycollector` selects one collector or policy, and passing just the plugin name runs all of the plugin's collectors or policies in a single invocation.
* The new `lunar secret` commands manage the secrets that collectors, policies, and catalogers use, storing values on the Hub at runtime instead of requiring them in the Hub's environment configuration.
* The new `lunar version` command prints the CLI version and the source commit it was built from.

### Improvements

* `lunar collector dev` resolves the component name and exposes it to the collector script's environment.
* Plugins referenced from directories outside the config repository — including symlinked paths — now install correctly in dev mode.
* Git clones are cached across plugin installs for faster repeated installs, draft (local dev) installs are no longer cached, and stale cached clones are purged periodically.
* `lunar hub pull` reports the full output of failed install commands, instead of a truncated error.
* Dependency installation is skipped for scripts that specify a container image, since the image already provides their dependencies.

### Bug fixes

* Fixed a permission-denied error when plugin installation copied directories with restrictive (read-only) permissions; failed partial copies are also cleaned up instead of blocking the next attempt.
* The `.git` directory is no longer copied during plugin installation, avoiding file-permission errors it used to cause.
* Referencing a non-existent local or remote plugin path in `uses` now produces a clear validation error instead of failing obscurely.

## v1.0.9 (2026-01-15) <a href="#cli-v1-0-9" id="cli-v1-0-9"></a>

### Improvements

* Release binaries are about 13% smaller: debug symbols are now stripped at build time.

## v1.0.8 (2026-01-15) <a href="#cli-v1-0-8" id="cli-v1-0-8"></a>

### Breaking changes

* The CI/CD Tracer binary (`lunar-ci-agent-linux-amd64`) is no longer attached to `lunar-dist` releases; it is published through its own release channel from this release onward. Update any automation that downloads the tracer binary from `lunar-dist`.

## v1.0.7 (2026-01-14) <a href="#cli-v1-0-7" id="cli-v1-0-7"></a>

### Features

* Releases now include a Linux arm64 build of the `lunar` CLI (`lunar-linux-arm64`), alongside the existing Linux amd64 and macOS (Apple silicon) binaries.

## v1.0.6 (2026-01-13) <a href="#cli-v1-0-6" id="cli-v1-0-6"></a>

### Breaking changes

* Collector, policy, and plugin names may no longer contain dots; configurations using dotted names are rejected when the Lunar config is loaded. The dot is reserved as the plugin/script separator.
* The deprecated `lunar-ci-agent install <config-URI>` command is removed; the CI/CD Tracer performs an initial configuration update check at startup instead, so a separate install step is no longer needed.

### Features

* `lunar collector dev` and `lunar policy dev` fetch the secrets a script needs from the Hub; a new `--secrets` flag supplies overrides or extra values.
* Collectors can now run at CI step boundaries on GitHub Actions using the new `ci-before-step` and `ci-after-step` hook types.

### Improvements

* `lunar collector dev` sets additional common environment variables for the collector script, bringing the local execution environment closer to what collectors receive in CI runs.
* `lunar collector dev` and `lunar policy dev` show a spinner with progress information about what is happening in the background.
* Collector and policy name resolution is more consistent — plugin names take part in resolution with fixed precedence — and name conflicts are detected with clearer error messages.
* The CI/CD Tracer now starts and runs without a locally installed Lunar configuration, picking it up automatically once the periodic update fetches it.
* CI step detection on GitHub Actions now accounts for composite actions, pre/post hooks, and conditional steps.

### Bug fixes

* The CI/CD Tracer no longer duplicates collector runs when several traced commands complete in a row.
* Collections from GitHub Actions matrix builds are now attributed to the correct matrix job instance instead of being conflated under the job's logical name.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs-lunar.earthly.dev/release-notes/cli/2026.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
