pass-import(1)
π NAME π
okay so bestie, welcome to the manual for pass-import(1) β she's a pass(1) extension for importing data from most of the existing password manager. yes, most. we get into the numbers down below. π«Ά
β¨ SYNOPSIS β¨
pass import [options...] src [src]
π¦ DESCRIPTION π¦
okay so pass import is a password store extension that lets you import your password database into a password store repository, conveniently, like a little queen. π
it natively supports import from 62 different password managers. sixty-two!! and more manager support can easily be added, so the roster only grows. π
passwords get imported into the existing default password store, so the password store must have been initialized before with pass init. no store, no import, that's the vibe check. β¨
by default, pass imports entries at the root of the password store and only keeps the main data (password, login, email, URL, group). want more? that behaviour can be changed using the provided options. π
pass import handles duplicates and is compatible with browserpass. it imports OTP secret in a way that is compatible with pass-otp. obsessed. π
pass-import also provides a pimport script that allows importing passwords to other password managers. for instance, you can import passwords from Lastpass to a Keepass database. it currently supports password export from 8 managers. iconic. π
π COMMAND π
pass import [options...] src [src]
the arguments & options, one by one π
src [src]β bestie this can mean two things: either the path to the data you want to import, or the password manager name followed by the path to the data to import. if you only hand over the path,pass-importauto-detects the data format for you like the main character it is. the complete list of supported managers lives in the SUPPORTED MANAGERS section, and you can also get it withpass import --list.--root=<path>,-r <path>and--path=<path>,-p <path>β specific root source and destination directory to use in the password store.--rootrefers to the source repository and will only import the password from a specific subfolder.--pathrefers to the destination repository and will import the passwords to a specific subfolder. source vs destination, don't mix them up. π--key=<path>,-k <path>β if a password manager requires it, you can pass a key file using--keyor-kalong with the path to the keyfile to use. π--all,-aβ conserve and import all the data present in the backup file. otherwise, only title, password, login, URL, comments, and group data are imported. all-or-default, pick your fighter. β¨--force,-fβ the import process will overwrite an existing password entry if it already exists. bold move, but okay. π--clean,-cβ clean the password path in order to be more command line friendly.--convert,-Cβ convert the invalid characters present in the paths before import. invalid characters for both Windows and Unix systems are supported. the default separator replaces the invalid characters:---sep=<char>β provide a character of replacement for the path separator. default:---del=<char>β provide an alternative CSV delimiter character. default:,--cols=<char>β set the expected CSV columns to map columns to credential attributes. only used for the genericcsvimporter. π--config=<path>βpass-importwill consider this config file instead of the default one.import.--list,-lβ print the list of the available password manager. with the verbose option (-v) it provides the python class name to use to be given assrc. it can be useful to bypass the automatic format detection. also supports the quiet option (-q). π--help,-hβ print the program usage. if the option is specified along with an argument and if this argument is a supported password manager, it prints usage for that manager. per-manager help, so fancy. β¨--verbose,-vβ be more verbose. this option can be specified multiple times to set the verbosity level. stack it like a filter, bestie.--quiet,-qβ be quiet π€«
πΈ BASIC USAGE πΈ
to import password from any supported password manager, simply run:
pass import path/to/passwords
if pass-import is not able to detect the format, you need to provide the password manager you want to import data from:
pass import <pm> path/to/passwords
if you want to import data to a password manager other than pass, run:
pimport <new_pm> <former_pm> path/to/passwords --out path/to/destination/pm
π§ EXAMPLES π§
Import password from KeePass π
pass import keepass.xml
(*) Importing passwords from keepass to pass
. Passwords imported from: keepass.xml
. Passwords exported to: ~/.password-store
. Number of password imported: 6
. Passwords imported:
Social/mastodon.social
Social/twitter.com
Social/news.ycombinator.com
Servers/ovh.com/bynbyjhqjz
Servers/ovh.com/jsdkyvbwjn
Bank/aib
this is the same as: pimport pass keepass.xml βout ~/.password-store
Import password to a different password store π
export PASSWORD_STORE_DIR="~/.mypassword-store"
pass init <gpg-id>
pass import keepass.kdbx
Import password to a subfolder π¦
pass import bitwarden.json -p Import/
(*) Importing passwords from bitwarden to pass
. Passwords imported from: bitwarden.json
. Passwords exported to: ~/.password-store
. Root path: Import
. Number of password imported: 6
. Passwords imported:
Import/Social/mastodon.social
Import/Social/twitter.com
Import/Social/news.ycombinator.com
Import/Servers/ovh.com/bynbyjhqjz
Import/Servers/ovh.com/jsdkyvbwjn
Import/Bank/aib
Other examples β¨
- if the manager is not correctly detected, you can pass it at source argument
pass import dashlane dashlane.csv
- import NetworkManager password on default dir
pass import networkmanager
- import a NetworkManager INI file
pass import nm.ini
- import a One password 1PIF
pass import 1password.1pif
- import a One password CSV
pass import 1password.csv
- import a Passman JSON file
pass import passman.json
- import Lastpass file to a keepass db
pimport keepass lastpass.csv --out keepass.kdbx
- import a password store to a CSV file
pimport csv ~/.password-store --out file.csv
π GPG KEYRING π
before importing data to pass, your password-store repository must exist and your GPG keyring must be usable. in order words you need to ensure that:
- all the public gpgids are present in the keyring. π
- all the public gpgids are trusted enough.
- at least one private key is present in the keyring.
otherwise, you will get the following error: invalid credentials, password encryption/decryption aborted. π to set the trust on a GPG key, one can run gpg --edit-key <gpgid> then trust.
π‘οΈ SECURITY CONSIDERATION π‘οΈ
Direct import π
passwords should not be written in plain text form on the drive. therefore, when possible, you should import it directly from the encrypted data. for instance, with an encrypted keepass database:
pass import keepass file.kdbx
Secure erasure π
otherwise, if your password manager does not support it, you should take care of securely removing the plain text password database:
pass import lastpass data.csv
shred -u data.csv
Encrypted file π
alternatively, pass-import can decrypt gpg encrypted file before importing it. for example:
pass import lastpass lastpass.csv.gpg
Mandatory Access Control (MAC) π‘οΈ
AppArmor profiles for pass and pass-import are available in apparmor.d. if your distribution supports AppArmor, you can clone the repository and run:
make
sudo make install pass pass-import
to only install these apparmor security profiles.
Network π
pass-import only needs to establish network connection to support cloud based password manager. if you do not use these importers you can ensure pass-import is not using the network by removing the network rules in the apparmor profile of pass-import.
Password Update π
you might also want to update the passwords imported using pass-update(1).
π CONFIGURATION FILE π
some configurations can be read from a configuration file called .import if it is present at the root of the password repository. the configuration read from this file will be overwritten by their corresponding command-line option if present. π
example of the .import configuration file for the default password repository:
zx2c4@laptop ~ $ cat ~/.password-store/.import
---
# Separator string
separator: '-'
# The list of string that should be replaced by other string. Only activated
# if the `clean` option is enabled.
cleans:
' ': '-'
'&': 'and'
# The list of protocol. To be removed from the title.
protocols:
- http://
# The list of invalid characters. Replaced by the separator.
invalids:
- '<'
- '>'
okay that's part one bestie, there's literally more coming β¨
β¨ SUPPORTED MANAGERS β¨
Okay bestie, here's the full rundown of every single manager we can import from. Each one has its own little setup, but don't stress β we got you. π
π 1password (csv) v8
- Website: https://1password.com
- Export: See this guide: https://support.1password.com/export
- Command:
pass import 1password file.csv
π 1password (1pif) v4
- Website: https://1password.com
- Export: See this guide: https://support.1password.com/export
- Command:
pass import 1password file.1pif
π 1password (csv) v4
- Website: https://1password.com
- Export: See this guide: https://support.1password.com/export
- Command:
pass import 1password file.csv
π 1password (csv) v6
- Website: https://1password.com
- Export: See this guide: https://support.1password.com/export
- Command:
pass import 1password file.csv
π‘οΈ aegis (json) β plain export
- Website: https://github.com/beemdevelopment/Aegis
- Export: Settings> Tools: Export Plain
- Command:
pass import aegis file.json
π‘οΈ aegis (json) β encrypted export
- Website: https://github.com/beemdevelopment/Aegis
- Export: Settings> Tools: Export encrypted
- Command:
pass import aegis file.json
π± andotp (json)
- Website: https://github.com/andOTP/andOTP
- Export: Backups> Backup plain
- Command:
pass import andotp file.json
π apple-keychain (keychain)
- Website: https://support.apple.com/guide/keychain-access
- Export: See this guide: https://gist.github.com/santigz/601f4fd2f039d6ceb2198e2f9f4f01e0
- Command:
pass import applekeychain file.txt
π bitwarden (csv)
- Website: https://bitwarden.com
- Export: Tools> Export Vault> File Format: .csv
- Command:
pass import bitwarden file.csv
π bitwarden (csv) β again
- Website: https://bitwarden.com
- Export: Tools> Export Vault> File Format: .csv
- Command:
pass import bitwarden file.csv
π bitwarden (json)
- Website: https://bitwarden.com
- Export: Tools> Export Vault> File Format: .json
- Command:
pass import bitwarden file.json
π bitwarden (json) β again
- Website: https://bitwarden.com
- Export: Tools> Export Vault> File Format: .json
- Command:
pass import bitwarden file.json
π«οΈ blur (json)
- Website: https://abine.com
- Export: Settings: Export Data: Export Blur Data
- Command:
pass import blur file.json
π«οΈ blur (csv)
- Website: https://abine.com
- Export: Settings: Export Data: Export CSV: Accounts: Export CSV
- Command:
pass import blur file.csv
π§ buttercup (csv)
- Website: https://buttercup.pw
- Export: File > Export > Export File to CSV
- Command:
pass import buttercup file.csv
π chrome (csv)
- Website: https://support.google.com/chrome
- Export: In chrome://password-manager/settings under 2Export passwordsDownload File
- Command:
pass import chrome file.csv
π chrome (csv) β guide edition
- Website: https://support.google.com/chrome
- Export: See this guide: https://support.google.com/chrome/answer/95606#see
- Command:
pass import chrome file.csv
π clipperz (html)
- Website: https://clipperz.is
- Export: Settings > Data > Export: HTML + JSON
- Command:
pass import clipperz file.html
π csv (csv)
You should use the βcols option to map columns to credential attributes. The recognized column names by pass-import are the following: title, password, login, email, url, comments, otpauth, group. The title and group fields are used to generate the password path. If you have otp data, they should be named as otpauth. These are the standard field names. You can add any other field you want.
- Export: Nothing to do
- Command:
pass import csv file.csv βcols `url,login,,password'
π dashlane (csv)
- Website: https://www.dashlane.com
- Export: File > Export > Unsecured Archive in CSV
- Command:
pass import dashlane file.csv
π dashlane (json)
- Website: https://www.dashlane.com
- Export: File > Export > Unsecured Archive in JSON
- Command:
pass import dashlane file.json
π·οΈ encryptr (csv)
- Website: https://spideroak.com/encryptr
- Export: Compile from source and follow instructions from this guide: https://github.com/SpiderOak/Encryptr/issues/295#issuecomment-322449705
- Command:
pass import encryptr file.csv
π enpass (json) v6
- Website: https://www.enpass.io
- Export: Menu > File > Export > As JSON
- Command:
pass import enpass file.json
π enpass (csv)
- Website: https://www.enpass.io
- Export: File > Export > As CSV
- Command:
pass import enpass file.csv
π¦ firefox (csv)
- Website: https://www.mozilla.org/en-US/firefox/lockwise/
- Export: In about:logins Menu: Export logins
- Command:
pass import firefox file.csv
π¦ firefox (csv) β exporter edition
- Website: https://github.com/kspearrin/ff-password-exporter
- Export: Add-ons Prefs: Export Passwords: CSV
- Command:
pass import firefox file.csv
π fpm (xml)
- Website: http://fpm.sourceforge.net
- Export: File > Export Passwords: Plain XML
- Command:
pass import fpm file.xml
π freeotp+ (json)
- Website: https://github.com/helloworld1/FreeOTPPlus
- Export: Settings> Export> Export JSON Format
- Command:
pass import freeotp+ file.json
π gnome (libsecret)
You can provide a gnome-keyring collection label to import. It can be empty to import all collections.
- Export: Nothing to do
- Command:
pass import gnome-keyring
π gnome-auth (json)
- Website: https://gitlab.gnome.org/World/Authenticator
- Export: Backup > in a plain-text JSON file
- Command:
pass import gnome-authenticator file.json
π gopass (gopass)
- Website: https://www.gopass.pw/
- Export: Nothing to do
- Command:
pass import gopass path/to/store
π¦ gorilla (csv)
- Website: https://github.com/zdia/gorilla/wiki
- Export: File > Export: Yes: CSV Files
- Command:
pass import gorilla file.csv
π kedpm (xml)
- Website: http://fpm.sourceforge.net
- Export: File > Export Passwords: Plain XML
- Command:
pass import kedpm file.xml
π keepass (kdbx)
- Website: https://www.keepass.info
- Export: Nothing to do
- Command:
pass import keepass file.kdbx
π keepass (csv)
- Website: https://www.keepass.info
- Export: File > Export > Keepass (CSV)
- Command:
pass import keepass file.csv
π keepass (xml)
- Website: https://www.keepass.info
- Export: File > Export > Keepass (XML)
- Command:
pass import keepass file.xml
π keepassx (xml)
- Website: https://www.keepassx.org
- Export: File > Export to > Keepass XML File
- Command:
pass import keepassx file.xml
π keepassx2 (kdbx)
- Website: https://www.keepassx.org
- Export: Nothing to do
- Command:
pass import keepassx2 file.kdbx
π keepassx2 (csv)
- Website: https://www.keepassx.org
- Export: Database > Export to CSV File
- Command:
pass import keepassx2 file.csv
π keepassxc (kdbx)
- Website: https://keepassxc.org
- Export: Nothing to do
- Command:
pass import keepassxc file.kdbx
π keepassxc (csv)
- Website: https://keepassxc.org
- Export: Database > Export to CSV File
- Command:
pass import keepassxc file.csv
ποΈ keeper (csv)
- Website: https://keepersecurity.com
- Export: Settings > Export : Export to CSV File
- Command:
pass import keeper file.csv
π lastpass (cli)
- Website: https://www.lastpass.com
- Export: Nothing to do
- Command:
pass import lastpass
π lastpass (csv)
- Website: https://www.lastpass.com
- Export: More Options > Advanced > Export
- Command:
pass import lastpass file.csv
πΈ myki (csv)
- Website: https://myki.com
- Export: See this guide: https://support.myki.com/myki-app/exporting-your-passwords-from-the-myki-app/how-to-export-your-passwords-account-data-from-myki
- Command:
pass import myki file.csv
π network-manager (nm)
Support import from the installed network configuration but also from a specific directory of NetworkManager configuration file or from a given file.
Example:
- From directory of ini file: pass import networkmanager dir/.
- From ini file: pass import networkmanager file.ini.
- Export: Also support specific networkmanager dir and ini file
- Command:
pass import networkmanager
π§ nordpass (csv)
- Website: https://nordpass.com/
- Export: Settings > Export Items
- Command:
pass import nordpass file.csv
π padlock (csv)
- Website: https://padloc.app
- Export: Settings > Export Data and copy text into a .csv file
- Command:
pass import padlock file.csv
π pass (pass)
- Website: https://passwordstore.org
- Export: Nothing to do
- Command:
pass import pass path/to/store
π passman (csv)
- Website: https://passman.cc
- Export: Settings > Export credentials > Export type: CSV
- Command:
pass import passman file.csv
π passman (json)
- Website: https://passman.cc
- Export: Settings > Export credentials > Export type: JSON
- Command:
pass import passman file.json
π¦ passpack (csv)
- Website: https://www.passpack.com
- Export: Settings > Export > Save to CSV
- Command:
pass import passpack file.csv
π₯§ passpie (yaml) v1.0
- Website: https://www.enpass.io
- Export: passpie export file.yml
- Command:
pass import passpie file.yml
π pwsafe (xml)
- Website: https://pwsafe.org
- Export: File > Export To > XML Format
- Command:
pass import pwsafe file.xml
π revelation (xml)
- Website: https://revelation.olasagasti.info
- Export: File > Export: XML
- Command:
pass import revelation file.xml
π€ roboform (csv)
- Website: https://www.roboform.com
- Export: Roboform > Options > Data & Sync > Export To: CSV file
- Command:
pass import roboform file.csv
βοΈ safeincloud (csv)
- Website: https://safeincloud.ladesk.com/
- Export: File > Export > Comma-Separated Values (CSV)
- Command:
pass import safeincloud file.csv
π saferpass (csv)
- Website: https://saferpass.net
- Export: Settings > Export Data: Export data
- Command:
pass import saferpass file.csv
π¦ upm (csv)
- Website: http://upm.sourceforge.net
- Export: Database > Export
- Command:
pass import upm file.csv
βοΈ zoho (csv)
- Website: https://www.zoho.com/vault
- Export: Tools > Export Secrets: Zoho Vault Format CSV
- Command:
pass import zoho file.csv
βοΈ zoho (csv) β again
- Website: https://www.zoho.com/vault
- Export: Tools > Export Secrets: Zoho Vault Format CSV
- Command:
pass import zoho file.csv
π SEE ALSO
pass(1)pass-tomb(1)pass-update(1)pass-otp(1)pimport(1)pass-audit(1)
π AUTHORS
pass import was written by Alexandre Pujol (alexandre@pujol.io).
And that's the tea, bestie! This page is from February 2024 and it's for pass-import(1). Now go forth and import those passwords like the icon you are. π
β¨
π¦ where this page comes from
- fedora 43: python3-pass-import 3.5-6.fc43 Β· GPL-3.0-or-later
- fedora 44: python3-pass-import 3.5-7.fc44 Β· GPL-3.0-or-later
- nixos 26.05: pass-import 3.5
- nixpkgs unstable: pass-import 3.5
- opensuse-leap 16.0: pass-import 3.5-bp160.1.10 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms