Skip to content

Skip the message to generate a new SSH key #8508

@5ouma

Description

@5ouma

Describe the feature or problem you’d like to solve

When you log in with gh auth login, most of the options can be set via flags.
However, skipping the message generates a new SSH key is impossible.

? Generate a new SSH key to add to your GitHub account? (Y/n) 

Proposed solution

Skip that message with --skip-ssh-key flag, for example.

Additional context

With this flag, you can log in with no selection.

gh auth login -h='GitHub.com' -p='SSH' --skip-ssh-key -w

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-authrelating to the gh auth commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions