Skip to content

Add --verbose flag to the api command #7809

@samcoe

Description

@samcoe

Describe the feature or problem you’d like to solve

When using the api command if the server responds with a generic error response or a 404 it can be tricky to determine what went wrong. Getting detailed information about what went wrong with an API request can be achieved by setting GH_DEBUG=api environment variable but discoverability of that setting is low.

Proposed solution

I propose adding a --verbose flag to the api command which will output the same debugging information as if GH_DEBUG=api environment variable had been supplied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions