:wave: Is there a way to trigger a build & br...
# dagster-plus
x
👋 Is there a way to trigger a build & branch deploy via the CLI? I have been able to create a branch deploy with the CLI but am flummoxed on how to actually build and deploy to the branch deploy. I have been successful in building and deploying to
prod
with:
Copy code
dagster-cloud serverless deploy . --location-name my_location --package-name mypackage
Currently using serverless. Thanks!
s
Hi Xuan - the
serverless deploy
command accepts a
--deployment
flag that you can set to the branch deployment id. This is the long id printed by
dagster-cloud branch-deployments create-or-update
and also found in the URL when you are viewing a branch deployment.
x
Awesome - that worked! Thank you! Follow-up question: I am getting the
No branch deployments
message unless I toggle
Show closed and merged branches
. Is there any other flag that I need to use to toggle between
open
and
closed
PRs?
s
To mark a branch deployment open, I believe you need to add
--pull-request-status=OPEN
to
dagster-cloud branch-deployments create-or-update
thank you box 1