@atria/cli 0.0.3 → 0.0.5

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 +37 -0
  2. package/package.json +16 -3
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @atria/cli
2
+
3
+ CLI commands for atria, a document-first static CMS.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -D @atria/cli
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ npx atria --help
15
+ npx atria init my-project
16
+ npx atria dev my-project --port 3333
17
+ ```
18
+
19
+ ## Commands
20
+
21
+ - `atria init [project-directory] [--force]`
22
+ Creates an atria project structure with `studio/` and `.atria/runtime/`.
23
+ - `atria dev [project-directory] [--port 3333]`
24
+ Serves `.atria/runtime` locally and exposes `/api/health`.
25
+
26
+ ## Programmatic API
27
+
28
+ ```ts
29
+ import { runCli } from "@atria/cli";
30
+
31
+ await runCli(process.argv);
32
+ ```
33
+
34
+ ## Notes
35
+
36
+ - During `dev`, the CLI checks npm for newer `@atria/cli` versions and prints an update hint.
37
+ - Current command scope is intentionally small while the CMS foundation is being stabilized.
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@atria/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "CLI for atria project bootstrap and development",
5
+ "keywords": [
6
+ "atria",
7
+ "cms",
8
+ "cli",
9
+ "developer-tools",
10
+ "scaffold",
11
+ "dev-server"
12
+ ],
5
13
  "license": "MIT",
6
14
  "type": "module",
7
15
  "bin": {
@@ -19,12 +27,17 @@
19
27
  "dist"
20
28
  ],
21
29
  "dependencies": {
22
- "@atria/server": "0.0.3",
23
- "@atria/shared": "0.0.3"
30
+ "@atria/server": "0.0.5",
31
+ "@atria/shared": "0.0.5"
24
32
  },
25
33
  "publishConfig": {
26
34
  "access": "public"
27
35
  },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/atria-io/atria.git",
39
+ "directory": "packages/cli"
40
+ },
28
41
  "scripts": {
29
42
  "build": "tsc -p tsconfig.json",
30
43
  "clean": "rm -rf dist"