CLI Reference
woof hook
Purpose
Manages Git pre-commit hooks to prevent secret leakage.
Synopsis
Synopsiswoof hook <COMMAND>
$ woof hook <COMMAND>Flags
| Flag | Type | Description |
|---|---|---|
| install | subcommand | Installs the pre-commit hook into the current git repository. |
| remove | subcommand | Removes the pre-commit hook from the current git repository. |
| help | subcommand | Print help for the hook command. |
| -h, --help | boolean | Print help |
Edge Cases
- Fails gracefully if run outside of a git repository.
Exit Codes
- 0Hook successfully installed or removed.
- 1Not a git repository, or unable to write to the .git/hooks directory.
Examples
woof hook install
$ woof hook install✓ Pre-commit hook installed to .git/hooks/pre-commit
Activates Rustywoof scanning on every git commit.
woof hook remove
$ woof hook remove✓ Pre-commit hook removed.
Deactivates local commit scanning.
woof hook help
$ woof hook helpUsage: woof hook <COMMAND>...
Displays help specifically for the hook subcommands.
How is this guide?
Last updated on 09/11/2026