Skip to content

gemPush supports -k option #152

@okkez

Description

@okkez

The gem command has -k option to specify keyname in $HOME/.gem/credentials.
In the current version, gemPush will use the default API key always.
In general, the default API key needs OTP by default.

We can generate an API key that does not need OTP if needed.

See https://guides.rubygems.org/api-key-scopes/

That's why, I want to generate the API key without OTP and set it to $HOME/.gem/credentials.

gem help push
Usage: gem push GEM [options]

  Options:
    -k, --key KEYNAME                Use the given API key
                                     from /home/kenji/.gem/credentials
        --otp CODE                   Digit code for multifactor authentication
                                     You can also use the environment variable GEM_HOST_OTP_CODE
        --host HOST                  Push to another gemcutter-compatible host
                                       (e.g. https://rubygems.org)
(snip)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions