lastpass / lastpass-cli

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

Lpass CLI not able to write note record #621

Open jballment opened 2 years ago

jballment commented 2 years ago

We’ve been using the lpass cli for years and a specific call that we use has stopped working and we cannot work out why. The command line is:

printf "Username: admin\nPassword: password\nRepository Name: client-dev\nWebapp: pentaho\nProtocol: http\nPort: 8080\nHostname: pentaho.client-91ee-dev.b3.clientpc.com\nEnvironment: dev\nClient: client\nNoteType: custom_8682146990320768426\nNotes: " | lpass add --sync=no --note-type=server "Shared-Clients/client/client-91ee-dev Pentaho Server (admin)"

The output is:

Vim: Warning: Input is not from a terminal Vim: Error reading input, exiting... Vim: preserving files... Vim: Finished.

If I run the following:

lpass show “Shared-Clients/client/client-91ee-dev Pentaho Server (admin)”

The output is only:

Shared-Clients/client/client-91ee-dev Pentaho Server (admin) [id: 7659432630591673075] Hostname: NoteType: Server

MaximeCheramy commented 2 years ago

Have you tried with --non-interactive ?