ksp init
DocsCLIksp init

ksp init

Command Reference

Initialize a new KSP workspace configuration in the current directory (`ksp.toml`).

Purpose

Initialize a new KSP workspace configuration in the current directory (`ksp.toml`).

Syntax

Command-line specification
bash / powershell
ksp init [DIRECTORY] [OPTIONS]

Arguments

ArgumentDescription
[DIRECTORY]Optional target directory to initialize (defaults to current working directory).

Options & Flags

Option FlagDescription
--profile <TYPE>Preset configuration template: `default`, `high-security`, `low-latency`, or `embedded`.
--force, -fOverwrite existing `ksp.toml` configuration if already present.
--jsonOutput initialization status as structured JSON.

Example Usage

Example command
ksp init ./my-project --profile high-security

Expected Output

════════════════════════════════════════════════════════════
══            KSP Workspace Initialization                ══
════════════════════════════════════════════════════════════
  [+] Directory:    C:\projects\my-project
  [+] Profile:      High-Security (ChaCha20-Poly1305 + Strict Replay Window)
  [+] Created file: ksp.toml (248 bytes)
  [+] Created dir:  .ksp/certs/

  ✔ Workspace initialized successfully. Run `ksp doctor` to verify environment.
Implementation Notes

Creates a standard `ksp.toml` configuration file along with a local `.ksp/` cache folder for session state and certificate verification material.