Skip to main content

prefect.cli.server

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

Functions

start

start()
Start a Prefect server instance.

status

status()
Check the status of the Prefect server.

stop

stop()
Stop a Prefect server instance running in the background.

reset

reset()
Drop and recreate all Prefect database tables.

upgrade

upgrade()
Upgrade the Prefect database.

downgrade

downgrade()
Downgrade the Prefect database.

revision

revision()
Create a new migration for the Prefect database.

stamp

stamp(revision: str)
Stamp the revision table with the given revision; don’t run any migrations.

list_services

list_services()
List all available services and their status.

start_services

start_services()
Start all enabled Prefect services in one process.

stop_services

stop_services()
Stop any background Prefect services that were started.

run_manager_process

run_manager_process()
Internal entrypoint for background services.