# Publishing Private Modules

{% hint style="info" %}
**Manage Modules** permission is required to perform this action, please check [team-management](https://docs.terrakube.io/2.20.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://2695156030-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAistJ55LNNLsrfZftuX%2Fuploads%2Fgit-blob-fc3f2bac9a1a05c5e66a8fb1f93fa34a163bd171%2Fimage%20(41).png?alt=media" 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.20.0/user-guide/vcs-providers "mention") for more details.

<figure><img src="https://2695156030-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAistJ55LNNLsrfZftuX%2Fuploads%2Fgit-blob-b89db39301e5971346678f1354d0f93d12ce6baa%2Fimage%20(111).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2695156030-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAistJ55LNNLsrfZftuX%2Fuploads%2Fgit-blob-7552c05a5dd59c3a380eddf724a22273b6f65213%2Fimage%20(55).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2695156030-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAistJ55LNNLsrfZftuX%2Fuploads%2Fgit-blob-decd4cc2ced8ac002dc1b047e723ad3bd6e7621c%2Fimage%20(165).png?alt=media" 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://2695156030-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAistJ55LNNLsrfZftuX%2Fuploads%2Fgit-blob-62175bc5acb0b6244a70f5147bf474383de4d422%2Fimage%20(114).png?alt=media" 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://2695156030-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAistJ55LNNLsrfZftuX%2Fuploads%2Fgit-blob-fc5bf7f456bcdc5cc89d863a205a81f99bf6e3af%2Fimage%20(46).png?alt=media" alt=""><figcaption></figcaption></figure>
