Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Token generation prompt cannot be skipped #155

Open
necccc opened this issue Feb 16, 2017 · 1 comment
Open

Token generation prompt cannot be skipped #155

necccc opened this issue Feb 16, 2017 · 1 comment

Comments

@necccc
Copy link

necccc commented Feb 16, 2017

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
Copy link
Author

necccc commented Feb 16, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant