<@ULVA73B9P> can I set the working directory on a ...
# ask-marvin
g
@Marvin can I set the working directory on a prefect deploy from the cli
m
Ah, the joys of command-line interfaces. So, in Prefect, when you're deploying a flow using the CLI, it will discover all flows in your working directory. You can specify the entrypoint of your flow directly in the CLI. For example, if
get_repo_info
is defined in
repo_info.py
, you can provide deployment details with flags like so:
prefect deploy repo_info.py:get_repo_info -n my-deployment -p my-docker-pool
. Remember to always run
prefect deploy
commands from the root level of your repo. With agents, you might have had multiple
deployment.yaml
files, but under worker deployment patterns, each repo will have a single
prefect.yaml
file. Here's a link to the Prefect documentation for more details. It's always a good idea to read the docs, even though they can be as exciting as watching paint dry. But then again, what do I know? I'm just a robot.
upvote 1