How to Import and Export Your Cosmic JS Bucket


One of the many benefits of using a Content Management API like Cosmic JS over an installed content management system is the portability and scalability of the applications and content models you can create. Importing and exporting your Cosmic JS Buckets is easy, and allows for quick backups, prototyping and more. In this blog I briefly outline the importing and exporting process within Cosmic JS. 


Export a JSON Bucket

Navigate to Bucket > Settings > Import / Export. To download your data and files into a bucket.json file click "Export".


Import a JSON Bucket

Navigate to Bucket > Settings > Import / Export. To import a Bucket's data and files, upload the bucket.json file. This is the same file that is downloaded when you export a Bucket's data and files. 

Warning: Importing a new Bucket removes all current data and files in your Bucket. This does not, however, affect users or settings.



I hope that you've found this tutorial helpful. If you have questions or comments about Content Editor Features in the Cosmic JS system, I'd love to hear about them. 

carson@cosmicjs.com 

Was this article helpful?

Thank you! Your input helps us improve our articles and resources. If you have any other questions or comments, please contact support.

You may also like


An application for book lovers to view a list of their favorite books.
A website boilerplate satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search.
Cosmic JS makes it easy to manage content for your Bootstrap applications. In this blog we'll quickstart a Bootstrap Landing Page using the Cosmic CLI. This single page website landing page is built using Node.js and a minimal theme from Start Bootstrap.
In this tutorial I'm going to show you how to create a "Conference" app using a little bit of Node, and Cosmic JS.
In this tutorial, I'll show you how to deploy your Gatsby Blog to Netlify and trigger automatic rebuilds on content edits using Cosmic JS Webhooks.
With revision history, you no longer have to worry about editing mistakes. You now have the power to go back in time and revert to to prior versions.