Hi, I'm confused about using agent locally. I star...
# ask-community
m
Hi, I'm confused about using agent locally. I started a prefect server with "prefect server start" I created a project with "prefect create project "myproject"" Then, I ran a local agent with "prefect agent local start -l mylabel" Then I run a dummy workflow with flow.register(project_name="myproject") flow.run_agent() When I go to http://localhost:8080, I can not see my flow. It looks like it is create on Cloud...
k
Hey @montardon, yes that’s right. The agent separate from the server and you would spin it up as other process
Ah ok. You need to do
prefect backend server
to target the server instead of cloud
m
Thank you. It works better! What is the reverse command ?
prefect backend cloud
?
k
Yes exactly
m
👍