# 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-action](https://github.com/earthly/lunar-ci-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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
