Part VI · CLI · Plate 01
cns init
Listing 6.1.1 Synopsis
cns init [--domain <slug>] [--archetype <arch>]Description
Bootstrap the current repository with the four CNS substrates.
Prerequisites
Install the organ binaries first. Run from the target Git repository. Set CNS_ROOT to the CNS checkout if using an installed copy of this CLI. THALAMUS_URL is optional and has no default; unset means local-only retrieval.
Actions
- Check Thalamus at THALAMUS_URL (unset:
not configured). - Build
.axon/axon.dbwithaxon index. Embed high-fan-in anchors withaxon anchors embedonly when THALAMUS_URL or AXON_EMBED_URL is set; otherwise reportembed: not configured. - Scaffold Git-tracked
docs/soma/{README.md,concerns/}and render the Git-excluded.soma/operational map. - Provision
.engram/ote.tomlwith retrieval endpoints derived from THALAMUS_URL. Unset: a local-only seat, no remote provider. Template URLs are never copied; an existing OTE is never rewritten. Runengram doctorfor dense-vector backfill. - Install
.git/hooks/{post-commit,post-checkout,post-merge}and local Git exclusions for.axon/,.soma/,.engram/and.cns/.