lastpass / lastpass-cli

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

Support retrieving TOTP via CLI #592

Open njgraf512 opened 3 years ago

njgraf512 commented 3 years ago

The CLI doesn't seem to support retrieving stored TOTP's. Is this a feature that's being added?

MacLeodMike commented 3 years ago

The ability to set TOTP via CLI would also be extraordinarily useful.

qwinkler commented 2 years ago

Any updates here?

schmitmd commented 2 years ago

The project is dead @qwinkler . See #602 . You might be able to convince someone who's helping to maintain the fork mentioned in that thread, but I wouldn't bother with this repo. R.I.P.

qwinkler commented 2 years ago

@schmitmd Sounds funny, haha I decided to use another util, but it is so weird, that the LastPass just bailed on its users.

Anyway, thanks for the answer, I appreciate it. And have a nice day 😄

schmitmd commented 2 years ago

Yeah, I'm really sad about it. I had to move to another util after being a LastPass user for like, 10 years because this one tool was absolutely essential to me.

robwithhair commented 1 year ago

We have a business account. We need to be able to access creds on servers with no UI. Would be good to get this feature so that we can continue to use LastPass.

snaeqe commented 10 months ago

I am a happy user of lastpass-cli and creating TOTP tokens out of it. Yes, you have to use a workaround, but IMHO that works beautifully. I am using https://github.com/bfreis/otp to generate the tokens, and for secret storage, I use the password field from a separate entry in LastPass.

So in the end, the secret sauce is nothing more than otp -s $(lpass show --password <secret-identifier> and there's your token.