PasswordGenCLI 2.1.2

dotnet tool install --global PasswordGenCLI --version 2.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local PasswordGenCLI --version 2.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PasswordGenCLI&version=2.1.2
                    
nuke :add-package PasswordGenCLI --version 2.1.2
                    

Password Generator CLI

A cross-platform command-line tool for generating secure passwords.

Example

example

Installation

Prerequisites

  • .NET 9.0 or later

Install from NuGet

dotnet tool install --global PasswordGenCLI

Update version

dotnet tool update -g PasswordGenCLI

Manual Installation

  1. Clone the repository
  2. Run in the project directory:
dotnet pack
dotnet tool install --global --add-source ./nupkg PasswordGenCLI --version 2.0.0

Usage

NEW FEATURES

Init local secure storage:

pwgen init

Add new entry to storage:

pwgen new -s GitHub -l example@gmail.com

Read password from storage

pwgen read --service GitHub
#if there are several entries for the same service they will be shown with logins to choose which password you want to copy

Read option for clipboard copy to set the timeout (in seconds). After expiration the password will be cleared from the clipboard.

pwgen read -s GitHub -t 30
# copied password will be cleared from the clipboard after 30 second

There are also update and delete commands to update or delete entry from the storage

pwgen update -s GitHub -l example@gmail.com

pwgen delete -s GitHub -l example@gmail.com

BASE FEATURES

Show all entries

pwgen read --list 

Generate a password with default settings (14 characters):

pwgen

Specify password length:

pwgen -l 16
pwgen --length 20

Include special characters:

pwgen -u
pwgen --use-symbols

Custom special characters:

pwgen -s "#$%" -u
pwgen --symbols "@!%" --use-symbols

Show help:

pwgen --help

Uninstallation

dotnet tool uninstall -g PasswordGenCLI

Platform Support

  • Windows
  • macOS
  • Linux

License

MIT

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.1.2 117 4/25/2025
2.1.1 167 4/20/2025
2.1.0 165 4/20/2025
2.0.0 166 4/20/2025
1.0.0 135 10/25/2024

v2.1.2 Release Notes:
- improved output of several entries for the same service to table view

v2.1.1 Release Notes:
- fixed bug with null values of the new entry

v2.1 Release Notes:
- Password won't be show after reading from storage and after creating new entry
- Added colored table view while reading entries list or if there are several entries for the same service.
- Added optional URL property for entry
- Added optional Note property for entry

v2 Release Notes:
- Secure storage feature: from now on you can not only generate password but save it securely with the service name it was creted to and   a login.