Go to your terminal session and run this command to set the API URL to point to a self-hosted Prefect server instance:
Copy
prefect config set PREFECT_API_URL="http://127.0.0.1:4200/api"
You can save the API server address in a Prefect profile.
Whenever that profile is active, the API endpoint is at that address.
See Profiles and configuration for more information on profiles and configurable Prefect settings.
# Upgrade to the latest versionprefect server database upgrade -y# Downgrade to the previous versionprefect server database downgrade -y -r -1# Downgrade to a specific revisionprefect server database downgrade -y -r d20618ce678e
For large databases, you may need to increase the timeout:
Copy
export PREFECT_API_DATABASE_TIMEOUT=600prefect server database upgrade -y