cli icon indicating copy to clipboard operation
cli copied to clipboard

Inconsistent JSON flag usage across the CLI

Open seanhamlin opened this issue 11 months ago • 1 comments

Version

$ fastly version
Fastly CLI version v10.17.1 (0ce75689)
Built with go version go1.22.9 linux/amd64 (2025-01-22)

What happened

I am writing tooling to which uses the Fastly CLI, and noticed there is inconsistent json output format flags across the various commands.

e.g.

$ fastly stats historical -h
...
      --format=FORMAT          Output format (json)

and

$ fastly service list -h
...
  -j, --json               Render output as JSON

Ideal solution

Standardise on one flag for all commands. This is a developer experience quality of life feature.

seanhamlin avatar Jan 22 '25 00:01 seanhamlin

Thanks for the report! That's definitely a problem.

kpfleming avatar Jan 22 '25 22:01 kpfleming