
Meet the Cosmic CLI, an AI-powered command-line interface that brings the full capabilities of the Cosmic platform to your terminal. Build apps, manage content, deploy to production, and orchestrate AI agents, all without leaving your command line.
Install in one command
npm install -g @cosmicjs/cli

From zero to production in minutes
The Cosmic CLI is designed to collapse the traditional development workflow into a handful of commands. What used to require designing schemas, building admin interfaces, writing frontend code, configuring hosting, and setting up CI/CD now looks like this:
cosmic login
cosmic projects create
cosmic content -p "Create 5 recipes with images across different categories"
cosmic build -p "A recipe blog with search and category filtering"
cosmic deploy start --watch
That is a complete, production-ready application with content, a GitHub repository, and a live Vercel deployment.
Why a CLI?
The Cosmic dashboard is a powerful visual environment for managing content and building applications. But developers live in the terminal. Whether you are scripting automations, integrating with CI/CD pipelines, or simply prefer the speed of keyboard-driven workflows, the Cosmic CLI puts every platform capability at your fingertips.