Cloudsmith Documentation Hub

Welcome to the Cloudsmith Documentation Hub. You'll find comprehensive guides and documentation to help you start working with Cloudsmith as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Import npm

How to bulk import npm packages into Cloudsmith

Bulk Import

Once you have exported all your npm packages you can upload them to Cloudsmith- yay!

A folder of npm packages, in the .tgz format, can be published to Cloudsmith using the script below.
Create the bash script below and call it migrate_npm_to_cs.sh and give it execute privileges

#!/bin/bash
FILES="."
for f in "$2/"*.tgz
do
  echo "Processing $f file..."
  cloudsmith push npm "$1" $f
done

Execute the migrate_npm_to_cs.sh file passing the path of <CLOUDSMITH_ORG>/<CLOUDSMITH_REPO> and <DIR_PATH_TO_DOWNLOADED_NPM_PACKAGES>

./migrate_npm_to_cs.sh cloudsmith_org/cloudsmith_repo <DIR_PATH_TO_DOWNLOADED_NPM_PACKAGES>

Updated 4 months ago


Import npm


How to bulk import npm packages into Cloudsmith

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.


Cloudsmith is the new standard in Package Management and Software Distribution

With support for all major package formats, you can trust us to manage your software supply chain.


Start My Free Trial Now
Cookie Declaration (Manage Cookies)