@webhouse/cms-cli 0.1.2 → 0.1.3
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.
- package/README.md +24 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,16 +5,19 @@ CLI for [@webhouse/cms](https://github.com/webhousecode/cms) — scaffold projec
|
|
|
5
5
|
## Quick start
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
# 1.
|
|
8
|
+
# 1. Install the CLI globally
|
|
9
|
+
npm install -g @webhouse/cms-cli
|
|
10
|
+
|
|
11
|
+
# 2. Create a new project
|
|
9
12
|
npm create @webhouse/cms my-site
|
|
10
13
|
cd my-site
|
|
11
14
|
npm install
|
|
12
15
|
|
|
13
|
-
#
|
|
16
|
+
# 3. Add your AI key (optional, for AI content generation)
|
|
14
17
|
echo "ANTHROPIC_API_KEY=sk-ant-..." >> .env
|
|
15
18
|
|
|
16
|
-
#
|
|
17
|
-
|
|
19
|
+
# 4. Start developing
|
|
20
|
+
cms dev
|
|
18
21
|
```
|
|
19
22
|
|
|
20
23
|
Your site is running at `http://localhost:3000` with a full REST API.
|
|
@@ -81,7 +84,7 @@ curl -X POST http://localhost:3000/api/content/posts \
|
|
|
81
84
|
|
|
82
85
|
**B) Via AI generation** (from terminal)
|
|
83
86
|
```bash
|
|
84
|
-
|
|
87
|
+
cms ai generate posts "Write a blog post about TypeScript best practices"
|
|
85
88
|
```
|
|
86
89
|
|
|
87
90
|
**C) Via Claude Code** (AI-assisted development)
|
|
@@ -95,7 +98,7 @@ Claude Code will edit `cms.config.ts`, call the API to create content, and verif
|
|
|
95
98
|
### Step 4: Build & deploy
|
|
96
99
|
|
|
97
100
|
```bash
|
|
98
|
-
|
|
101
|
+
cms build # Generates static HTML, sitemap, llms.txt
|
|
99
102
|
```
|
|
100
103
|
|
|
101
104
|
Output goes to `dist/` — deploy anywhere (Fly.io, Vercel, Cloudflare Pages, etc.)
|
|
@@ -116,13 +119,13 @@ Claude: I'll set up the project for you.
|
|
|
116
119
|
You: Create a blog post about AI-native CMS
|
|
117
120
|
|
|
118
121
|
Claude: I'll use the AI content generator.
|
|
119
|
-
[runs:
|
|
122
|
+
[runs: cms ai generate posts "Write about AI-native CMS"]
|
|
120
123
|
✓ Created: why-ai-native-cms-is-the-future
|
|
121
124
|
Cost: $0.0096 | Tokens: 195 in / 602 out
|
|
122
125
|
|
|
123
126
|
You: Build it
|
|
124
127
|
|
|
125
|
-
Claude: [runs:
|
|
128
|
+
Claude: [runs: cms build]
|
|
126
129
|
✓ Build complete — 6 pages in dist/
|
|
127
130
|
```
|
|
128
131
|
|
|
@@ -155,14 +158,23 @@ At least one AI key is required for `cms ai` commands. Anthropic is used by defa
|
|
|
155
158
|
## Installation
|
|
156
159
|
|
|
157
160
|
```bash
|
|
158
|
-
# Global install
|
|
161
|
+
# Global install (recommended) — gives you the `cms` command directly
|
|
159
162
|
npm install -g @webhouse/cms-cli
|
|
160
163
|
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
cms --version
|
|
165
|
+
cms dev
|
|
166
|
+
cms ai generate posts "..."
|
|
167
|
+
```
|
|
163
168
|
|
|
164
|
-
|
|
169
|
+
> **Note:** Do not use `npx cms` — npm will resolve it to an unrelated package called `cms`.
|
|
170
|
+
> Use `npx @webhouse/cms-cli` if you prefer not to install globally, or install as a project dependency.
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
# As a project dependency (added automatically by `npm create @webhouse/cms`)
|
|
165
174
|
npm install @webhouse/cms-cli
|
|
175
|
+
|
|
176
|
+
# Then use via npx within the project
|
|
177
|
+
npx @webhouse/cms-cli dev
|
|
166
178
|
```
|
|
167
179
|
|
|
168
180
|
## Documentation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webhouse/cms-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "CLI for @webhouse/cms — init, dev, build, and AI content tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@webhouse/cms": "^0.1.
|
|
52
|
-
"@webhouse/cms-ai": "^0.1.
|
|
51
|
+
"@webhouse/cms": "^0.1.3",
|
|
52
|
+
"@webhouse/cms-ai": "^0.1.3",
|
|
53
53
|
"@hono/node-server": "^1.13.7",
|
|
54
54
|
"jiti": "^2.4.2",
|
|
55
55
|
"citty": "^0.1.6",
|