Generate strong passwords directly from your terminal to your clipboard, ready to paste in where you need it.
This little CLI is built on top of generate-password npm package, and you can configure it with the same options.
Install the package globally and type pw2clip
in your terminal. You will now have a new strong password copied into your clipboard.
npm install pw2clip -g
You will be asked a few questions about how you would like your passwords.
- Would you like numbers in your passwords? (default is 16 characters)
- Would you like symbols in your passwords? (default is yes)
- Would you like uppercase letters in your passwords? (default is yes)
- Would you like to exclude similar characters in your passwords? (default is yes)
- If you want to exclude special characters from your passwords, then type them here: (default is '')
- Would you like to include at least one character from each character type in your passwords? (default is yes)
- Would you like to see the generated passwords in the console output (default is no)