Skip to content

Repository Management

The repositories page lists all the repositories in your organization.

The Repositories page with a Create Repository button, listing maven-releases, maven-snapshots, npm-internal, python-packages and docker-images, with the maven-central proxy at the bottom edge.

Click a repository to open its overview.

Click Create Repository to create a repository from this screen.

The Create repository form: Format with Maven chosen, Kind with Hosted chosen, and Name, with the repository's address under it.

On the Create repository screen you choose:

  • Format: Maven, Python, npm or Docker.
  • Kind: Hosted (you publish to it), Proxy (it keeps a copy of what it fetches from a public upstream you pick under Upstream) or, for Maven, Docker, Python and npm (Python and npm in early access), Group (one address in front of several repositories).
  • Name: the repository name, such as releases or packages. The line below it previews the repository URL as you type.

A hosted Maven or Python repository opens on Packages, which lists the artifacts or packages it holds. Select Files to see the repository in a familiar, file tree browser. A proxy, a group, or a repository of any other format opens on the file browser.

The maven-releases page: Maven hosted, private, 4,812 files and 6.40 GB, its repository URL with Copy, then Packages open with Files and Settings beside it: 4 artifacts in 2 groups, listed by coordinate from com.example.docs:docs-maven.

In the file browser, you can see all files and directories, their update times, and file sizes.

The maven-releases overview with Files selected and its file browser open at com/example/platform/billing-service: three version folders, and maven-metadata.xml with its checksum files.

Open the repository in the Admin Portal, click Upload file, and choose a file from your computer.

To download a file, click the row containing it.

Click a folder’s row to open it.

To move back up the current path, use the breadcrumbs above the file listing.

In a Maven or Python repository that holds your own files, a file or folder you delete is listed in the repository’s Trash. Someone with the Manage repositories permission can restore it from there. Deleting a file needs only write access, so a member who can delete a file may be unable to restore it.

In a Maven or Python repository, select Files. Hover over the file’s or folder’s row in the file browser, click its delete icon, and confirm. The item leaves the current view.

Deleting a folder deletes every file under it. For a large folder, CloudRepo runs the deletion as a background job and shows its progress in the file browser.

To delete multiple items in one action:

  1. In a Maven or Python repository, select Files.

    Expected: the file browser opens.

  2. Check the selection box next to each file or folder you want to delete.

    Expected: a toolbar with Delete Selected appears.

  3. Click Delete Selected.

    Expected: a confirmation dialog counts the files and directories you selected.

  4. Type the repository name to confirm, then confirm your identity with your password when CloudRepo asks.

    Expected: the bulk delete runs as a background job, with its progress shown.

In the portal, deleting a folder, deleting several items at once and purging from the Trash ask you to confirm your identity. A repository token cannot run any of them.

When CloudRepo deletes more than a handful of files (deep folder trees or bulk selections), the operation runs as a background job:

  • You get immediate feedback in the UI
  • A progress indicator shows how many files have been processed
  • The file browser is usable during the job, so you can browse other folders or switch away and come back

In a Maven or Python repository, the file browser (select Files) has a Trash tab beside its Files tab. A file deleted from a repository that holds your own files, from the portal or the API, is listed there. The tab carries its own notice: Deleted items are automatically removed after 30 days.

Open a Maven or Python repository from the repositories page, select Files, and click the Trash tab. It shows every file that can still be restored, with its name, its size, and how long ago it was deleted. Only someone with the Manage repositories permission can see what the Trash holds.

Click the Restore icon next to any item in the Trash. CloudRepo returns the file to its original location. Restoring needs the Manage repositories permission, and asks for no confirmation of your identity. A proxy repository refuses a restore.

The organization owner and Admins can permanently purge a file from the Trash. A purged file is no longer in the Trash, and the Trash cannot restore it.

  1. Click the Delete permanently icon next to the item.

    Expected: a confirmation that names the file.

  2. Confirm, and confirm your identity when CloudRepo asks.

    Expected: the file leaves the Trash.

Only the organization owner and Admins see the purge icon. Someone who can restore a file from the Trash, with Manage repositories, but is not an Admin cannot purge it.

Can I restore files in bulk?

No. Files are restored one at a time from the Trash.

What happens to webhooks when I delete or restore a file?

A webhook that fires on deletes also fires when a file is restored or purged, whether the action came from the portal or the API.

