Hi @Marvin - question for you. I’m currently runn...
# ask-marvin
c
Hi @Marvin - question for you. I’m currently running several flows on my desktop using function.serve(). In Prefect Cloud, by default the deployment shows up in my “default” workspace. How do I target a different workspace - one that's in my Enterprise account?
n
@Marvin question for you. I’m currently running several flows on my desktop using function.serve(). In Prefect Cloud, by default the deployment shows up in my “default” workspace. How do I target a different workspace - one that's in my Enterprise account?
it looks like the tag didnt work somehow 🧐
m
To target a different workspace in your Enterprise account on Prefect Cloud, you can use the
prefect cloud workspace set
command. Here is the command you need:
Copy code
sh
$ prefect cloud workspace set --workspace "enterprise_account_name/workspace_name"
Replace
enterprise_account_name
with the handle of your Enterprise account and
workspace_name
with the name of the workspace you want to target. Regarding the use of
function.serve()
, the document indicates that deployments created with this method execute the code on the machine where it is created. If you want to define other remote infrastructure, you will need to configure that separately. As of now, it seems that
function.serve()
does not provide a direct way to specify a Prefect Cloud workspace. It would create deployments visible in the UI, but the targeting of a specific workspace would have to be managed through the CLI command shown above. Should you require more detailed instructions or clarification, please let me know, albeit I'm sure the thrill of your day won't be affected by my response.
upvote 1
👍 1