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

# Install Lunar

Welcome to the Lunar installation guide.

This section contains step-by-step instructions for installing Lunar. Install these pieces, in this order:

1. **Lunar CLI** – an admin and development CLI. Install this first: the Hub install walkthrough uses `lunar licence` to derive your GHCR image-pull secret from your licence JWT before `helm install`.
   * [Install the Lunar CLI](/install/cli.md)
2. **Lunar Hub** – the central coordination service.
   * [Overview](/install/lunar-hub/hub-overview.md) – the lay of the land: services, dependencies, ports.
   * [Prerequisites](/install/lunar-hub/hub-prereqs.md) – what to have in place before `helm install`.
   * [Install walkthrough](/install/lunar-hub/hub-install.md) – step-by-step from zero to a working Hub.
   * [Day-2 operations](/install/lunar-hub/hub-day2.md) – upgrades, secret rotation, observability, uninstall.
3. **Lunar CI Agent** — instruments your CI runners to report data to the Hub. Choose based on how your CI is set up:
   * [Self-hosted runners](/install/lunar-ci-agent/agent-self-hosted.md)
   * [GitHub-hosted managed runners](/install/lunar-ci-agent/agent-managed.md) (the [earthly/lunar-ci-tracer](https://github.com/earthly/lunar-ci-tracer) action).

Optional:

* [`sync-config` GitHub Action](/install/github-actions.md) – pushes your config repo to Lunar Hub on every push.
* [AI Skills](/install/skills.md) – agent skills for building collectors and policies.

Want to try Lunar without installing anything? Get in touch for a guided demo or preview.

<a href="https://earthly.dev/earthly-lunar/demo" class="button primary" data-icon="calendar">Request a demo</a>

Before diving in, browse the [100+ pre-built guardrails](https://earthly.dev/lunar/guardrails/) and [30+ integrations](https://earthly.dev/lunar/integrations/) available out of the box.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-lunar.earthly.dev/install.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
