Command reference

oko-cli hooks install

Materializes Oko’s supported hook bundle into local Claude/Codex hook settings.

Invocation

oko-cli hooks install [--preview] [--no-backup] [--oko-root PATH] [--install-root PATH] [--claude-settings PATH] [--codex-hooks PATH]

Inputs and options

  • Optional source/install/settings paths.
  • --preview computes changes only; --no-backup disables backups.

Output and state effect

  • Installs hook files/settings (or previews them) and prints a JSON receipt with changed targets/backups.

Refusals and safe exits

  • Refuses unknown flags, missing option values, an undetectable Oko root without --oko-root, and installer/serialization failures.