Password Manager CLI - Generate & Manage Passwords Securely

Securely generate, store, and manage your passwords with the Pass password manager CLI. Easy to use commands for creating strong passwords and organizing your credentials.

Pass CLI Tool

Secure Password Management with Pass CLI

The Pass CLI tool, also known as password-store, is a command-line utility for securely managing passwords using GPG encryption. It provides a simple and efficient way to store, retrieve, and generate passwords directly from your terminal. This tool is ideal for developers and security-conscious users who prefer managing their sensitive information through the command line.

Key Pass Commands and Usage

Below are essential commands for utilizing the Pass CLI tool effectively:

Initializing the Password Store

Before you can use Pass, you need to initialize your password store. This command sets up the necessary directory structure and encryption keys.

# Initialize password store using a gpg id:
pass init <gpg-id>

# Reencrypt data in subdirectory with multiple GPG IDs:
pass init -p <path-to-directory> <gpg-id-1> <gpg-id-2>

Inserting and Generating Passwords

You can manually insert new password entries or let Pass generate strong, random passwords for you.

# Insert (Create or overwrite) data into a file:
pass insert [-m|--multiline] <path-to-data>

# Automatically generate a password of length n:
pass generate <path-to-data> <n>

Managing Password Entries

View, edit, and copy your stored passwords with simple commands.

# Show the entire password store structure:
pass

# Edit an existing entry:
pass edit <path-to-data>

# Display the content of a specific entry:
pass <path-to-data>

# Copy a specific line (or the whole entry if no line specified) to the clipboard:
pass -c [<n>] <path-to-data>

Git Integration for Version Control

Pass integrates seamlessly with Git, allowing you to track changes to your password store.

# Initialize a git repository within your password store:
pass git init

External Resources