With this CLI Tool, you can generate your own password with specific parameters. You can Get custom password with "-s 7, -n 3, -c" flags.

  • By Bora KAŞMER
  • Last update: Oct 26, 2022
  • Comments: 0

pwd-cli

With this CLI Tool, you can generate your own password with specific parameters. You can get custom password with "-s 7, -n 3, -c -x" flags.

🍎 This is Custom Password CLI. In every request, generated a new random password. If you don't set any parameters, you will get 8 length lowercase string password.

NetflixGithub

Flags:

πŸ“Ί pwd-cli
pwd-cli -s 8 -n 3 -c -x
  • -s, --str int Length of string characters in Password
  • -n, --num int Length of number characters in Password
  • -h, --help Help for pwd-cli
  • -c, --capital bool Is there any capital letter ?
  • -x, --symbol bool Is there any symbol letter ? It's Length is allways => "len(str)/3 + 1"

xflag

Default Command: "pwd-cli"

Example Usage:

Usage: pwd-cli [flags]

  • "pwd-cli -s 8 -n 3 -c"
  • "pwd-cli -s 10 -c -x"
  • "pwd-cli -n 6"
  • xflag
  • "pwd-cli --str 6 --num 2 --capital --symbol"
  • "pwd-cli" => default: 'pwd-cli -s 8 -n 0 -x 0 -c 0'
**********************************************************************************************************

-c flag gets "true", if there is "-c" flag. If there is no -c flag, -c flag gets "false" value.
-s flag gets default 8 value.
-x flag means put symbol in Password. Default symbol length formule is => "len(string)/3+1"


How to install pwd-cli (Random Password Generator):

go install github.com/borakasmer/pwd-cli@latest

πŸ”΄ Important: You need Go program package to install pwd-cli => Go Downloads

  1. "go env" With the command "GOPATH" and "GOROOT" folders of GO can be seen.
  2. On Mac after "go install ..." the "go/bin/pwd-cli" file under GOPATH => should be copied under "go/bin/" folder under GOROOT.
  3. In Windows, there is no need to further action βœ…

FRJfHssXEAAqNsP

πŸ“— Extra Detail
--------------------------------------------------------------------------------------------------------------
  • "-s 10" The Length of String Characters in Password is 10 and none of them is Capital. The default value is 8.
  • "-n 7" => The Length of Number Characters in Password is 7
  • "-s 5 -c" => The String Length of Password is 5 and some of them are Capital!
  • "-s 6 -x" => The String Length of Password is 6 and (6/3+1) =>3 characters are Symbol! Total length of Password is 9
  • "pwd-cli" command => By default it means "pwd-cli --str 8 --num 0". And there is no Capital letter in the Password.

Download

pwd-cli.zip