> For the complete documentation index, see [llms.txt](https://docs.terrakube.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.terrakube.io/user-guide/private-registry/publishing-private-modules.md).

# Publishing Private Modules

{% hint style="info" %}
**Manage Modules** permission is required to perform this action, please check [Team Management](/user-guide/organizations/team-management.md) for more info.
{% endhint %}

Click **Registry** in the main menu and then click the **Publish module** button

<figure><img src="/files/dgiWzenLAIga8kFaXICH" alt=""><figcaption></figcaption></figure>

Select an existing version control provider or click **Connect to a different VCS** to configure a new one. See [VCS Providers](/user-guide/vcs-providers.md) for more details.

<figure><img src="/files/M9L0U7SIG7xHJe9q3zl8" alt=""><figcaption></figcaption></figure>

Provide the git repository URL and click the **Continue** button.

<figure><img src="/files/WJZDLG2Y46sOmmMec7y6" alt=""><figcaption></figcaption></figure>

In the next screen, configure the required fields and click the **Publish Module** button.

<figure><img src="/files/WWJMCT5uG56JUAJ2eSuH" alt=""><figcaption></figcaption></figure>

The module will be published inside the specified organization. On the details page, you can view available versions, read documentation, and copy a usage example.

<figure><img src="/files/3y2HAtVb4ZF8yPEenhdA" alt=""><figcaption></figcaption></figure>

### Releasing New Versions of a Module <a href="#releasing-new-versions-of-a-module" id="releasing-new-versions-of-a-module"></a>

To release a new version of a module, create a new release tag to its VCS repository. The registry automatically imports the new version.

### Deleting Modules <a href="#deleting-versions-and-modules" id="deleting-versions-and-modules"></a>

In the Module details page click the **Delete Module** button and then click the **Yes** button to confirm

<figure><img src="/files/Kt09gyFMqqhSs31V3W3Y" alt=""><figcaption></figcaption></figure>


---

# 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.terrakube.io/user-guide/private-registry/publishing-private-modules.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.
