is there a way to run a deployment directly in the...
# prefect-cloud
j
is there a way to run a deployment directly in the terminal? rn i run
prefect deployment run
and have to hop into the UI to see the logs. It'd be great to run a command and see the logs right in the terminal
c
There are two options for that depending on how you think of your flows: • you may not even need the concept of a deployment; you could simply call your flow function directly (and it will still be monitored and tracked by the backend) • if you do want the deployment interface, you could use the
.serve
method on your flow to create a deployment and spin up a runner for it; then when you call
prefect deployment run
you can watch the serving process to see run logs in realtime
🙌 1
j
thx @Chris White! makes sense. cc @Rowdy