Skip to main content

prefect dev

Internal Prefect development.

prefect dev build-docs

Builds REST API reference documentation for static display.

Arguments

string

prefect dev build-ui

Installs dependencies and builds UI locally. Requires npm.

Options

Skip installing npm dependencies before building.
Also build the React UI v2 bundle into the Prefect package.

prefect dev ui

Starts a hot-reloading development UI.

prefect dev api

Starts a hot-reloading development API.

Options

API host address.
API port number.
Log level for the server.
Run services in app.

prefect dev start

Starts a hot-reloading development server with API, UI, and agent processes.

Options

Exclude the API service.
Exclude the UI service.

prefect dev build-image

Build a docker image for development.

Options

The architecture to build the container for. Defaults to the architecture of the host Python. [default: x86_64]
The Python version to build the container for. Defaults to the version of the host Python.
An alternative flavor to build, for example ‘conda’. Defaults to the standard Python base image
This will directly pass a —build-arg into the docker build process. Can be added to the command line multiple times.
Print the command instead of running.

prefect dev container

Run a docker container with local code mounted and installed.

Options

Run in background.
Container name.
Start API in container.
Docker image tag.