lastpass / lastpass-cli

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

No longer able to add entry from cli via the add command #635

Open croyleje opened 1 year ago

croyleje commented 1 year ago

As of the latest update it is no longer possible to add a new entry via the add command. It used to be possible to for example add an entry like this.

lpass add --username=example --password=example --url=example NAME

This no longer works, now you must use the generate command then go back and edit the generated password. I can understand this option is not used much but it does come in extremely useful for adding passwords that do not need to be generated or to add password from another application to lastpass via a simple script and csv export.

If there is another way to do this please let me know otherwise I think it would nice to have this option added back into the cli application. Thank you.

h0wXD commented 11 months ago

I am having the same issue, as owner of a shared folder it still works for that folder, but as an invited 'Admin' of a shared folder it stopped working. Example command:

'Admin' of shared folder testfolder:

echo -ne "Name: Shared-testfolder/2023-08-18 test\nHostname: http://localhost:5000\nUsername: asd2123213asd\nPassword: jKVQtIqMWstiYlvcpfmT\nNoteType: Server\nNotes:\nsome notes" | lpass add --sync=now --note-type=server --non-interactive "Shared-testfolder/2023-08-18 test"

Error: HTTP response code said error. echo $? = 1

Owner of shared folder testfolder

echo -ne "Name: Shared-testfolder/2023-08-18 test\nHostname: http://localhost:5000\nUsername: asd2123213asd\nPassword: jKVQtIqMWstiYlvcpfmT\nNoteType: Server\nNotes:\nsome notes" | lpass add --sync=now --note-type=server --non-interactive "Shared-testfolder/2023-08-18 test"

Successful, no message echo $? = 0

This was working a while ago without any problem. Could this be fixed? I am using latest master built on Debian GNU/Linux 9 (stretch)