-
Notifications
You must be signed in to change notification settings - Fork 765
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: Have something like tail's format
flag for all wrangler commands
#2012
Comments
Could you give an example of the type of output you'd like to see from |
For instance, when you run For |
Ah ok, so essentially something like |
Yes. For all commands so thart the outout can easily be piped into e.g. 'jq' or used in other tools more easily without trying to parse it from human readable output |
--json
flag to produce machine-readable outputformat
flag apply across all wrangler commands
format
flag apply across all wrangler commandsformat
flag for all wrangler commands
This would also help with the github action - cloudflare/wrangler-action#77 |
Contributing to this worthwhile goal: #6570 |
I stumbled upon parsing code that tediously processes wrangler's terminal output , I agree that it would be wonderful to have the option for JSON output everywhere. Please see: https://github.com/Dhravya/cloudflare-saas-stack/blob/main/scripts/setup.ts#L29 - it would unlock a lot of automatio, bot locally and in the deployment process. |
Describe the solution
Related: cloudflare/pages-action#29
It would be great if the CLI supported a global
--json
flag for producing JSON output for all commands. That would make leveraging the CLI in CI much more painless. The entire aformentioned github action could then be replaced bynpx wrangler publish --json | jq ...
to grab the relevant output for instance.The text was updated successfully, but these errors were encountered: