docs/v3/api-ref/python/prefect-cli-server.mdx
prefect.cli.serverServer command — native cyclopts implementation.
Start and manage the Prefect server.
start <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L47" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>start()
Start a Prefect server instance.
status <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L258" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>status()
Check the status of the Prefect server.
stop <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L371" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>stop()
Stop a Prefect server instance running in the background.
reset <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L397" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>reset()
Drop and recreate all Prefect database tables.
upgrade <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L428" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>upgrade()
Upgrade the Prefect database.
downgrade <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L469" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>downgrade()
Downgrade the Prefect database.
revision <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L513" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>revision()
Create a new migration for the Prefect database.
stamp <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L537" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>stamp(revision: str)
Stamp the revision table with the given revision; don't run any migrations.
list_services <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L552" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>list_services()
List all available services and their status.
start_services <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L610" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>start_services()
Start all enabled Prefect services in one process.
stop_services <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L678" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>stop_services()
Stop any background Prefect services that were started.
run_manager_process <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L729" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>run_manager_process()
Internal entrypoint for background services.