> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/on-premises/installation/using-the-toolkit/2.-familiarize-yourself-with-the-toolkit.md). Agents can also search and read this documentation through its [MCP server](https://docs.overleaf.com/~gitbook/mcp).

# 2. Familiarize yourself with the Toolkit

## Taking a look around <a href="#taking-a-look-around" id="taking-a-look-around"></a>

Now that we have a local copy of the Toolkit, let's take a look at the structure of the repository using the `ls` command:

```bash
ls -l
```

{% hint style="info" %}
The `ls -l` command displays a detailed long listing view of the contents of a directory, providing additional file information such as permissions, ownership and size.
{% endhint %}

If everything was cloned successfully you should see something like this:

```bash
drwxr-xr-x 3 fry fry  4096 Aug 30 14:16 bin
-rw-r--r-- 1 fry fry  6465 Aug 30 14:16 CHANGELOG.md
drwxr-xr-x 2 fry fry  4096 Sep  6 12:43 config
drwxr-xr-x 5 fry fry  4096 Aug 30 14:22 data
drwxr-xr-x 3 fry fry  4096 Aug 30 14:16 doc
drwxr-xr-x 3 fry fry  4096 Aug 30 14:16 lib
-rw-r--r-- 1 fry fry 34520 Aug 30 14:16 LICENSE
-rw-r--r-- 1 fry fry  1178 Aug 30 14:16 README.md
```

{% hint style="info" %}
All user-owned configuration files are found in the `config/` directory. This directory is **excluded** from the git revision control system, so it will not be changed by updating the Toolkit.
{% endhint %}

| Name     | Description                                                                                                                                                                                                                                                  |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `bin`    | This folder contains a collection of scripts that help you manage your Overleaf server instance. You can read more about these scripts in our Commands section below.                                                                                        |
| `config` | This folder contains your own local configuration files.                                                                                                                                                                                                     |
| `lib`    | This folder contains base configuration files used by the Toolkit.                                                                                                                                                                                           |
| `data`   | By default this folder contains the storage location for MongoDb, Redis and Overleaf. For more information see [Persistent data](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/files-and-locations.md#persistent-data) section below. |

{% hint style="warning" %}
We recommend **not** changing files outside of the `/config` folder directly. Instead, if you need to make changes, they can be done via environment variables set in either **config/variables.env** or **config/overleaf.rc.** For example, to set the **mongo** service image, rather than manually editing **lib/docker-compose.mongo.yml** file, you can set the image using the environment variable `MONGO_IMAGE` in **config/overleaf.rc.** For more information see the [Toolkit settings](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/toolkit-settings.md) page.
{% endhint %}

{% hint style="info" %}
The Toolkit will **not** change any data in the `config/` directory without your permission.
{% endhint %}


---

# 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.overleaf.com/on-premises/installation/using-the-toolkit/2.-familiarize-yourself-with-the-toolkit.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.
