docs/v3/api-ref/python/prefect-cli-task.mdx
prefect.cli.taskTask command — native cyclopts implementation.
Work with task scheduling.
task_serve <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/task.py#L29" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>task_serve(*args: Any, **kwargs: Any) -> Any
serve <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/task.py#L49" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>serve(entrypoints: Annotated[Optional[list[str]], cyclopts.Parameter(help='The paths to one or more tasks, in the form of `./path/to/file.py:task_func_name`.')] = None)
Serve the provided tasks so that their runs may be submitted to and executed in the engine.