Cosmic JS Blog Stay tuned for community news, company announcements and updates from the Cosmic JS team.

Cosmic CLI Apps Release šŸ› ļøšŸš€


We're excited to announce new features for the Cosmic CLI which are sure to speed up your workflow using Cosmic Apps.

To install the latest release, in your preferred command-line tool, run the following command:

npm i cosmic-cli -g

With this latest Cosmic CLI release (1.1.0) you can now:

šŸ” Search Apps
You can search available Cosmic Apps with a simple command, which will give you a list of available apps that include a given keyword.

cosmic browse-apps -q graphql

Viewing apps in the browser is as easy as a command as well.

cosmic view-app portfolio-website


ā¬‡ļø Install and Run Apps Locally
With a simple command, you can now install an App to your Bucket and download it locally.  (CAREFUL! This will overwrite your entire Bucket contents with the App data) You will need to use the login, and use-bucket commands first.

cosmic login
cosmic use-bucket your-bucket-slug
cosmic install-app portfolio-website


Then run the app.  It will automatically be connected to your Bucket.

cosmic start-app


šŸš€ Deploy Apps
You can also deploy the App to the Cosmic App server by running:

cosmic deploy-app


You can also view the CLI steps on each App page by clicking the button "Install via CLI":


The Cosmic CLI is a great way to use all of the powerful features of the Cosmic JS API from the comfort of your command-line tool.  With this release, you now have some powerful capabilities to demo and deploy Cosmic Apps for faster development and collaboration.

If you have any questions about the Cosmic CLI, join us on Slack and reach out to us on Twitter.

You may also like


Happy Presidents Day (or Not My Presidents Day for some)!  We've just added a new feature that makes it easier to find Objects in your Bucket.

Cosmic JS has an understandable hierarchy for content management and can be used as a stand-alone content organizer while a website is being built. Buckets, Object Types, Metafields and Files can act as a sitemap or content portal for a team wanting to organize information more effectively during the development process.  And when the site is ready for development and launch, the API is ready to begin delivering the pre-populated content saving time and money.

In last week's article, Tony told us about the ingredients in The Cosmic Stack, why it is so powerful and what its benefits are. Now that we've seen what The Cosmic Stack looks like, let's look at how we can customize our use of it. 

From a high level, you have three basic ways to use The Cosmic Stack. You have flexibility to use just the CMS API, the CMS API and your own app hosted on the Cosmic app server, or the CMS API with a pre-built content-ready app hosted on the Cosmic App Server.

In this article I’m going to show you how to get the best of both worlds:  A website that is both dynamic, has content powered by the Cosmic JS API that is also a static website.  Our static website will be easily managed by a content editor using the Cosmic JS CMS and the developer will also be able to use Markdown files.

Cosmic JS is on a mission to be the easiest way to manage content for your websites and applications, the latest update includes the ability to save your Cosmic JS objects as a draft.  This means you can continue to perfect your content privately and when it's ready to publish, simply click "Save" and the object will then be published and available on your bucket's API endpoints.  

This is another feature we've added in response to feedback we're getting during the Cosmic JS private beta release.  We'll keep rolling out updates in response to feedback, so please keep the feedback coming!

If you have not signed up, sign up now for Cosmic JS and join us during the private beta release as we continue to build out the best content management platform to handle needs for your websites and applications.

In this short tutorial Iā€™m going to show you how to:

1. Upload an image to your Cosmic JS Bucket via the Cosmic JS API.
2. Alter your image using the powerful Imgix processing service (free with every Cosmic JS Bucket)
3. Add the uploaded image as a Metafield to an Object in your Bucket