Skip to content
DevelopersTerminal

Automation CLI reference


Create and operate reusable manual or scheduled work.

On this page

Use this page to inspect every public atoi automation command, its accepted flags, and one runnable example. Return to the CLI reference index to choose another command group.

atoi automationCreate and operate reusable manual or scheduled work.

CommandWhat it does
atoi automation listList Automations, optionally for one Project or only active entries.
atoi automation getRead one Automation and its recent runs.
atoi automation createCreate a manual or scheduled Automation.
atoi automation updateChange an Automation definition or schedule.
atoi automation toggleToggle an Automation between active and paused.
atoi automation triggerStart an Automation run immediately.
atoi automation removeRemove one exact Automation.

#automation list

List Automations, optionally for one Project or only active entries.

atoi automation list [--project <project-id>] [--enabled-only]

FlagTypeDefaultValuesWhat it does
--projectstringSelect a Project by id.
--enabled-onlybooleanReturn only enabled Automations.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation list

bash
atoi automation list --project prj_8k2v --json

#automation get

Read one Automation and its recent runs.

atoi automation get <automation-id> [--automation <automation-id>] [--limit <n>]

FlagTypeDefaultValuesWhat it does
--automationstringSelect an Automation by id instead of a positional id.
--limitnumberLimit the number of returned records.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation get

bash
atoi automation get aut_5k1m --json

#automation create

Create a manual or scheduled Automation.

atoi automation create --name <name> --prompt <prompt> [--description <text>] [--project <project-id>] [--model <model-id>] [--schedule <manual|daily|interval|monthly>] [schedule flags] [--enabled|--no-enabled]

FlagTypeDefaultValuesWhat it does
--name requiredstringSet the Automation name.
--prompt requiredstringSet the Automation prompt.
--descriptionstringDescribe the Automation.
--projectstringSelect a Project by id.
--modelstringSelect a model id.
--schedulestringmanualmanual, daily, interval, monthlyChoose the schedule type.
--hour-utcnumberSet the UTC hour from 0 through 23.
--minute-utcnumberSet the UTC minute from 0 through 59.
--hoursnumberSet the interval from 1 through 8760 hours.
--daysstringSet unique comma-separated weekdays from 0 through 6.
--day-of-monthnumberSet the calendar day from 1 through 31.
--enabledbooleanCreate the Automation enabled or disabled. Pass --no-enabled for false.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation create

bash
atoi automation create --name "Release audit" --prompt "Audit main and return evidence." --schedule daily --hour-utc 14 --minute-utc 30 --json

#automation update

Change an Automation definition or schedule.

atoi automation update <automation-id> [--automation <automation-id>] [--name <name>] [--prompt <prompt>] [--description <text>] [--project <project-id|all|none>] [--model <model-id>] [--schedule <type>] [schedule flags] [--enabled|--no-enabled]

FlagTypeDefaultValuesWhat it does
--automationstringSelect an Automation by id instead of a positional id.
--namestringReplace the Automation name.
--promptstringReplace the Automation prompt.
--descriptionstringReplace the Automation description.
--projectstringSelect a Project, or pass all or none to clear Project scope.
--modelstringSelect a model id.
--schedulestringmanual, daily, interval, monthlyChoose the schedule type.
--hour-utcnumberSet the UTC hour from 0 through 23.
--minute-utcnumberSet the UTC minute from 0 through 59.
--hoursnumberSet the interval from 1 through 8760 hours.
--daysstringSet unique comma-separated weekdays from 0 through 6.
--day-of-monthnumberSet the calendar day from 1 through 31.
--enabledbooleanEnable or disable the Automation. Pass --no-enabled for false.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation update

bash
atoi automation update aut_5k1m --description "Audit the candidate release." --json

#automation toggle

Toggle an Automation between active and paused.

atoi automation toggle <automation-id> [--automation <automation-id>]

FlagTypeDefaultValuesWhat it does
--automationstringSelect an Automation by id instead of a positional id.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation toggle

bash
atoi automation toggle aut_5k1m --json

#automation trigger

Start an Automation run immediately.

atoi automation trigger <automation-id> [--automation <automation-id>] [--input <message>]

FlagTypeDefaultValuesWhat it does
--automationstringSelect an Automation by id instead of a positional id.
--inputstringAdd an input message for this run.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation trigger

bash
atoi automation trigger aut_5k1m --input "Check the candidate tag." --json

#automation remove

Remove one exact Automation.

atoi automation remove <automation-id> [--automation <automation-id>] --confirm

FlagTypeDefaultValuesWhat it does
--automationstringSelect an Automation by id instead of a positional id.
--confirm requiredbooleanConfirm the exact consequential action after you inspect its target.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run automation remove

bash
atoi automation remove aut_5k1m --confirm --json

Was this useful?