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.
🚀 Deploy Apps
You can also deploy the App to the Cosmic App server by running:
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.