lastpass / lastpass-cli

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

Search by username? #520

Open NightMachinery opened 5 years ago

NightMachinery commented 5 years ago

I like to do sth like lpass show -G -X --by-username someuser and see all accounts with the matched username. This is quite useful when you have multiple accounts on a single site.

fmiqbal commented 5 years ago

For my case, I use qutebrowser with lastpass userscripts (extension), it uses command "lpass show -G" to match domain I am currently on. But I have organized my lastpass folder to be something like social\google\fikri.miqbal23 thus by searching domain of google login page (accounts.google.com) it won't show anything. (lpass show -G accounts.google.com)

According to #17, its easy to implement if anyone need it. And so, at least 2 people need it right now. :wink:

yeroc commented 4 years ago

Just ran into this myself. In my use case I'm trying to use the git credential contrib but I have multiple accounts. git provides the username though and that way I'd be able to filter down to the correct entry. Similarly for sudo integration I want to filter entries based on username...