docs/v3/api-ref/cli/automation.mdx
prefect automationprefect automation [OPTIONS] COMMAND [ARGS]...
prefect automation lsprefect automation ls [OPTIONS]
prefect automation inspectprefect automation 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 automation resumeprefect automation 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 automation enableprefect automation 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 automation pauseprefect automation 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 automation disableprefect automation 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 automation deleteprefect automation delete [OPTIONS] [NAME]
$ prefect automation delete "my-automation"
$ prefect automation delete --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
$ prefect automation delete --all
</Note>
prefect automation createprefect automation 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 automation updateprefect automation 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>