Skip to content

Commit a5fdf17

Browse files
authored
SP-10: Update docs (#340)
1 parent 25cbe82 commit a5fdf17

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.cursor/skills/asset-registry-endpoints/SKILL.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ export_<uuid>/
7272
### Importing packages
7373

7474
```bash
75-
$CLI config import -d <export_dir> --overwrite
75+
$CLI config import -d <export_dir> --validate --overwrite
7676
```
7777

78+
- `--validate` — performs schema validations before importing. If there are
79+
validation errors the import is **not** performed and the errors are returned.
80+
If there are no errors, the package and its assets are imported normally.
7881
- `--overwrite` — required when updating an existing package
7982
- Without `--overwrite` — creates a **new** package (use for first-time import)
8083

@@ -279,8 +282,8 @@ $CLI config export --packageKeys <package-key> --unzip
279282
# — configuration root must conform to the schema from step 2
280283
# — set spaceId to the package's space (ask the user)
281284

282-
# 5. Import back (--overwrite for existing package, omit for new)
283-
$CLI config import -d <export_dir> --overwrite
285+
# 5. Validate and import (--overwrite for existing package, omit for new)
286+
$CLI config import -d <export_dir> --validate --overwrite
284287
```
285288

286289
## Quick reference

docs/user-guide/agentic-development-guide.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ Add a new JSON file in the `nodes/` directory:
6868

6969
Set `schemaVersion` to the value from the asset descriptor's `assetSchema.version` field (returned by `asset-registry get`). The `spaceId` is required — omitting it causes import errors.
7070

71-
### 5. Import
71+
### 5. Validate and import
7272

7373
```bash
74-
content-cli config import -d <export_dir> --overwrite
74+
content-cli config import -d <export_dir> --validate --overwrite
7575
```
7676

77-
This creates a new version in staging (not deployed). To create a brand-new package instead of updating, omit `--overwrite`.
77+
The `--validate` option performs schema validations for the assets. If there are no schema validations, then the package and its assets are imported. Otherwise, the validation errors are returned and the package import isn't performed.
78+
79+
This creates a new version in staging (not deployed) if there are no schema validation errors. To create a brand-new package instead of updating, omit `--overwrite`.
7880

7981
To later export a staging version, use `--keysByVersion`:
8082

0 commit comments

Comments
 (0)