prefect.cli.dev

Command line interface for working with Prefect Server

Functions

exit_with_error_if_not_editable_install

exit_with_error_if_not_editable_install() -> None

build_docs

build_docs(schema_path: Optional[str] = None)
Builds REST API reference documentation for static display.

build_ui

build_ui(no_install: bool = False)

ui

ui()
Starts a hot-reloading development UI.

api

api(host: str = SettingsOption(PREFECT_SERVER_API_HOST), port: int = SettingsOption(PREFECT_SERVER_API_PORT), log_level: str = 'DEBUG', services: bool = True)
Starts a hot-reloading development API.

start

start(exclude_api: bool = typer.Option(False, '--no-api'), exclude_ui: bool = typer.Option(False, '--no-ui'))
Starts a hot-reloading development server with API, UI, and agent processes. Each service has an individual command if you wish to start them separately. Each service can be excluded here as well.

build_image

build_image(arch: str = typer.Option(None, help=f'The architecture to build the container for. Defaults to the architecture of the host Python. [default: {platform.machine()}]'), python_version: str = typer.Option(None, help=f'The Python version to build the container for. Defaults to the version of the host Python. [default: {python_version_minor()}]'), flavor: str = typer.Option(None, help="An alternative flavor to build, for example 'conda'. Defaults to the standard Python base image"), dry_run: bool = False)
Build a docker image for development.

container

container(bg: bool = False, name = 'prefect-dev', api: bool = True, tag: Optional[str] = None)
Run a docker container with local code mounted and installed.