Skip to content

Disable interactive screen #8097

@shinebayar-g

Description

@shinebayar-g

Describe the feature or problem you’d like to solve

Is it possible to disable interactive behavior of the cli? For example when I run the following command, it creates a new window / screen and I have to type q to exit this screen. It makes it difficult to use the cli in shell scripts.

gh api \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  -F per_page=100 \
  -F page=1 \
  -F name=artifact-name \
  -X GET \
  /repos/owner/repo/actions/artifacts

Proposed solution

If this interactive screen can be disabled, it would be easier to use it in shell scripts.

Additional context

I tried setting gh config set prompt disabled. Which seems do nothing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-apirelating to the gh api command

    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