creght-cli 0.7.5 → 0.7.6

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
@@ -428,10 +428,14 @@ Top-level `slug` and `sort` are optional; the `--slug` / `--sort` flags override
428
428
 
429
429
  ```bash
430
430
  creght content create --site_id=<project_id>/<site_id> --collection=prompts --data=./content.json --slug=typography-v02
431
- creght content update --site_id=<project_id>/<site_id> --collection=prompts --id=<content_id> --data=./content.json --sort=15
431
+ creght content update --site_id=<project_id>/<site_id> --collection=prompts --id=<content_id> --sort=15
432
432
  ```
433
433
 
434
- `sort` controls the order editors see in the CMS list — bigger shows first, and `0` is a real value rather than "unset". When neither the flag nor the file sets it, the request omits `sort` entirely: `create` takes the platform default (appended last) and `update` leaves the entry's current sort alone. Use `content update --sort` to reorder; deleting and recreating an entry changes its id, and site versions do not snapshot CMS content, so that cannot be undone.
434
+ `update` applies a partial update, so `--data` is optional there pass `--slug` / `--sort` alone to rename or reorder without re-submitting the body, as in the command above. `create` still requires `--data`.
435
+
436
+ `sort` controls the order editors see in the CMS list, bigger first. Omitting it lets `create` append the entry last and leaves `update`'s current value alone. Use `content update --sort` to reorder; deleting and recreating an entry changes its id, and site versions do not snapshot CMS content, so that cannot be undone.
437
+
438
+ One asymmetry worth knowing: the platform reads a zero `sort` on **create** as "auto-assign, append last", so a literal `0` cannot be created — `create --sort=0` appends. `update --sort=0` does store a real 0.
435
439
 
436
440
  ## Manage Forms
437
441
 
@@ -487,8 +491,10 @@ creght table record delete --site_id=<project_id>/<site_id> --table=appointments
487
491
 
488
492
  `record update` sends a patch body to the backend. Existing fields are merged,
489
493
  and a `null` field value removes that field. Both `create` and `update` accept
490
- `--sort=<n>` with the same semantics as content sort: `0` is a real value, and
491
- omitting the flag leaves `sort` out of the request instead of zeroing it.
494
+ `--sort=<n>`; omitting the flag leaves `sort` out of the request instead of
495
+ zeroing it. Unlike content, a record's `sort` cannot be set to `0` the platform
496
+ ignores a zero sort on record update, so `--sort=0` is rejected there rather than
497
+ silently doing nothing, and on `create` it means "append last".
492
498
 
493
499
  ## Func Backend Code As Files
494
500
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creght-cli",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Creght CLI for syncing local site code with Creght.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/creght-dev/creght-cli#readme",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file