PasswordGenCLI 2.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global PasswordGenCLI --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local PasswordGenCLI --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PasswordGenCLI&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package PasswordGenCLI --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Password Generator CLI
A cross-platform command-line tool for generating secure passwords.
Example
Installation
Prerequisites
- .NET 9.0 or later
Install from NuGet
dotnet tool install --global PasswordGenCLI
Manual Installation
- Clone the repository
- Run in the project directory:
dotnet pack
dotnet tool install --global --add-source ./nupkg PasswordGenCLI
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 | Versions 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.
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.