> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

#  

# `prefect automation`

```command theme={null}
prefect automation [OPTIONS] COMMAND [ARGS]...
```

> [!NOTE]
>
> Manage automations.

## `prefect automation ls`

```command theme={null}
prefect automation ls [OPTIONS]
```

> [!NOTE]
>
> List all automations.

## `prefect automation inspect`

```command theme={null}
prefect automation inspect [OPTIONS] [NAME]
```

> [!NOTE]
>
> Inspect an automation.

> **Arguments**
>
> **NAME** `string`
>
> An automation's name.

> **Options**
>
> **--id**
>
> An automation's id
>
> **--yaml**
>
> Output as YAML
>
> **--json**
>
> Output as JSON
>
> **--output**
>
> Specify an output format. Currently supports: json, yaml

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect automation inspect "my-automation"
> $ prefect automation inspect --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
> $ prefect automation inspect "my-automation" --output json
> $ prefect automation inspect "my-automation" --output yaml
> ```

## `prefect automation resume`

```command theme={null}
prefect automation resume [OPTIONS] [NAME]
```

> [!NOTE]
>
> Resume an automation.

> **Arguments**
>
> **NAME** `string`
>
> An automation's name.

> **Options**
>
> **--id**
>
> An automation's id

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect automation resume "my-automation"
> $ prefect automation resume --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
> ```

## `prefect automation enable`

```command theme={null}
prefect automation enable [OPTIONS] [NAME]
```

> [!NOTE]
>
> Resume an automation.

> **Arguments**
>
> **NAME** `string`
>
> An automation's name.

> **Options**
>
> **--id**
>
> An automation's id

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect automation resume "my-automation"
> $ prefect automation resume --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
> ```

## `prefect automation pause`

```command theme={null}
prefect automation pause [OPTIONS] [NAME]
```

> [!NOTE]
>
> Pause an automation.

> **Arguments**
>
> **NAME** `string`
>
> An automation's name.

> **Options**
>
> **--id**
>
> An automation's id

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect automation pause "my-automation"
> $ prefect automation pause --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
> ```

## `prefect automation disable`

```command theme={null}
prefect automation disable [OPTIONS] [NAME]
```

> [!NOTE]
>
> Pause an automation.

> **Arguments**
>
> **NAME** `string`
>
> An automation's name.

> **Options**
>
> **--id**
>
> An automation's id

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect automation pause "my-automation"
> $ prefect automation pause --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
> ```

## `prefect automation delete`

```command theme={null}
prefect automation delete [OPTIONS] [NAME]
```

> [!NOTE]
>
> Delete an automation.

> **Arguments**
>
> **NAME** `string`
>
> An automation's name.

> **Options**
>
> **--id**
>
> An automation's id
>
> **--all**
>
> Delete all automations

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect automation delete "my-automation"
> $ prefect automation delete --id "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
> $ prefect automation delete --all
> ```

## `prefect automation create`

```command theme={null}
prefect automation create [OPTIONS]
```

> [!NOTE]
>
> Create one or more automations from a file or JSON string.

> **Options**
>
> **--from-file**
>
> Path to YAML or JSON file containing automation(s)
>
> **--from-json**
>
> JSON string containing automation(s)

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ 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", ...}]'
> ```

## `prefect automation update`

```command theme={null}
prefect automation update [OPTIONS]
```

> [!NOTE]
>
> Update an existing automation from a file or JSON string.

> **Options**
>
> **--id**
>
> The ID of the automation to update
>
> **--from-file**
>
> Path to YAML or JSON file containing the updated automation
>
> **--from-json**
>
> JSON string containing the updated automation

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ 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": [...]}'
> ```
