APIs & SDK
- Overview
- Python SDK Overview
- REST API
- CLI Reference
- prefect artifact
- prefect automation
- prefect block
- prefect concurrency-limit
- prefect config
- prefect dashboard
- prefect deployment
- prefect dev
- prefect event
- prefect flow-run
- prefect flow
- prefect global-concurrency-limit
- prefect init
- prefect profile
- prefect profiles
- prefect server
- prefect shell
- prefect task-run
- prefect task
- prefect variable
- prefect version
- prefect work-pool
- prefect work-queue
- prefect worker
prefect flow
prefect flow [OPTIONS] COMMAND [ARGS]...
View and serve flows.
prefect flow ls
prefect flow ls [OPTIONS]
View flows.
prefect flow serve
prefect flow serve [OPTIONS] ENTRYPOINT
Serve a flow via an entrypoint.
The path to a file containing a flow and the name of the flow function in the format `./path/to/file.py:flow_func_name`. [required]
The name to give the deployment created for the flow.
The description to give the created deployment. If not provided, the description will be populated from the flow’s description.
A version to give the created deployment.
One or more optional tags to apply to the created deployment.
A cron string that will be used to set a schedule for the created deployment.
An integer specifying an interval (in seconds) between scheduled runs of the flow.
The start date for an interval schedule.
An RRule that will be used to set a schedule for the created deployment.
Timezone to used scheduling flow runs e.g. ‘America/New_York’
If set, provided schedule will be paused when the serve command is stopped. If not set, the schedules will continue running.
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.
The maximum number of concurrent runs allowed across all served flow instances associated with the same deployment.
Was this page helpful?