Action Commands
Manage actions using the CLI
Action Commands
Manage actions for executing tasks triggered by events, webhooks, or schedules.
Usage
weikio actions [ActionId] [command] [options]
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | No | ID of the action (required for some operations) |
Subcommands
ls
List all actions.
Usage:
weikio actions ls
Example:
weikio actions ls
run
Run an action.
Usage:
weikio actions run <ActionId>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action to run |
Example:
weikio actions run my-action
webtrigger
Manage web triggers for actions.
Usage:
weikio actions <ActionId> webtrigger [command]
webtrigger add
Add a web trigger to an action.
Usage:
weikio actions <ActionId> webtrigger add <TriggerPath>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
| TriggerPath | Yes | Path for the web trigger |
Example:
weikio actions my-action webtrigger add /webhooks/my-trigger
webtrigger delete
Delete a web trigger from an action.
Usage:
weikio actions <ActionId> webtrigger delete <TriggerId>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
| TriggerId | Yes | ID of the trigger to delete |
Example:
weikio actions my-action webtrigger delete trigger-123
eventtrigger
Manage event triggers for actions.
Usage:
weikio actions <ActionId> eventtrigger [command]
eventtrigger add
Add an event trigger to an action.
Usage:
weikio actions <ActionId> eventtrigger add <EventDefinitionId>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
| EventDefinitionId | Yes | ID of the event definition to trigger on |
Example:
weikio actions my-action eventtrigger add my-event
eventtrigger delete
Delete an event trigger from an action.
Usage:
weikio actions <ActionId> eventtrigger delete <TriggerId>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
| TriggerId | Yes | ID of the trigger to delete |
Example:
weikio actions my-action eventtrigger delete trigger-123
scheduletrigger
Manage schedule triggers for actions.
Usage:
weikio actions <ActionId> scheduletrigger [command]
scheduletrigger add
Add a schedule trigger to an action.
Usage:
weikio actions <ActionId> scheduletrigger add <CronExpression>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
| CronExpression | Yes | Cron expression for the schedule |
Example:
weikio actions my-action scheduletrigger add "0 0 * * *"
scheduletrigger delete
Delete a schedule trigger from an action.
Usage:
weikio actions <ActionId> scheduletrigger delete <TriggerId>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
| TriggerId | Yes | ID of the trigger to delete |
Example:
weikio actions my-action scheduletrigger delete trigger-123
scheduletrigger ls
List all schedule triggers for an action.
Usage:
weikio actions <ActionId> scheduletrigger ls <ActionId>
Arguments:
| Name | Required | Description |
|---|---|---|
| ActionId | Yes | ID of the action |
Example:
weikio actions my-action scheduletrigger ls my-action