-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Companion Import
Restores a bundle written by ed companion export: episodes,
observations, conversations, beliefs, claims, facts, core memory, the
non-secret reasoner settings, and any media files sitting next to the bundle.
Usage:
ed companion import <path> [--json] [--endpoint <url>]
| Name | Type / values | Default | What it does |
|---|---|---|---|
<path> |
file or directory | required | The bundle.json, or the export directory holding it. |
--json |
flag | off | Emit JSON on stdout. |
--endpoint |
URL | resolution order | Companion API base URL. |
Examples:
ed companion import ~/backups/companion
ed companion import ~/backups/companion/bundle.json --json
--json reports inserted and skipped rows plus media restoration:
{episodesInserted,episodesSkipped,observationsInserted,conversationsInserted, messagesInserted,beliefsInserted,claimsInserted,factsInserted, coreSectionsInserted,settingsInserted,mediaRestored,mediaFailed, pendingEpisodes}.
Importing merges rather than replaces: every record keeps the id it was
exported with, records that already exist are skipped, and nothing is deleted,
so running the same import twice changes nothing the second time. Settings are
only filled in where the companion has none, so a configured reasoner is never
clobbered by a restore. A media/ directory beside the bundle is restored
file by file after the rows land. Episodes arrive unembedded and the companion
starts indexing them in the background; the command reports how many are
queued. A file that is not a companion export, or one written by a newer
companion, is refused before anything is touched.
The backend also rejects malformed source hashes and source URIs that are
absolute or escape the vault. Media filenames that do not match
<64-character-sha256>-<basename> are ignored by the CLI. Each accepted media
file is validated again by the backend before it is written. Individual media
restore failures do not roll back imported rows and do not fail the command;
their basenames are returned in mediaFailed and noted on stderr.
Import is not a replacement or a wipe. Back up the destination first if you need a rollback point for the merged state.
-
ed companion export, the other half -
ed companion status, see the counts after -
ed companion, the rest of this group - All
edcommands
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides