easy-cms
v0.24.0
Published
Command line tool for Easy CMS
Readme
easy-cms
The Easy CMS command line: migrations, generated types, users, backups and the standalone server. Part of Easy CMS, the embedded, code-first headless CMS for Nuxt and Next.js.
Install
npm install --save-dev easy-cms # in a Nuxt or Next.js app
npm install easy-cms # standalone: the CLI is the serverOr pnpm add, yarn add or bun add.
Usage
npx easy-cms migrate:create <name> # a migration for config changes
npx easy-cms migrate # apply pending migrations
npx easy-cms migrate:status
npx easy-cms generate:types [--out file.ts]
npx easy-cms create-admin [--email [email protected]] [--name] [--role]
npx easy-cms serve [--port 4000] [--watch]
npx easy-cms run-scheduled # due scheduled jobs, webhook and email retries (cron)
npx easy-cms backup <file> # SQLite snapshot while the CMS runs
npx easy-cms copy --from <config> # copy content to another databaseWith pnpm, Yarn or Bun: pnpm exec easy-cms …, yarn easy-cms …, bunx easy-cms …. Every
command loads .env from the project root and takes --config <file>, --cwd <dir> and
--help. Plugins can add commands, such as nested:rebuild.
Links
CLI · Documentation (ภาษาไทย) · GitHub
MIT License
