plankit

pk init

Configures the current repository. One run creates:

docs/plans/ is not created here. The preserve hook creates it when the first plan is preserved, so a repository that never preserves a plan never gains the directory.

Usage

pk init
pk init --release trunk
pk init --dry-run
pk init --format json

--release names the branch to guard and release from; the default is the branch checked out. --no-baseline skips the tag. --dry-run previews without writing. --format json emits one object: root, release, created, baseline, and dryRun.

pk init refuses to run twice; edit .pk.json once it exists, and pk status reads it back and reports the first problem. Commit the created files.

Flags

  --release <value>
        Release branch to guard (default: the branch currently checked out)
  --no-baseline
        Skip creating the v0.0.0 baseline tag
  --dry-run
        Preview without making any changes
  --format <value>
        Output format: text or json (default text)