-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
Labels
No labels