Skip to main content

LessPass command-line interface (CLI)

Install

python3 -m pip install --user lesspass # 3.6, 3.8+

Usage

lesspass SITE [LOGIN] [MASTER_PASSWORD] [OPTIONS]

LessPass is a stateless password manager.

positional arguments:
  site                  site used in the password generation (required)
  login                 login used in the password generation. Default to ''.
  master_password       master password used in password generation. Default to LESSPASS_MASTER_PASSWORD env variable or prompt.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -L [5-35], --length [5-35]
                        password length (default: 16, min: 5, max: 35)
  -C COUNTER, --counter COUNTER
                        password counter (default: 1)
  -p, --prompt          prompt for values interactively
  -c, --copy            copy the password to clipboard
  --exclude EXCLUDE     exclude char from generated password
  --no-fingerprint      hide visual fingerprint of the master password when you type
  --only-fingerprint    print the fingerprint of the master password and exit, without generating a password
  --save [SAVE_PATH]    [beta] Save your password profiles. /!\ File not encrypted. Use carefully. (default: ~/.config/lesspass/profiles.json)
  --load LOAD_PATH      [beta] Load your password profiles file
  --url URL             [beta] LessPass Database URL used by --save and --load command
  -l, --lowercase       add lowercase in password
  --no-lowercase        remove lowercase from password
  -u, --uppercase       add uppercase in password
  --no-uppercase        remove uppercase from password
  -d, --digits          add digits in password
  --no-digits           remove digits from password
  -s, --symbols         add symbols in password
  --no-symbols          remove symbols from password

Examples

no symbols

lesspass site login masterpassword --no-symbols

no symbols shortcut

lesspass site login masterpassword -lud

only digits and length of 8

lesspass site login masterpassword -d -L8

master password in env variable

LESSPASS_MASTER_PASSWORD="masterpassword" lesspass site login

check the master password once, then generate several passwords

read -rs -p "Master Password: " LESSPASS_MASTER_PASSWORD && echo
export LESSPASS_MASTER_PASSWORD
lesspass --only-fingerprint   # check the icons before going on
lesspass site1 login1
lesspass site2 login2

License

This project is licensed under the terms of the GNU GPLv3.

Metadata

Release files for lesspass 10.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lesspass 10.3.1
File Size Uploaded Provenance Actions
lesspass-10.3.1.tar.gz 16.4 kB Without provenance Details for lesspass-10.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lesspass 10.3.1
File Interpreter ABI Platform Actions
lesspass-10.3.1-py3-none-any.whl Python 3 none any Details for lesspass-10.3.1-py3-none-any.whl

Total release size: 29.3 kB

Release files / lesspass-10.3.1.tar.gz

Download URL lesspass-10.3.1.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1ce6d10bb70d7365583ed98b6c83b593443e84b1e89b5343c23e5cea77943b4c
BLAKE2b-256 checksum
How to use checksums
7a95e186f82ada687b7699931305c68790fec64d4825bee55aedf9c328687c97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / lesspass-10.3.1-py3-none-any.whl

Download URL lesspass-10.3.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9a2591ed8fb380186f09c3b2b8661b327ef5f2fd82285548080a66fedf21d57
BLAKE2b-256 checksum
How to use checksums
80ad032a16f171e6b7231565c7c9f1f8fcb3ee2bab8c2e84136009125fe0383a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for lesspass 10.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page