-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Describe the solution
The current iterations of the wrangler versions commands seem really geared towards interactive usage only. If I want to do a new deployment with a secret, I must do the 3 step dance:
wrangler versions uploadwrangler versions secret putwrangler versions deploy
Step 2 allows passing no id, and it will use the latest version from step 1, so that's fine, although explicitly expressing "latest" might be nice.
Step 3 however requires I either select the version interactively or pass in an ID. Currently we must either extract the id from the output of step 2, or run wrangler versions list and extract the id, which is very awkward in bash. A few things could make this easier:
- let me use
latestas an alias for an id - allow using tags or an ID I generate to select a specific version instead of the CF generated id
- if
--yesoption is used with no version id, assume the user means latest (similar to other commands) - add flags that make the output simpler, or even write to a file, so its easier to get ids without needing sed/awk or involving JS
Sidenote - allowing me to deploy with secrets attached in one step would let me avoid this altogether.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Untriaged