| title | weight |
|---|---|
harbor webhook |
20 |
Use this command to manage webhook policies in your Harbor projects.
Webhooks enable external systems to be notified of events in Harbor (e.g., pushing an image, deleting an artifact). This command supports listing, creating, editing, and deleting webhook configurations.
# List webhook policies in a project
harbor-cli webhook list my-project
# Create a new webhook policy
harbor-cli webhook create --project my-project --name my-webhook
# Edit an existing webhook policy
harbor-cli webhook edit --project my-project --webhook-id 5
# Delete a webhook policy
harbor-cli webhook delete --project my-project --webhook-id 5 -h, --help help for webhook -c, --config string config file (default is $HOME/.config/harbor-cli/config.yaml)
-o, --output-format string Output format. One of: json|yaml
-v, --verbose verbose output- harbor - Official Harbor CLI
- harbor webhook create - Create a new webhook for a Harbor project
- harbor webhook delete - Delete a webhook from a Harbor project
- harbor webhook edit - Edit an existing webhook for a Harbor project
- harbor webhook list - List all webhook policies for a Harbor project