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

#  

# `prefect flow`

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

> [!NOTE]
>
> View and serve flows.

## `prefect flow ls`

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

> [!NOTE]
>
> View flows.

> **Options**
>
> **--limit**
>
> Maximum number of flows to list.
>
> **--output**
>
> Specify an output format. Currently supports: json

## `prefect flow serve`

```command theme={null}
prefect flow serve [OPTIONS] ENTRYPOINT
```

> [!NOTE]
>
> Serve a flow via an entrypoint.

> **Arguments**
>
> **ENTRYPOINT** `string` *required*

> **Options**
>
> **--name**
>
> The name to give the deployment created for the flow.
>
> **--description**
>
> The description to give the created deployment. If not provided, the description will be populated from the flow's description.
>
> **--version**
>
> A version to give the created deployment.
>
> **--tag**
>
> One or more optional tags to apply to the created deployment.
>
> **--cron**
>
> A cron string that will be used to set a schedule for the created deployment.
>
> **--interval**
>
> An integer specifying an interval (in seconds) between scheduled runs of the flow.
>
> **--anchor-date**
>
> The start date for an interval schedule.
>
> **--rrule**
>
> An RRule that will be used to set a schedule for the created deployment.
>
> **--timezone**
>
> Timezone to used scheduling flow runs e.g. 'America/New\_York'
>
> **--pause-on-shutdown**
>
> If set, provided schedule will be paused when the serve command is stopped. If not set, the schedules will continue running.
>
> **--limit**
>
> The maximum number of runs that can be executed concurrently by the created runner; only applies to this served flow. To apply a limit across multiple served flows, use global\_limit.
>
> **--global-limit**
>
> The maximum number of concurrent runs allowed across all served flow instances associated with the same deployment.
