https://prefect.io logo
Title
s

scott

12/12/2022, 8:32 PM
I don’t see any docs on what the process is for updating code for flows deployed to Prefect Cloud? Is there something like
prefect deployment update
? Do you just nuke your deployment.yaml file, and rerun
prefect deployment build
then
prefect deployment apply foo-deployment.yaml
? Maybe it depends on where storage is located? Im using GCS storage.
1
k

Kalise Richmond

12/12/2022, 9:00 PM
Hi @scott, you would just rebuild and apply the new deployment.
s

scott

12/12/2022, 9:00 PM
Okay, thanks. I assume you then delete the old deployment file?
Or does it get updated?
k

Kalise Richmond

12/12/2022, 9:01 PM
You can also run the build command with a
--apply
which would combine the two commands. It just overwrites the old deployment file if your using the same name.
s

scott

12/12/2022, 9:06 PM
Thanks!