Skip to main content
Reference · Information

senkani init

Live

Register Senkani's PreToolUse + PostToolUse hooks for the current project. Idempotent.

Syntax

senkani init [--uninstall] [--hook-path <path>]

Behavior

Run from a project root. Registers PreToolUse + PostToolUse hook entries in <project>/.claude/settings.json, pointing at the hook wrapper at ~/.senkani/bin/senkani-hook (auto-detected; override with --hook-path). Idempotent — safe to re-run. Touches only the project's settings file; never modifies the global ~/.claude/settings.json. Does not register the MCP server (SenkaniApp does that on launch) and does not install the hook binary itself.

Example

$ cd /path/to/your/project
$ senkani init                                          # register hooks for this project
$ senkani init --uninstall                              # remove the registration
$ senkani init --hook-path /opt/senkani/senkani-hook    # pin a specific hook binary

Flags

Flag
Description
--uninstall
false
Remove Senkani's hook entries from the project's .claude/settings.json.
--hook-path
path
auto-detect
Path to the senkani-hook binary. Defaults to ~/.senkani/bin/senkani-hook or a sibling .build/release/senkani-hook.
Source: Sources/CLI/InitCommand.swift