easy-cms 0.22.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -5
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,14 +1,38 @@
1
1
  # easy-cms
2
2
 
3
- Command line tool for [Easy CMS](https://github.com/maritonx/easy-cms). Install it as a dev
4
- dependency; every command loads `.env` from the project root.
3
+ The Easy CMS command line: migrations, generated types, users, backups and the standalone
4
+ server. Part of [Easy CMS](https://github.com/maritonx/easy-cms), the embedded, code-first
5
+ headless CMS for Nuxt and Next.js.
6
+
7
+ ## Install
5
8
 
6
9
  ```bash
7
- npx easy-cms migrate:create <name> # write a migration for config changes
8
- npx easy-cms migrate # apply pending migrations
10
+ npm install --save-dev easy-cms # in a Nuxt or Next.js app
11
+ npm install easy-cms # standalone: the CLI is the server
12
+ ```
13
+
14
+ Or `pnpm add`, `yarn add` or `bun add`.
15
+
16
+ ## Usage
17
+
18
+ ```bash
19
+ npx easy-cms migrate:create <name> # a migration for config changes
20
+ npx easy-cms migrate # apply pending migrations
9
21
  npx easy-cms migrate:status
10
22
  npx easy-cms generate:types [--out file.ts]
11
23
  npx easy-cms create-admin [--email you@example.com] [--name] [--role]
24
+ npx easy-cms serve [--port 4000] [--watch]
25
+ npx easy-cms run-scheduled # due scheduled jobs, webhook and email retries (cron)
26
+ npx easy-cms backup <file> # SQLite snapshot while the CMS runs
27
+ npx easy-cms copy --from <config> # copy content to another database
12
28
  ```
13
29
 
14
- Options: `--config <file>`, `--cwd <dir>`, `--help`.
30
+ With pnpm, Yarn or Bun: `pnpm exec easy-cms …`, `yarn easy-cms …`, `bunx easy-cms …`. Every
31
+ command loads `.env` from the project root and takes `--config <file>`, `--cwd <dir>` and
32
+ `--help`. Plugins can add commands, such as `nested:rebuild`.
33
+
34
+ ## Links
35
+
36
+ [CLI](https://maritonx.github.io/easy-cms/guide/cli) · [Documentation](https://maritonx.github.io/easy-cms/) ([ภาษาไทย](https://maritonx.github.io/easy-cms/th/)) · [GitHub](https://github.com/maritonx/easy-cms)
37
+
38
+ MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-cms",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Command line tool for Easy CMS",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,11 +21,11 @@
21
21
  "node": ">=22.12"
22
22
  },
23
23
  "dependencies": {
24
- "@easy-cms/core": "^0.22.0",
25
- "@easy-cms/admin": "^0.22.0"
24
+ "@easy-cms/core": "^0.22.1",
25
+ "@easy-cms/admin": "^0.22.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@easy-cms/db-sqlite": "^0.22.0"
28
+ "@easy-cms/db-sqlite": "^0.22.1"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"