First Steps
You need a CloudRepo account. If you have none, sign up first.
1. Create a repository. In the admin portal, click Repositories, then Create Repository. Choose Maven, keep Hosted, type a Name, and click Create repository.
2. Create a token. Click Repository Tokens, then Create token (Create your first token if you have none). Type a Name, choose Download and publish packages, tick your repository, and click Create token. Click Copy: CloudRepo shows the token once.
3. Put the token in your shell. Run this, paste the token, and press Enter. The shell shows nothing.
read -rs CLOUDREPO_TOKEN && export CLOUDREPO_TOKEN4. Publish a sample. Save your credential in ~/.m2/settings.xml. Maven reads the token from
CLOUDREPO_TOKEN. Put your own email address in place of you@example.com. Your username is the email
address of the account that created the token.
<settings> <servers> <server> <id>cloudrepo</id> <username>you@example.com</username> <password>${env.CLOUDREPO_TOKEN}</password> </server> </servers></settings>In an empty directory, save this pom.xml. Put your own group and name in place of com.example and
my-library if you like, and use the same ones in step 5.
<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>my-library</artifactId> <version>1.0.0</version>
<distributionManagement> <repository> <id>cloudrepo</id> <url>https://your-org.mycloudrepo.io/repositories/your-repo</url> </repository> </distributionManagement></project>mvn --batch-mode deployExpected: Uploaded to cloudrepo: for the POM and the JAR, then BUILD SUCCESS.
5. Install it from a second project. In another empty directory, save this pom.xml:
<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>my-app</artifactId> <version>1.0.0</version>
<repositories> <repository> <id>cloudrepo</id> <url>https://your-org.mycloudrepo.io/repositories/your-repo</url> </repository> </repositories>
<dependencies> <dependency> <groupId>com.example</groupId> <artifactId>my-library</artifactId> <version>1.0.0</version> </dependency> </dependencies></project>Build it with a local repository of its own, so Maven downloads my-library from CloudRepo instead of
using the copy mvn deploy left on this machine:
mvn --batch-mode -Dmaven.repo.local=local-repo packageExpected: Downloaded from cloudrepo: for my-library-1.0.0.jar, then BUILD SUCCESS.
1. Create a repository. In the admin portal, click Repositories, then Create Repository. Choose Maven, keep Hosted, type a Name, and click Create repository.
2. Create a token. Click Repository Tokens, then Create token (Create your first token if you have none). Type a Name, choose Download and publish packages, tick your repository, and click Create token. Click Copy: CloudRepo shows the token once.
3. Put the token in your shell. Run this, paste the token, and press Enter. The shell shows nothing.
read -rs CLOUDREPO_TOKEN && export CLOUDREPO_TOKEN4. Publish a sample. In an empty directory, save these two files. The build applies maven-publish,
sets the group and version, and reads the token from CLOUDREPO_TOKEN. Put your own group and name
in place of com.example and my-library if you like, and use the same ones in step 5. Put your own
email address in place of you@example.com. Your username is the email address of the account that
created the token.
rootProject.name = "my-library"plugins { `java-library` `maven-publish`}
group = "com.example"version = "1.0.0"
publishing { publications { create<MavenPublication>("library") { from(components["java"]) } } repositories { maven { url = uri("https://your-org.mycloudrepo.io/repositories/your-repo") credentials { username = "you@example.com" password = providers.environmentVariable("CLOUDREPO_TOKEN").get() } } }}gradle publishExpected: BUILD SUCCESSFUL.
5. Install it from a second project. In another empty directory, save these two files. Use your own
email address in place of you@example.com again:
rootProject.name = "my-app"plugins { java}
repositories { maven { url = uri("https://your-org.mycloudrepo.io/repositories/your-repo") credentials { username = "you@example.com" password = providers.environmentVariable("CLOUDREPO_TOKEN").get() } }}
dependencies { implementation("com.example:my-library:1.0.0")}gradle dependencies --configuration runtimeClasspathExpected: com.example:my-library:1.0.0 in the tree, with no FAILED after it.
1. Create a repository. In the admin portal, click Repositories, then Create Repository. Choose npm, keep Hosted, type a Name, and click Create repository.
2. Create a token. Click Repository Tokens, then Create token (Create your first token if you have none). Type a Name, choose Download and publish packages, tick your repository, and click Create token. Click Copy: CloudRepo shows the token once.
3. Put the token in your shell. Run this, paste the token, and press Enter. The shell shows nothing.
read -rs NPM_TOKEN && export NPM_TOKEN4. Publish a sample. Add this line to ~/.npmrc. npm sends NPM_TOKEN to your repository and
to no other registry. Keep the trailing /.
//your-org.mycloudrepo.io/repositories/your-repo/:_authToken=${NPM_TOKEN}In an empty directory, save this package.json. Put your own name in place of my-library if you like,
and use the same one in step 5.
{ "name": "my-library", "version": "1.0.0"}npm publish --registry https://your-org.mycloudrepo.io/repositories/your-repo/Expected: + my-library@1.0.0.
5. Install it from a second project. In another empty directory, save this package.json and
install:
{ "name": "my-app", "version": "1.0.0", "dependencies": { "my-library": "1.0.0" }}npm install --registry https://your-org.mycloudrepo.io/repositories/your-repo/Expected: added 1 package.
1. Create a repository. In the admin portal, click Repositories, then Create Repository. Choose Python, keep Hosted, type a Name, and click Create repository.
2. Create a token. Click Repository Tokens, then Create token (Create your first token if you have none). Type a Name, choose Download and publish packages, tick your repository, and click Create token. Click Copy: CloudRepo shows the token once.
3. Put the token in your shell. Run this, paste the token, and press Enter. The shell shows nothing.
read -rs CLOUDREPO_TOKEN && export CLOUDREPO_TOKEN4. Publish a sample. Work in a virtual environment with twine installed. In an empty directory,
save this pyproject.toml. Put your own name in place of my-library if you like, and use the same one
in step 5.
[build-system]requires = ["setuptools>=68"]build-backend = "setuptools.build_meta"
[project]name = "my-library"version = "1.0.0"Build it, and upload it with your email address and the token:
pip wheel . --no-deps -w distTWINE_USERNAME=you@example.com TWINE_PASSWORD="$CLOUDREPO_TOKEN" \ twine upload --repository-url https://your-org.mycloudrepo.io/repositories/your-repo dist/*Expected: twine prints Uploading my_library-1.0.0-py3-none-any.whl and returns without an error.
5. Install it from a second project. In a new virtual environment, run:
PIP_INDEX_URL="https://you%40example.com:$CLOUDREPO_TOKEN@your-org.mycloudrepo.io/repositories/your-repo/simple/" \ pip install my-libraryExpected: Successfully installed my-library-1.0.0.
1. Create a repository. In the admin portal, click Repositories, then Create Repository. Choose Docker, keep Hosted, type a Name, and click Create repository.
2. Create a token. Click Repository Tokens, then Create token (Create your first token if you have none). Type a Name, choose Download and publish packages, tick your repository, and click Create token. Click Copy: CloudRepo shows the token once.
3. Put the token in your shell. Run this, paste the token, and press Enter. The shell shows nothing.
read -rs CLOUDREPO_TOKEN && export CLOUDREPO_TOKEN4. Publish a sample. Log in with your email address and the token:
echo "$CLOUDREPO_TOKEN" | docker login your-org.mycloudrepo.io \ --username you@example.com \ --password-stdinThen push Docker’s hello-world image to your repository. The name after your-repo/ and the tag are
yours to choose; use the same ones in step 5.
docker pull hello-worlddocker tag hello-world your-org.mycloudrepo.io/repositories/your-repo/hello-world:1.0.0docker push your-org.mycloudrepo.io/repositories/your-repo/hello-world:1.0.0Expected: Login Succeeded, and the push prints a digest: line.
5. Install it from a second project. Run the image from your repository. --pull=always makes Docker
fetch it from CloudRepo instead of using the local copy.
docker run --rm --pull=always your-org.mycloudrepo.io/repositories/your-repo/hello-world:1.0.0Expected: Hello from Docker!.
For CI, use an organization token instead of your own token. It belongs to your organization, not to a person: see Service Keys for Your Pipelines.
You published a package and installed it from a second project. Next, move your repositories from Nexus or Artifactory or add your teammates.
The guided setup
Section titled “The guided setup”The first time you sign in as the owner, the portal opens Create your first repository. It does steps 1 and 2 above for you:
- In Create Repository, choose your format, type a Name, and click Create repository.
- In Create Token, click Create token. The token can read and write that repository, and it expires in 90 days. The portal may ask you to confirm it is you first.
- Configure Client shows the token once. Click Copy, then go on with step 3 above.

To leave the guided setup, click Skip setup and go to Overview.