---
title: "hooks"
summary: "Commands run at a lifecycle seam — bootstrap, pre_release, post_release, post_deploy — or keyed by a job name to replace that job's command."
status: shipped
generated: true
read_when:
  - "Running a command around a deploy or a rollback"
---

This page is generated from the same Go declarations the loader enforces, so it
cannot drift from what `ob validate` accepts.

## Fields on this page

`local` · `run`

## Reference

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `<name>.local` | boolean | `false` | Run on the operator machine instead of the server. |
| `<name>.run` | string | — | Command executed at the lifecycle seam. |