Skip to main content

prefect.cli.server

Server command — native cyclopts implementation. Start and manage the Prefect server.

Functions

start

Start a Prefect server instance.

status

Check the status of the Prefect server.

stop

Stop a Prefect server instance running in the background.

reset

Drop and recreate all Prefect database tables.

upgrade

Upgrade the Prefect database.

downgrade

Downgrade the Prefect database.

revision

Create a new migration for the Prefect database.

stamp

Stamp the revision table with the given revision; don’t run any migrations.

list_services

List all available services and their status.

start_services

Start all enabled Prefect services in one process.

stop_services

Stop any background Prefect services that were started.

run_manager_process

Internal entrypoint for background services.