Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature Request: add --json flag to wrangler versions upload and wrangler versions deploy #8125

Closed
draco2003 opened this issue Feb 13, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@draco2003
Copy link

Describe the solution

The wrangler versions upload command returns information about the upload, including the "Worker Version ID"
This information is necessary for passing to commands like wrangler versions deploy

Adding the --json flag and output the JSON results of these wrangler versions operations is inline with the other commands that output JSON and enable cleaner automation of deployments.

@draco2003 draco2003 added the enhancement New feature or request label Feb 13, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Feb 13, 2025
@edmundhung
Copy link
Member

Hi @draco2003,

This is not yet documented but you can use the WRANGLER_OUTPUT_FILE_PATH environment variables to write a file containing output data in ND-JSON format, which includes the result of versions upload.

Here is an example from wrangler action that utilize it for a similar purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants