---
title: "CLI — Webhooks"
description: "Metalhost CLI commands for webhook subscriptions and delivery logs."
url: "https://metalhost.net/docs/developers/guides/cli-webhooks"
---

# CLI — Webhooks

`metalhost webhook` registers HTTPS endpoints for resource events. Deliveries are signed with HMAC-SHA256.

## Commands

| Command | What it does |
| --- | --- |
| `webhook list` | List subscriptions. |
| `webhook create --name ... --endpoint ... --event ...` | Create (secret shown once). |
| `webhook get\|update\|delete NAME` | Manage subscriptions. |
| `webhook deliveries NAME` | Recent delivery attempts. |

```
metalhost webhook create \
  --name webhook-subscriptions/deploy-hook \
  --endpoint https://hooks.example.com/metalhost \
  --event compute.vm.* \
  --event ops.operation.completed
```

## What's next

- [Go SDK — Webhooks](https://metalhost.net/docs/developers/guides/sdk-webhooks.md) — HMAC verification code
- [Examples → webhooks](https://metalhost.net/docs/developers/examples.md#webhooks)
