creght-cli 0.13.2 → 0.15.0
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
CHANGED
|
@@ -36,6 +36,8 @@ creght update --check # report versions, install nothing
|
|
|
36
36
|
|
|
37
37
|
The install method is detected, not assumed. A binary vendored by the npm package is updated by running `npm install -g creght-cli@<version>`, so the package's own metadata stays consistent with the binary; a standalone binary is replaced directly with the release archive for the running platform, after its SHA-256 is verified against the release checksums. A local `go build` reports `dev` and is never overwritten.
|
|
38
38
|
|
|
39
|
+
The CLI also keeps itself current. A regular command start spawns this update in the background — at most once per hour — so the command itself is never delayed; the next start runs the new version and prints a one-line notice. Set `CREGHT_NO_AUTO_UPDATE=1` to disable auto-update; the background run logs to `update.log` next to the CLI's `config.json`.
|
|
40
|
+
|
|
39
41
|
## Login
|
|
40
42
|
|
|
41
43
|
For production:
|
|
@@ -167,6 +169,29 @@ creght project create --name="My Project" --from_id=<project_id>
|
|
|
167
169
|
creght project create --name="My Project" --tpl_id=<template_id>
|
|
168
170
|
```
|
|
169
171
|
|
|
172
|
+
## Site Templates
|
|
173
|
+
|
|
174
|
+
Browse the platform's project templates and start a project from one. `list`
|
|
175
|
+
and `get` show each template's name, description, categories, and a preview URL
|
|
176
|
+
you can open to see the template rendered:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
creght tpl list
|
|
180
|
+
creght tpl list --category_id=<id> --limit=20
|
|
181
|
+
creght tpl list --recommend
|
|
182
|
+
creght tpl categories
|
|
183
|
+
creght tpl get <template_id>
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Every command accepts `--json` for machine-readable output.
|
|
187
|
+
|
|
188
|
+
Once a template is chosen, create a project from it. The command prints the new
|
|
189
|
+
project's sites in `project_id/site_id` form, ready for `creght pull`:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
creght tpl use <template_id> --name="My Project"
|
|
193
|
+
```
|
|
194
|
+
|
|
170
195
|
## Pull Site Workspace
|
|
171
196
|
|
|
172
197
|
Download the current remote site workspace into a local directory:
|
package/package.json
CHANGED
|
Binary file
|
package/vendor/darwin-x64/creght
CHANGED
|
Binary file
|
|
Binary file
|
package/vendor/linux-x64/creght
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|