Categorygithub.com/hazcod/enpass-cli
module
1.6.1
Repository: https://github.com/hazcod/enpass-cli.git
Documentation: pkg.go.dev

# README

enpass-cli

A commandline utility for the Enpass password manager.

Installation

Go get yourself a compiled binary from the releases page.

CLI Usage

$ # set an alias to easily reuse
$ alias enp="enpasscli -vault=/my-vault-dir/ -sort"

$ # list anything containing 'twitter' (without password)
$ enp list twitter

$ # show passwords of 'enpass.com'
$ enp show enpass.com

$ # copy password of 'reddit.com' entry to clipboard
$ enp copy reddit.com

$ # print password of 'github.com' to stdout, useful for scripting 
$ password=$(enp pass github.com)

Commands

NameDescription
list FILTERList vault entries matching FILTER without password
show FILTERList vault entries matching FILTER with password
copy FILTERCopy the password of a vault entry matching FILTER to the clipboard
pass FILTERPrint the password of a vaulty entry matching FILTER to stdout
dryrunOpens the vault without reading anything from it
versionPrint the version
helpPrint the help text

Flags

NameDescription
-vault=PATHPath to your Enpass vault
-keyfile=PATHPath to your Enpass vault keyfile
-type=TYPEThe type of your card (password, ...)
-log=LEVELThe log level from debug (5) to error (1)
-nonInteractiveDisable prompts and fail instead
-pinEnable Quick Unlock using a PIN
-andCombines filters with AND instead of default OR
-sortSort the output by title and username of the list and show command
-trashedShow trashed items in the list and show command
-clipboardPrimaryUse primary X selection instead of clipboard for the copy command

Development

# to run it from code
% go run ./cmd/... -vault=foo list

# to build it yourself
% make build
% ./enpass-cli -vault=foo list

Testing Code

$ go test -v $(go list ./... | grep -v /vendor/)

Using the library

See the documentation on pkg.go.dev.

# Packages

No description provided by the author
No description provided by the author