> 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/docs.md).

# Docs

- [Key concepts](https://docs-lunar.earthly.dev/docs/key-concepts.md): Overview of Lunar's core concepts — domains, components, collectors, catalogers, policies, and checks — and how they fit together.
- [Guides](https://docs-lunar.earthly.dev/docs/guides.md): Opinionated guides for rolling out Lunar in a large engineering organization, beyond the reference documentation.
- [Cataloging Strategy](https://docs-lunar.earthly.dev/docs/guides/cataloging-strategy.md): How to build a complete, trustworthy software catalog in Lunar — achieving full coverage, cleaning up inconsistent existing catalog data, handling monorepos, and enforcing catalog quality with guardra
- [Cancel a Bad Config](https://docs-lunar.earthly.dev/docs/guides/cancel-a-bad-config.md): Stop a bad Lunar configuration's work with lunar hub pull --cancel, and re-run what Lunar Hub can under the fixed configuration for the commits it already judged.
- [Component JSON](https://docs-lunar.earthly.dev/docs/component-json.md): How the Component JSON aggregates SDLC metadata deltas from collectors into a single object that policies evaluate against.
- [Catalog JSON](https://docs-lunar.earthly.dev/docs/catalog-json.md): Structure and precedence rules for the Catalog JSON, which merges domains and components from catalogers, lunar.yml, and lunar-config.yml.
- [Authorization](https://docs-lunar.earthly.dev/docs/authorization.md): How Lunar Hub identifies callers and decides which operations each credential may perform.
- [CI Job Identity](https://docs-lunar.earthly.dev/docs/authorization/ci-identity.md): Authenticate CI jobs to Lunar Hub with the OIDC token their CI platform issues, on GitHub Actions and GitLab CI.
- [Lunar CLI Reference](https://docs-lunar.earthly.dev/docs/lunar-cli.md): Complete reference for every Lunar CLI command, subcommand, flag, and environment variable across collectors, catalogers, policies, and Hub operations.
- [PR/MR Comments Reference](https://docs-lunar.earthly.dev/docs/pr-comments.md): Reference for the /lunar commands Lunar accepts as comments on pull requests and merge requests, and what each one does to the merge gate.


---

# 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/docs.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.
