# Publishing Private Modules

{% hint style="info" %}
**Manage Modules** permission is required to perform this action, please check [team-management](https://docs.terrakube.io/2.22.0/user-guide/organizations/team-management "mention") for more info.
{% endhint %}

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

<figure><img src="https://content.gitbook.com/content/kJIcmDU7SpMIrNiHYtLu/blobs/rfhlGvg1s2k9MlC8WZQQ/image.png" 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](https://docs.terrakube.io/2.22.0/user-guide/vcs-providers "mention") for more details.

<figure><img src="https://content.gitbook.com/content/kJIcmDU7SpMIrNiHYtLu/blobs/Kd8YakL27IjbACE2XnmR/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/kJIcmDU7SpMIrNiHYtLu/blobs/0Ke8DYWuy0j33qoHEdIt/image.png" alt=""><figcaption></figcaption></figure>

In the next screen, configure the required fields and click the **Publish Module** button.&#x20;

<figure><img src="https://content.gitbook.com/content/kJIcmDU7SpMIrNiHYtLu/blobs/g0CNuq00lXrKKhNFn7xB/image.png" 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="https://content.gitbook.com/content/kJIcmDU7SpMIrNiHYtLu/blobs/F6CXLo5XOYLTD1l1iJXq/image.png" 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="https://content.gitbook.com/content/kJIcmDU7SpMIrNiHYtLu/blobs/iDoCY1rdP72ZxQKmVPPW/image.png" alt=""><figcaption></figcaption></figure>
