Skip to content

add new random pass command - #18410

Merged
fdncred merged 2 commits into
nushell:mainfrom
fdncred:add_random_pass_command
Jun 14, 2026
Merged

fdncred merged 2 commits into
nushell:mainfrom
fdncred:add_random_pass_command

Conversation

@fdncred

@fdncred fdncred commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR adds a random password generator called random pass.

User-facing changes (Release notes)

Added random pass for generating passwords

New command random pass generates random passwords.

❯ 0..10 | each {random pass}
╭────┬──────────────╮
│  0 │ o(3&BU2EkWv] │
│  1 │ 3~5y9PpXKH-| │
│  2 │ 7Wa6]`q-TR?- │
│  3 │ r|F=5d:.-BZp │
│  4 │ 7ZjM$xg?h^o3 │
│  5 │ CMg.4-NKxy^e │
│  6 │ b8&zy)ZhN}MV │
│  7 │ }Hc#>GpyK%@6 │
│  8 │ KvJOL4VoTgN] │
│  9 │ 7HN!%1A0Vm-X │
│ 10 │ 4|`M&8x%wX@S │
╰────┴──────────────╯

random pass supports these flags.

  -c, --chars <int>: Length of the generated password (default 12)
  -u, --no-uppercase: Exclude uppercase letters A-Z
  -l, --no-lowercase: Exclude lowercase letters a-z
  -n, --no-numbers: Exclude numbers 0-9
  -s, --no-symbols: Exclude symbols like !@#$%
  --include-ambiguous: Include ambiguous characters O, 0, l, 1
  --include-similar: Include similar characters i, l, 1
  --require-each-type: Guarantee at least one char from each enabled character type

Additional notes

@fdncred fdncred added notes:ready Indicates Ready for Release notes notes:additions Noted in "Additions" section labels Jun 13, 2026
@fdncred
fdncred merged commit aec85cc into nushell:main Jun 14, 2026
18 checks passed
@fdncred
fdncred deleted the add_random_pass_command branch June 14, 2026 00:30
@github-actions github-actions Bot added this to the v0.114.0 milestone Jun 14, 2026
@x8x

x8x commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

@fdncred

fdncred commented Jun 14, 2026

Copy link
Copy Markdown
Contributor Author

seems like an addon to random uuid although i'm not sure how popular or needed it is. the repo doesn't seem very popular.

@x8x

x8x commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Quite popular, primarily in the JavaScript/npm ecosystem:
https://www.npmjs.com/package/nanoid
(164,448,199 weekly downloads)
The implementation seems pretty straightforward and light, so I'd say it's nice to have — and yes, viable as a random uuid option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:additions Noted in "Additions" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants