@puckeditor/cli 0.24.0-canary.b7903763 → 0.24.0-canary.ea4778fb
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 +9 -1
- package/dist/bin.mjs +3183 -658
- package/dist/docs/cli.md +132 -49
- package/dist/docs/getting-started.md +2 -0
- package/dist/templates/manifest.json +4 -1
- package/dist/templates/react-router/database.json +1 -1
- package/dist/templates/react-router/package.json +8 -8
- package/dist/templates/react-router-ai/database.json +1 -1
- package/dist/templates/react-router-ai/package.json +8 -8
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -11,16 +11,22 @@ npx @puckeditor/cli init
|
|
|
11
11
|
For coding agents:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
npx @puckeditor/cli init --yes --json
|
|
14
|
+
npx @puckeditor/cli init --yes --json
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
`init` returns a `choose_capabilities` action. Ask the developer which to include rather than choosing for them.
|
|
18
|
+
|
|
17
19
|
Other commands:
|
|
18
20
|
|
|
19
21
|
```sh
|
|
20
22
|
npx @puckeditor/cli add editor # add the Puck editor
|
|
21
23
|
npx @puckeditor/cli add cloud # connect Puck Cloud
|
|
22
24
|
npx @puckeditor/cli add ai # add the Puck AI plugin
|
|
25
|
+
npx @puckeditor/cli add pages # store and publish pages in Puck Cloud
|
|
26
|
+
npx @puckeditor/cli add auth # require Sign in with Puck to edit
|
|
27
|
+
npx @puckeditor/cli pages import database.json # publish pages to Puck Cloud
|
|
23
28
|
npx @puckeditor/cli connect # log in to Puck Cloud again for a new API key
|
|
29
|
+
npx @puckeditor/cli connect preview # ...for a branch of the project
|
|
24
30
|
npx @puckeditor/cli status # show what's set up
|
|
25
31
|
npx @puckeditor/cli doctor # diagnose problems
|
|
26
32
|
npx @puckeditor/cli frameworks # show supported frameworks and versions
|
|
@@ -32,6 +38,8 @@ See the [CLI docs](https://puckeditor.com/docs/cli) for the full JSON contract,
|
|
|
32
38
|
|
|
33
39
|
The CLI collects anonymous usage data. See [Telemetry](https://puckeditor.com/docs/cli#telemetry) for what's sent and how to turn it off.
|
|
34
40
|
|
|
41
|
+
Coding agents: leave this to the developer. Don't turn telemetry off unless they ask.
|
|
42
|
+
|
|
35
43
|
## Development
|
|
36
44
|
|
|
37
45
|
The CLI integrates Puck using the [recipes](../../recipes) as templates. Tests read the recipes directly, and `pnpm build` copies them into `dist/templates`.
|