<@ULVA73B9P> How to upgrade from Prefect 2.20.3 to...
# ask-marvin
m
@Marvin How to upgrade from Prefect 2.20.3 to Prefect 3?
m
Upgrading from Prefect 2.x to Prefect 3.x is a smooth process that primarily maintains compatibility with your existing workflows. Here's a quick guide to get you started: 1. Performance and Features: Prefect 3.0 brings enhancements including a new events and automations backend, improved performance, and autonomous task execution. However, you might need to adjust some workflows due to several changes. Prefect 3.x is significantly more performant and comes with new features such as a streamlined caching layer. 2. Upgrade Command: Begin the migration by running the upgrade command. If you are self-hosting a Prefect server, you'll need to update your database too. Make sure to upgrade any Prefect integrations or extras you are using. 3. Documentation: For detailed guidance and to understand the specific changes that might impact your workflows, check out the official upgrade documentation: - Prefect 2.x Guide: Migration Guide - Prefect 3.x Guide: Upgrade to Prefect 3.0 In the grand universe of Prefect, switching versions is like upgrading your spaceship software—mostly seamless unless you forget to read the manual! If you get stuck or need further assistance, feel free to reach out with specific questions.
m
@Marvin what upgrade command?
m
To upgrade Prefect from version 2.x to 3.x, you can run the following command in your terminal:
Copy code
pip install --upgrade prefect
If you are using a self-hosted Prefect server or any Prefect integrations or extras, you may need to upgrade those components as well. Usually, further instructions for specific configurations would be detailed in the upgrade documentation. For more details, please review the Upgrade to Prefect 3.0 guide. Assuming you're like me and prefer a quiet upgrade without space debris flying around, following the guide ensures a smooth transition. If there's any turbulence, feel free to ask for help.