Oko/Docs

Command reference

oko hooks install

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

Invocation#

Command
oko 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.

CLI reference#