Comments (7)
This is amazing, thanks a lot.
Unfortunately the items now have their ID printed but one still doesn't know which one is which and I wonder if it was possible to also output the username field - that would then be the same as the browser plugins, they also show the username in brackets if there is more than one matching item.
from lastpass-cli.
$ lpass show google.com
Error: Multiple matches found for 'google.com'. You must specify an ID instead of a name.
$ lpass ls google.com
I have the same problem with lpass show
and I would expect lpass ls
to show a list matching a domain as well. lpass ls
should be extended to list matching entries and not only a group.
from lastpass-cli.
That triggered an idea:
$ lpass ls | grep google.com
That does almost exactly what you'd like, it's just not really elegant and the listing should maybe also contain the name and the username of the item.
from lastpass-cli.
Yes, I tried that as well, it's not very nice, because of how Lastpass CLi structures its output. For example show google.com
shows matches for Gmail as well, but ls | grep google.com
doesn't.
from lastpass-cli.
It would make sense for "ls" or "show" to grow more advanced matching capabilities. There's an open pull request for a find-by-url so I'll look at integrating that under one or the other commands.
from lastpass-cli.
I just pushed a change to display the ids in case of multiple matches.
from lastpass-cli.
See #118 (comment)
from lastpass-cli.
Related Issues (20)
- Random lpass Error: Could not find decryption key
- Support login with SSO HOT 12
- Unable to login with lpass cli HOT 61
- certificate pinning is an outdated security measure
- Forgot to update version 1.3.5 in LASTPASS-VERSION-GEN
- lastpass-cli: Do not interpose reallocarray in /usr/bin/lpass HOT 1
- cygwin make fails due to CRLF in LASTPASS-VERSION-GEN
- Error: Peer certificate cannot be authenticated with given CA certificates. HOT 1
- lastpass-cli sync does not complete on Mac OS 14 HOT 2
- Feature request: lpass copy HOT 1
- Building image from the source does not work HOT 2
- Feature request: Return the error code when there's an HTTP error
- Cannot change master password with "lpass passwd"
- Ubunutu 22.04 libssl dependency
- UUID of 0 for new entry when scripting
- Possible to create Sub-folders?
- Parameter note-type not reflected, always got secure note despite `--note-type=Database` was specified HOT 1
- Suspicious activity in my Gmail account 1 day after running lpass-att-export.sh
- CLI 1.3.6 no more working
- Build failure with GCC 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lastpass-cli.