Skip to content

Inconsistent JSON flag usage across the CLI #1375

Open
@seanhamlin

Description

@seanhamlin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions