docs/v3/api-ref/cli/automations.mdx
prefect automationsprefect automations [OPTIONS] COMMAND [ARGS]...
prefect automations lsprefect automations ls [OPTIONS]
prefect automations inspectprefect automations inspect [OPTIONS] [NAME]
Arguments:
name: the name of the automation to inspect
id: the id of the automation to inspect
yaml: output as YAML
json: output as JSON
Examples:
`$ prefect automation inspect "my-automation"`
`$ prefect automation inspect --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"`
`$ prefect automation inspect "my-automation" --yaml`
`$ prefect automation inspect "my-automation" --output json`
`$ prefect automation inspect "my-automation" --output yaml`
prefect automations resumeprefect automations resume [OPTIONS] [NAME]
Arguments:
name: the name of the automation to resume
id: the id of the automation to resume
Examples:
`$ prefect automation resume "my-automation"`
`$ prefect automation resume --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"`
prefect automations enableprefect automations enable [OPTIONS] [NAME]
Arguments:
name: the name of the automation to resume
id: the id of the automation to resume
Examples:
`$ prefect automation resume "my-automation"`
`$ prefect automation resume --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"`
prefect automations pauseprefect automations pause [OPTIONS] [NAME]
Arguments:
name: the name of the automation to pause
id: the id of the automation to pause
Examples:
`$ prefect automation pause "my-automation"`
`$ prefect automation pause --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"`
prefect automations disableprefect automations disable [OPTIONS] [NAME]
Arguments:
name: the name of the automation to pause
id: the id of the automation to pause
Examples:
`$ prefect automation pause "my-automation"`
`$ prefect automation pause --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"`
prefect automations deleteprefect automations delete [OPTIONS] [NAME]
$ prefect automation delete "my-automation"
$ prefect automation delete --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
$ prefect automation delete --all
</Note>
prefect automations createprefect automations create [OPTIONS]
$ prefect automation create --from-file automation.yaml
$ prefect automation create -f automation.json
$ prefect automation create --from-json '{"name": "my-automation", "trigger": {...}, "actions": [...]}'
$ prefect automation create -j '[{"name": "auto1", ...}, {"name": "auto2", ...}]'
</Note>
prefect automations updateprefect automations update [OPTIONS]
$ prefect automation update --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" --from-file automation.yaml
$ prefect automation update --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" -f automation.json
$ prefect automation update --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" --from-json '{"name": "updated-automation", "trigger": {...}, "actions": [...]}'
</Note>