Skip to content

Support json output #1355

@kolbe

Description

@kolbe

Feature Request

Is your feature request related to a problem? Please describe:

It would be nice to be able to get information about clusters in a machine-readable format, such as json.

Describe the feature you'd like:

tiup cluster display (and maybe some other commands) should support a flag like --format or --output that can accept json (and maybe other options?) as an output format.

Why the featue is needed:

I want a machine-readable output format for cluster information so I can automatically configure my application to connect to the set of tidb instances in the cluster.

Describe alternatives you've considered:

Trying to parse the output of tiup cluster display in its current format is really unwieldy and unrealistic.

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/feature-requestCategorizes issue as related to a new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions