sd init
Make the current directory a seeds project.
sd init --prefix ab
sd init --force # restore missing files; never changes the id or prefix
- Writes
.seeds/config.toml(with[project] prefix),.seeds/project-idand.seeds/.gitignorein the current directory. A parent project is not consulted. The store itself is created by the first write. - The ledger a project writes to is named by its prefix and project id
together. Changing either moves the project to a different, empty ledger
and strands every seed already written. So:
initin a project that already has an id is refused (exit 4) and writes nothing.--forceonly restores missing files. It keeps the existing id, and asking it to change a configured prefix is refused (exit 5).
- Commit
config.tomlandproject-id. - The default prefix is
$SEEDS_PREFIX, elsesd. - Explicit
--store,--quipuand--graphoverrides are refused (exit 2) before any files are written.initconfigures the current directory; it does not provision a store or a remote project.
--json: {path, prefix, project_id, graph, created, kept}.