Are there some arguments to `prefect deployment` t...
# ask-community
j
Are there some arguments to
prefect deployment
that are not covered in the docs? I just spent 30 or so minutes trying to figure out how to provide parameters to the deployment.yaml file without having to manually edit it (which is all I found in the docs). Turns out it is simple, you can use
--param
, but that wasn't in the docs anywhere as far as I can see.
I've found it here, but that page wasn't coming up (or at least in the top results) when I was searching, I had to search for CLI to find it.
t
In addition to the page above you can use
prefect deployment build --help
for an overview. Took me a while to find that too (... but feels obvious in hindsight).
j
Oh wow, that does feel obvious in hindsight, I'd already used that for
prefect config
and others. Thanks for the reminder!
j
Hey @Jessica Smith you are correct in how to add params. I believe that the place it should show up would be here https://docs.prefect.io/concepts/deployments/?h=deploy#deployment-build-options but looks like this needs to be updated. I do agree with Timo's suggestion, that's how I originally found out the param flag
j
I think I would have found it in the search results if the search results didn't show the entire code block for each result page. The
prefect.client.orion
code block is massive and makes scrolling to results below it a real chore
yeah, that's exactly where I felt it should be. I'll open an issue on GH about it
j
Thank you!