@semiont/cli
v0.4.3
Published
Semiont CLI - Unified environment management tool
Maintainers
Readme
Semiont CLI
The Semiont CLI provides four categories of commands:
| Category | Commands | Auth model |
|----------|----------|------------|
| Credential | login | Writes a cached token |
| Knowledge Work | browse, gather, mark, match, bind, listen, yield, beckon | Reads the cached token (--bus) |
| Knowledge Base | init, backup, restore, verify, export, import | None / --environment |
| Infrastructure | local, provision, start, stop, check, mv, useradd, clean, watch | --environment |
Installation
npm install -g @semiont/cli
semiont --helpOr from source:
cd apps/cli && npm run build && npm linkCommon Options
All commands support:
| Flag | Short | Description |
|------|-------|-------------|
| --dry-run | | Preview changes without applying |
| --verbose | -v | Show detailed output |
| --quiet | -q | Suppress progress output |
| --output <format> | -o | summary | table | json | yaml |
Quick Start
# 1. Log in (once — token cached for 24 hours)
semiont login --bus http://localhost:4000 --user [email protected]
# 2. Browse the knowledge base
semiont browse resources
# 3. Gather LLM context for a resource
semiont gather resource <resourceId>
# 4. Create an annotation
semiont mark <resourceId> --motivation highlighting --quote "key phrase"Command Categories
Credential — login
Authenticates against a Semiont backend and caches a token. Run this once before using any API command.
semiont login --bus http://localhost:4000 --user [email protected]
semiont login --bus https://api.acme.com # prompts for password interactively
semiont login --refresh --bus https://api.acme.comToken is cached at $XDG_STATE_HOME/semiont/auth/<bus-slug>.json and is valid for 24 hours. Multiple backends can be logged into simultaneously.
See Knowledge Work Commands for the full credential resolution order.
Knowledge Work Commands
These commands call the Semiont backend. They require a cached token from semiont login.
| Flag | Short | Description |
|------|-------|-------------|
| --bus <url> | -b | Backend URL. Fallback: $SEMIONT_BUS |
For full details see Knowledge Work Commands.
browse — inspect resources, annotations, references, events
semiont browse resources
semiont browse resource <resourceId> --annotations
semiont browse annotation <resourceId> <annotationId>
semiont browse entity-typesgather — fetch LLM-optimised context
semiont gather resource <resourceId>
semiont gather annotation <resourceId> <annotationId>mark — create W3C annotations (manual or AI-delegate)
semiont mark <resourceId> --motivation highlighting --quote "key phrase"
semiont mark <resourceId> --motivation linking --delegate --entity-type Personmatch / bind — find and resolve linking annotations
semiont match <resourceId> <annotationId>
semiont bind <resourceId> <annotationId> <targetResourceId>listen — stream domain events as NDJSON
semiont listen
semiont listen resource <resourceId>yield — upload or AI-generate a resource
semiont yield --upload ./paper.pdf
semiont yield --delegate --resource <resourceId> --annotation <annotationId> --storage-uri file://out.mdbeckon — direct a participant's attention
semiont beckon <resourceId>Knowledge Base Commands
These commands manage the knowledge base itself. init needs no flags; the others take --environment.
For full details see Knowledge Base Commands.
semiont init
semiont backup -e production --out backup.tar.gz
semiont restore -e production --file backup.tar.gz
semiont verify --file backup.tar.gz
semiont export -e local --out export.json
semiont import -e local --file export.jsonInfrastructure Commands
These commands manage service lifecycle and deployment. They require --environment (or a default set in ~/.semiontconfig).
| Flag | Short | Description |
|------|-------|-------------|
| --environment <env> | -e | Target environment. Fallback: $SEMIONT_ENV → defaults.environment in ~/.semiontconfig |
For full details see Infrastructure Commands.
# Service lifecycle
semiont provision -e local
semiont start -e local
semiont check -e local
semiont stop -e local
semiont watch -e local
# Administration
semiont useradd -e local --email [email protected]
semiont clean -e localFurther Reading
- Knowledge Work Commands — login, browse, gather, mark, match, bind, listen, yield, beckon
- Knowledge Base Commands — init, backup, restore, verify, export, import
- Infrastructure Commands — service lifecycle, deployment, administration
- Architecture Overview
- Managing Environments
- Adding Commands
- Adding Platforms
- Adding Services
- Adding Service Types
License
Apache License 2.0 — see the LICENSE file for details.
