CLICommand referencewebhook
See the workflow guide for examples. Global flags such as --json go before the command; see global options.
openship webhook
Manage incoming deploy and job webhooks
openship webhook [options] [command]| Subcommand | Purpose |
|---|---|
list [options] | List a project's incoming webhooks |
create [options] <file> | Create a webhook; credentials in the result must be kept private |
update [options] <id> <file> | Update a webhook using the shared authorization rules |
invoke [options] <id> | Run this webhook's configured action as the current caller |
rotate [options] <id> | Rotate a webhook's credential |
remove [options] <id> | Remove a webhook |
deliveries [options] | Inspect webhook deliveries with cursor pagination |
openship webhook create
Create a webhook; credentials in the result must be kept private
openship webhook create [options] <file>| Argument | Meaning |
|---|---|
file | JSON webhook definition |
| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |
openship webhook deliveries
Inspect webhook deliveries with cursor pagination
openship webhook deliveries [options]| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |
--hook <id> | Only one webhook's deliveries |
--cursor <cursor> | Continue from the returned nextCursor |
--limit <n> | Page size (default: "50") |
openship webhook invoke
Run this webhook's configured action as the current caller
openship webhook invoke [options] <id>| Argument | Meaning |
|---|---|
id | Webhook ID |
| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |
openship webhook list
List a project's incoming webhooks
openship webhook list [options]| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |
openship webhook remove
Remove a webhook
openship webhook remove [options] <id>| Argument | Meaning |
|---|---|
id | Webhook ID |
| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |
-y, --yes | Skip confirmation |
openship webhook rotate
Rotate a webhook's credential
openship webhook rotate [options] <id>| Argument | Meaning |
|---|---|
id | Webhook ID |
| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |
-y, --yes | Skip confirmation |
openship webhook update
Update a webhook using the shared authorization rules
openship webhook update [options] <id> <file>| Argument | Meaning |
|---|---|
id | Webhook ID |
file | JSON webhook patch |
| Option | Meaning |
|---|---|
-p, --project <id> | Project ID |