npm / npme-installer

npm Enterprise installer
https://www.npmjs.com/enterprise
Other
35 stars 21 forks source link

Token generation prompt cannot be skipped #155

Open necccc opened 7 years ago

necccc commented 7 years ago

The npme cli help says

npme manage-tokens
/usr/bin/npmo-auth-token <cmd> [options]

Commands:
  generate  Generate a new deploy token (you will be prompted for username and email)
  list      List all user sessions that exist in npmo
  delete    Delete a token (you will be presented with a list)

Options:
  -u, --user   Generate a token with this npm username, rather than answering a prompt  [string]
  -e, --email  Generate a token with this email address, rather than answering a prompt [string]
  -t, --token  Delete a specific token, rather than selecting from a list               [string]
  -h, --help   Show help                                                               [boolean]

If I try to generate a token with a given user/email, I still get the prompt for npm username/pass/email.

# npme manage-tokens generate --user=someuser
? npm username _
necccc commented 7 years ago

This also happens if I try various ways of passing the arguments, for example:

# npme manage-tokens generate --user someuser
# npme manage-tokens generate -u someuser