Hello everyone, I am new to the prefect and find i...
# ask-community
s
Hello everyone, I am new to the prefect and find it interesting. One question I have is, how do I push different versions of workflow code? Whenever I push a new version of code, prefect cloud does not pick it up. I have to create a new flow to reflect the change. 1. Is there a way to update the current version of code? 2. How to push a new version of the code? I am using prefect cloud
k
Hey @Shyam, whenever you change your code, you just have to re-register for Prefect Cloud to pick up the changes.
s
Thanks @Kevin Kho Is this the command to re-register?
prefect register -p flow.py
k
Yes that’s right but maybe you need a project name so
prefect register --project ….. -p flow.py
or you can have
flow.register(project_name)
inside your Python script.
s
Got it. Thanks @Kevin Kho.