Skip to content

chainabit agents trigger ​

Published (2.2.0) ​

This command is not included in Published (2.2.0). It is available in Development (2.2.0).

Development (2.2.0) ​

Start a cloud agent run

Synopsis ​

text
chainabit agents trigger <id> --input <text> [options]

Arguments ​

ArgumentDescriptionDefault
<id>Required.—

Options ​

OptionDescriptionDefault
--input <text>Input for the cloud agent. Required.—
--waitWait up to 45 seconds for the run to finish—
--yesConfirm this change—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Starts a run of the cloud agent with the given ID. --input is required and must contain between 1 and 8,000 characters that are not only whitespace; otherwise the command refuses before asking for confirmation. By default the command returns as soon as the run is queued and prints how to follow it. With --wait it keeps checking the run for up to 45 seconds and prints the final status; if the run has not finished by then, it prints the current status marked as timed out and the run keeps going. If the status cannot be read while waiting, the command prints the queued receipt first and then the error. It works in the selected cloud workspace; if none is selected, the command stops and asks you to choose one first (see chainabit workspace use).

This command changes data, so it asks you to confirm in an interactive terminal. Pass --yes to confirm without a prompt. With --json, or when input or output is redirected, there is no prompt: without --yes the command changes nothing, tells you to add --yes and exits with code 2.

To check a run later, use chainabit agents runs.

Output ​

Prints the run ID, its status (queued right after starting), the command that follows the run and, only when --wait timed out, a timed-out note. With --json, the output contains id, status, follow and location (always cloud), plus timedOut set to true when the wait ended before the run finished.

Authentication and permissions ​

You must be signed in. The server decides whether your account may make this change; if it refuses, the command prints the error, exits with a non-zero code and changes nothing. If the connected API does not support the operation yet, the command stops before sending anything.

Examples ​

bash
chainabit agents trigger 00000000-0000-4000-8000-000000000001 --input "Summarize the open tasks." --yes
chainabit agents trigger 00000000-0000-4000-8000-000000000001 --input "Summarize the open tasks." --wait --yes

Built with purpose. chainabit.com