Open googol opened 4 years ago
@googol Looks like this is available but not really documented.
$ lpass show "SSH Keys" --json
Although there are some issues with that:
As far as I understand lpass show
only shows details of a single account, unlike lpass ls
, which lists all the accounts, which is what I'm after. Does lpass show
actually do an account list as well?
For posterity, until proper --json
support is added to ls
, it is possible to coerce show
to behave like ls
with a clever combination of --expand-multi
and --basic-regexp
:
❯ lpass show --expand-multi --basic-regexp '.*' --json
Or, shortened for brevity:
❯ lpass show -xjG '.*'
see https://github.com/lastpass/lastpass-cli/issues/581#issue-739346990 for more color / examples
Hi,
it would be great to have json output for the account list, to be able to more easily parse it in scripts. The current textual format is a bit painful
Example format that would be good for my needs: