@kszongic/pwd-gen-cli
v1.0.0
Published
Generate secure random passwords from the command line — customizable length, charsets, and batch generation
Maintainers
Readme
@kszongic/pwd-gen-cli
Generate secure random passwords from the command line. Zero dependencies, uses Node.js crypto.randomBytes.
Install
npm i -g @kszongic/pwd-gen-cliUsage
# Default: 16-char password with letters, digits, symbols
pwd-gen
# Custom length
pwd-gen -l 32
# Multiple passwords
pwd-gen -c 5
# Alphanumeric only
pwd-gen --alphanumeric
# Numeric PIN
pwd-gen --pin 6
# Combine options
pwd-gen -l 24 -c 10 --no-symbolsOptions
| Flag | Description | Default |
|------|-------------|---------|
| -l, --length <n> | Password length | 16 |
| -c, --count <n> | Number of passwords | 1 |
| --no-symbols | Exclude symbols | — |
| --no-upper | Exclude uppercase | — |
| --no-lower | Exclude lowercase | — |
| --no-digits | Exclude digits | — |
| --alphanumeric | Letters + digits only | — |
| --pin <n> | Generate numeric PIN | — |
License
MIT © 2026 kszongic
