A lightning-fast password manager for the command line
passlane
to your $PATH```bash (base) ➜ temp passlane -h passlane 0.1.4 Anssi Piirainen anssip@email.com A password manager for the command line. Syncs with the Keychain.
USAGE: passlane [OPTIONS]
OPTIONS:
-c, --csv
passlane
--> gnerates and saves a new password to the clipboardpasslane -s
to save the passwordLater on, when logging in to foobar.com:
passlane -g foobard.com
--> copies foobar.com's password to clipboard.bash
$ passlane -g google.com
Please enter master password:
Found 9 matches:
+---+-----------------------------------------------------+------------------------------------+
| | Service | Username/email |
+==============================================================================================+
| 0 | https://accounts.google.com/signin/v2/challenge/pwd | jack@megacorp.com |
|---+-----------------------------------------------------+------------------------------------|
| 1 | https://accounts.google.com/signin/v2/challenge/pwd | jack1p@gmail.com |
|---+-----------------------------------------------------+------------------------------------|
| 2 | https://accounts.google.com/signin/v2/challenge/pwd | jck@hey.com |
|---+-----------------------------------------------------+------------------------------------|
| 3 | https://accounts.google.com/signin/v2/challenge/pwd | jackrussel@gmail.com |
|---+-----------------------------------------------------+------------------------------------|
To copy one of these passwords to clipboard, please enter a row number from the table above,
or press q to exit: 3
Password from index 3 copied to clipboard!
or alternatively
Passlane uses the keyring crate to sync credentials to the operating system's keychain. Syncing should work on Linux, iOS, macOS, and Windows.
Use option -s
together with -k
to save the last generated password to the Passlane storage file and to the keychain:
passlane -s -k
To sync all Passlane stored options to the keychain use the -k
option alone:
passlane -k
You can import credentials from a CSV file. With this approach, you can easily migrate from less elegant and often expensive commercial services.
First, make sure that the CSV file has a header line (1st line) with the following column titles:
The service
field is the URL or name of the service. When importing from Dashlane, the only necessary preparation is to rename url
to service
.
To export the credentials to a CSV file and import the file into Passlane:
bash
passlane --csv <path_to_csv_file>
Here are links to instructions for doing the CSV export:
[x] show grep results in a table, copy password to clipboard by row index
[x] if "Failed: Unable to retrieve value from clipboard" --> prompt for the password to be saved