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

#  

# `prefect shell`

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

> [!NOTE]
>
> Serve and watch shell commands as Prefect flows.

## `prefect shell watch`

```command theme={null}
prefect shell watch [OPTIONS] COMMAND
```

> [!NOTE]
>
> Execute a shell command and observe it as a Prefect flow.

> **Arguments**
>
> **COMMAND** `string` *required*

> **Options**
>
> **--log-output**
>
> Log output to Prefect.
>
> **--flow-run-name**
>
> Name of the flow run.
>
> **--flow-name**
>
> Name of the flow.
>
> **--stream-stdout**
>
> Stream output.
>
> **--tag**
>
> Tags for the flow run (repeatable).

## `prefect shell serve`

```command theme={null}
prefect shell serve [OPTIONS] COMMAND
```

> [!NOTE]
>
> Create and serve a deployment that runs a shell command.

> **Arguments**
>
> **COMMAND** `string` *required*

> **Options**
>
> **--flow-name**
>
> Name of the flow.
>
> **--deployment-name**
>
> Name of the deployment.
>
> **--tag**
>
> Deployment tags (repeatable).
>
> **--stream-stdout**
>
> Stream output.
>
> **--cron-schedule**
>
> Cron schedule.
>
> **--timezone**
>
> Timezone for the schedule.
>
> **--concurrency-limit**
>
> Max concurrent flow runs.
>
> **--run-once**
>
> Run once instead of forever.
