CLI command

probierz gate-install

Install the managed Probierz pre-push gate into a repository while chaining one existing unmanaged hook.

Invocation#

Shell
probierz gate-install <APP_ID>

Required inputs and options#

  • `<appId>` is required. `--repo` defaults to the current directory and must contain `.git/hooks`.

Output and state effects#

Writes the managed `pre-push` script, preserves an existing unmanaged hook as `pre-push.before-probierz-gate`, and returns installation metadata as JSON.

Exact refusals#

  • Missing application ID: `gate-install needs an app ID`; missing repo value: `--repo needs a path`.
  • A path without `.git/hooks` is refused as `not a git working tree: <repo>`.
  • The application manifest is loaded before mutation; an invalid app cannot install a hook.

Source snapshot#

Generated from the Rust binaries at https://github.com/wisent-ai/probierz.git revision `f40fa7ed94a028b56b5a59342eaf55982ba5cf7d`.

Combined help SHA-256: `04bab0ac1e9691119efcb70627b534a73431f51bb44ed8ba81d93cc10afd6569`; binary SHA-256: `08424ee2465261eafaa112d13ef05a20ce1fe1b6479e896341e22fbc55e61d3e`.