ksp new
DocsCLI Reference — Core & Lifecycleksp new

ksp new

Create a brand new KSP application or service boilerplate project from scratch.

Core & Lifecycle

Purpose

Create a brand new KSP application or service boilerplate project from scratch.

Syntax

Command-line specification
bash / powershell
ksp new <PROJECT_NAME> [OPTIONS]

Arguments

ArgumentDescription
<PROJECT_NAME>Name of the new project directory and target crate/package.

Options & Flags

Option FlagDescription
--template <LANG>Target language/framework template: `rust-server`, `rust-client`, `python-sdk`, `go-service`.
--gitAutomatically initialize a Git repository and generate a `.gitignore`.

Example Usage

Example command
ksp new secure-relay --template rust-server --git

Expected Output

  [+] Creating project directory: secure-relay/
  [+] Writing Cargo.toml (KSP v0.1.0 dependency added)
  [+] Writing src/main.rs (Server boilerplate with X25519 handshake)
  [+] Initialized empty Git repository in secure-relay/.git/

  ✔ Project 'secure-relay' ready!
    Next steps:
      cd secure-relay
      cargo run
Implementation Notes

Scaffolds best-practice directory structures with proper error handling and secure default cipher suites pre-configured.