v0.3.0Rustywoof v0.3.0 is out — local OSV lockfile auditing and browser WASM secret scanning.Read the release notes
Documentation
CLI Reference

woof hook

Purpose

Manages Git pre-commit hooks to prevent secret leakage.

Synopsis

Synopsiswoof hook <COMMAND>
$ woof hook <COMMAND>

Flags

FlagTypeDescription
installsubcommandInstalls the pre-commit hook into the current git repository.
removesubcommandRemoves the pre-commit hook from the current git repository.
helpsubcommandPrint help for the hook command.
-h, --helpbooleanPrint 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