lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

No Documentation for Import Format #473

Open HARVS1789UK opened 5 years ago

HARVS1789UK commented 5 years ago

Please correct me and direct me to the relevant resource if I am wrong, but I am not able to find any documentation stating the format which the .csv file used with lpass import <FILENAME> should follow?

I have looked in the lpass man and in the README.md of this repo, but I can't find anything.

I have looked at cmd-import.c and performed a lpass export to determine what I think the relevant .csv headers are and I have attempted an import using the below:

url,username,password,extra,name,grouping,fav
https://test1.example.com,test.one,123456,,CSV Upload Test 1,Test-Folder,1
https://test2.example.com,test.two,123456,Custom Field: Custom Value,CSV Upload Test 2,Test-Folder,0
https://test3.example.com,test.three,123456,,CSV Upload Test 3,Test-Folder,0

This partially worked, but note the following:

Can some documentation be added to clarify how this import is intended to work?

HARVS1789UK commented 5 years ago

Note: I have found some documentation for LastPass imports however, I don't believe that is relevant to lastpass-cli (due to the lack of any reference to type or hostname in cmd-import.c

fedemengo commented 3 years ago

@HARVS1789UK did you ever figure this out?

HARVS1789UK commented 3 years ago

@fedemengo I didn't i'm afraid, from memory I moved on to just importing a handful of sites via the Cli using lastpass add and lastpass generate however, I didn't take this much further as I also needed to create a new shared folder, share it with the relevant directors/HR staff for my company and move these sites into it and I had multiple issues with using the Cli for this as well unfortunately :'-(

I have just looked up this - https://support.logmeininc.com/lastpass - which I think is new documentation since I last looked.. It seems to confirm some of my assumptions about the import format, but sadly makes no mention of Cli usage, still just the desktop software or browser plugins

Let me know if you have any success!