<a id="list-of-hook-commands"></a>
<!---
This stub is the index file for the hook command reference, the contents table below is
populated by the autogenerate-docs.py script
-->

# List of hook commands

#### IMPORTANT
This list replicates the output of `juju help hook-tool` and of `juju help-tool <name of hook tool>`.

<!--Units deployed with Juju have a suite of tooling available to them, called ‘hook tools’. These commands provide the charm developer with a consistent interface to take action on the unit's behalf, such as opening ports, obtaining configuration, even determining which unit is the leader in a cluster. The listed hook-tools are available in any hook running on the unit, and are only available within ‘hook context’.-->

* [`action-fail`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/action-fail.md)
* [`action-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/action-get.md)
* [`action-log`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/action-log.md)
* [`action-set`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/action-set.md)
* [`application-version-set`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/application-version-set.md)
* [`close-port`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/close-port.md)
* [`config-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/config-get.md)
* [`credential-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/credential-get.md)
* [`goal-state`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/goal-state.md)
* [`is-leader`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/is-leader.md)
* [`juju-log`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/juju-log.md)
* [`juju-reboot`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/juju-reboot.md)
* [`network-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/network-get.md)
* [`open-port`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/open-port.md)
* [`opened-ports`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/opened-ports.md)
* [`relation-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/relation-get.md)
* [`relation-ids`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/relation-ids.md)
* [`relation-list`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/relation-list.md)
* [`relation-model-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/relation-model-get.md)
* [`relation-set`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/relation-set.md)
* [`resource-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/resource-get.md)
* [`secret-add`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-add.md)
* [`secret-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-get.md)
* [`secret-grant`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-grant.md)
* [`secret-ids`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-ids.md)
* [`secret-info-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-info-get.md)
* [`secret-remove`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-remove.md)
* [`secret-revoke`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-revoke.md)
* [`secret-set`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/secret-set.md)
* [`state-delete`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/state-delete.md)
* [`state-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/state-get.md)
* [`state-set`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/state-set.md)
* [`status-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/status-get.md)
* [`status-set`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/status-set.md)
* [`storage-add`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/storage-add.md)
* [`storage-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/storage-get.md)
* [`storage-list`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/storage-list.md)
* [`unit-get`](https://documentation.ubuntu.com/juju/4.0/reference/hook-command/list-of-hook-commands/unit-get.md)
