Skip to main content

Module init

Module init 

Source
Expand description

Initialize a SaveContext workspace.

§Architecture

SaveContext uses a global database architecture:

  • Global init (sc init --global): Creates the shared database at ~/.savecontext/data/savecontext.db. Run this once per machine.
  • Project init (sc init): Creates per-project .savecontext/ directory for JSONL sync exports. Does NOT create a database.

The database is shared across all projects, while each project maintains its own git-friendly JSONL exports.

Functions§

execute
Execute the init command.