home / http-apis / strapi

Strapi CLI

Official · Strapi
72k

Official Strapi CLI for creating projects, running Strapi apps, scaffolding API and content-type code, and moving data between environments.

$npx create-strapi@latest
Language
TypeScript
Stars
71,510
Category
HTTP & APIs
Agent
Ready
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis

Strapi CLI is the command surface around Strapi CMS projects for project creation, local development, code generation, data movement, and Cloud deployment. It is mainly useful to developers and operators working inside a Strapi codebase rather than editors managing content records directly from the shell.

What It Enables
  • Create a new Strapi project and run local develop, build, start, console, and type-generation workflows.
  • Scaffold APIs, content types, controllers, services, policies, middlewares, migrations, and inspect registered content types, routes, hooks, or services.
  • Export, import, and transfer Strapi data and configuration, generate OpenAPI specs, manage admin users, and deploy linked projects to Strapi Cloud.
Agent Fit
  • Works best when an agent is already in a Strapi project and needs to inspect the app, generate files, or operate environments from the shell.
  • Structured output exists but is limited: configuration:dump emits JSON and openapi generate writes JSON, while most list, report, and Cloud commands print human-oriented text or tables.
  • Automation is possible with flags like --non-interactive and --force, but browser login, token prompts, key prompts, and destructive confirmations limit unattended use.
Caveats
  • Most commands are project-local and often boot or inspect the app itself, so this is not a general remote content-management CLI; Strapi's HTTP APIs are usually the better surface for record-level work.
  • Import and transfer can overwrite or delete existing data, and the docs mark OpenAPI generation as experimental.