To see how to connect your clients to a repository, open the repository and click Connect. The instructions are filled in for that repository; you still substitute your own credentials where indicated.

Connect opens Connect to maven-releases, with its repository URL and the Maven settings.

Each repository has its own settings. Open the repository and click Settings.

Repository Settings for maven-releases: the Overview card, then Public Access off, Snapshot Cleanup off and Overwrite Protection on.

By default, every repository is private and requires authentication.

Turn on the Public Access card to let anyone read the repository without credentials. Turn it off to make the repository private again.

A Maven, Python or npm repository is read at its public address, https://your-org.mycloudrepo.io/public/repositories/your-repo. A Docker repository has no public address: its images are pulled at the same address as when it is private. A pull that presents no credentials is served for a public Docker repository and refused for a private one. Public Access is for reading: a push always needs credentials.

Overwrite Protection is the default on every hosted Maven, Python and npm repository. Any hosted repository that has not explicitly turned it off is protected, whenever it was created. When it is enabled, a publish that would replace a file already stored at the same path is refused with 409 Conflict and the file already in the repository is left untouched.

A proxy repository holds a cache of an upstream registry, and a group repository stores no files of its own, so neither is protected by default and Overwrite Protection cannot be turned on for either.

Overwrite Protection is a per-repository setting, not a platform-wide guarantee. Turn it off from the Overwrite Protection card in the repository’s settings, confirm your identity when asked, and that repository will accept overwrites again. With Overwrite Protection off, anyone who may publish to the repository, a Publisher included, can replace a file already stored there.

Overwrite Protection applies to the package-manager publish APIs (mvn deploy, gradle publish, twine upload, npm publish) and to file uploads through the Admin Portal.

It refuses a write that would replace a file already present at the same path. It is not a retention policy: a file you delete through the portal or the API is deleted whether or not Overwrite Protection is enabled.

CloudRepo answers a refused write with 409 Conflict and an explanation in the response body. How much of that reaches you depends on which client you are using.

npm shows the message. npm publish prints the response body after the status, stating that the version already exists and overwrites are disabled for the repository.

twine shows the message only on request. twine upload prints the status line, HTTPError: 409 Conflict, and prints the response body only when you run it with --verbose.

Maven does not. mvn deploy reports only the HTTP status and its reason phrase, so the entire explanation you get is:

status code: 409, reason phrase: Conflict

The body CloudRepo sends is not displayed. This is the Maven client’s behavior, not a fault in the server or a sign of a broken repository: the publish was refused on purpose, by a policy setting. If you are troubleshooting a Maven or Gradle publish, see Maven Overwrite Protection for what to do about it.

On Maven repositories, two things that Maven itself re-authors on every publish are exempt, so a protected repository still behaves the way Maven and Gradle expect:

  • SNAPSHOT versions. Any file published under a version directory ending in -SNAPSHOT may always be overwritten. This covers both the plain form (app-1.0.0-SNAPSHOT.jar) and the unique/timestamped form (app-1.0.0-20260101.120000-1.jar).
  • The metadata index. maven-metadata.xml, along with its own checksum and signature sidecars (.md5, .sha1, .sha256, .sha512, .asc). These index files are rewritten every time a new version is published.

A checksum or signature sidecar that belongs to an artifact, such as app-1.0.0.jar.sha1, is not exempt. It is written once alongside its release and is protected along with it.

The same two exemptions apply to a file you upload through the Admin Portal.

Python and npm repositories have no mutable-version convention, so no version is exempt there.

Docker repositories do not offer Overwrite Protection, and the card does not appear in their settings. A hosted Docker repository has the Immutable Tags card in its place, Docker’s equivalent: while it is on, a pushed tag keeps its image and cannot be deleted, and latest and cosign’s signature tags still move. See Immutable Tags.

A repository must be empty before you can delete it. Its Trash counts, and so do a proxy’s cached copies. If those are all that’s left, the portal asks you to confirm and sign in again, because the delete removes them for good. The API refuses that delete with a 409 and the code trash_not_empty, so finish it in the portal. To delete one:

  1. Open the repository’s Settings, then click Delete Repository.

    Expected: a confirmation dialog.

  2. Type the repository’s name to confirm, and confirm.

    Expected: the repository is gone from the list. If it still holds files, nothing is deleted and CloudRepo tells you so.

Other cards in the repository settings are specific to the repository’s format:

View as Markdown