@semiont/cli 0.2.46 → 0.3.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
@@ -309,7 +309,12 @@ For detailed instructions on adding new commands, see the [Adding Commands Guide
309
309
  - `backup` - Create service backups
310
310
  - `restore` - Restore from backups
311
311
 
312
- **Development & Deployment**
312
+ **Knowledge Base Backup/Restore**
313
+ - `backup` - Create a lossless backup of the knowledge base
314
+ - `restore` - Restore a knowledge base from a backup archive
315
+ - `verify` - Verify a backup archive's integrity without restoring
316
+
317
+ **Development & Deployment**
313
318
  - `publish` - Build and publish artifacts (creates new versions, does not deploy)
314
319
  - `update` - Deploy new versions to running services (deploys what publish created)
315
320
  - `test` - Run test suites
@@ -346,6 +351,53 @@ semiont update --service frontend --environment production
346
351
 
347
352
  For services using immutable tags (e.g., git hashes), `update` will only deploy if a newer version exists. For mutable tags (e.g., `:latest`), `update` can force a redeployment even without version changes.
348
353
 
354
+ ### Knowledge Base Backup, Restore, and Verify
355
+
356
+ The `backup`, `restore`, and `verify` commands provide lossless whole-KB backup and restore:
357
+
358
+ - Streams a tar.gz archive containing `.semiont/manifest.jsonl`, per-resource event streams (`.semiont/events/*.jsonl`), and content blobs at the archive root (`{checksum}.{ext}`)
359
+ - Preserves full event history, hash chains, and all metadata
360
+ - On restore, events replay through the EventBus and Stower actor so materialized views and graph rebuild naturally
361
+
362
+ #### Backup
363
+
364
+ ```bash
365
+ semiont backup --environment production --out backup.tar.gz
366
+ ```
367
+
368
+ Options:
369
+ - `--out <path>`, `-o <path>` — Output file path (required)
370
+
371
+ #### Restore
372
+
373
+ ```bash
374
+ semiont restore --environment production --file backup.tar.gz
375
+ ```
376
+
377
+ Options:
378
+ - `--file <path>`, `-f <path>` — Input file path (required)
379
+
380
+ Restore bootstraps a full EventBus + Stower pipeline so events flow through the normal actor system. Materialized views and graph rebuild naturally from the replayed events.
381
+
382
+ #### Verify
383
+
384
+ ```bash
385
+ # Verify a backup archive without importing
386
+ semiont verify --file backup.tar.gz
387
+ ```
388
+
389
+ Options:
390
+ - `--file <path>`, `-f <path>` — Backup file to verify (required)
391
+
392
+ Verify checks:
393
+ - Manifest format and version
394
+ - Hash chain integrity per event stream
395
+ - First/last checksum match against stream summaries
396
+ - Event count match per stream
397
+ - Content blob count match
398
+
399
+ Does not require an environment — reads the archive standalone.
400
+
349
401
  ## MCP (Model Context Protocol) Server
350
402
 
351
403
  The Semiont CLI includes built-in support for MCP, allowing AI assistants to interact with Semiont APIs.