Managing environments with Prefect 2.0 (dev, staging, prod)

A single Prefect 2.0 installation can communicate with multiple Orion APIs, which can help you switch between development, staging, and production environments.

To switch between those, you can use:

prefect profile use dev # or prod or any other profile

As long as each profile points to a different PREFECT_API_URL, you can easily switch between multiple instances.

Each profile can point to:

  • a different Prefect Cloud workspace
  • a different Prefect Orion API endpoint

More information about managing multiple environments with workspaces: