Coder Social home page Coder Social logo

Comments (30)

kspearrin avatar kspearrin commented on May 21, 2024 18

For those interested, I have started working on this project. You can follow along in the master branch.

from cli.

TheDan64 avatar TheDan64 commented on May 21, 2024 15

Rust might be a good choice to write this in; given that it is a memory safe language.

from cli.

fidiego avatar fidiego commented on May 21, 2024 7

Bumpiddy bump bump bump

from cli.

kspearrin avatar kspearrin commented on May 21, 2024 7

The CLI is now complete and has been released as a public beta test. You can participate in the beta if you like in this issue: #3 . A full release will follow the beta test, hopefully sometime next week.

WIP docs about using the CLI: https://help.bitwarden.com/article/cli/

This issue will now be closed.

CLI

from cli.

kspearrin avatar kspearrin commented on May 21, 2024 6

All: Yes, a CLI is planned, which is why this repo exists. There is no timeline planned for it yet, other than we plan to build it. Hopefully later this year after we ship the desktop app (being worked on now).

from cli.

victorjtfranco avatar victorjtfranco commented on May 21, 2024 5

From https://bitwarden.com/ :
image

from cli.

johnolos avatar johnolos commented on May 21, 2024 5

My two cents: Rust seems like a good alternative to write the CLI with.

Furthermore; I use fzf quite heavily, and being able to wrap my own alias around the use of stdin/stdout with Bitwarden CLI is a must-have feature for me.

Example: https://github.com/junegunn/fzf/wiki/Examples-(fish)#lastpass-cli

from cli.

nogweii avatar nogweii commented on May 21, 2024 4

Another request for more information!

Are you planning on writing the client in a particular language?

from cli.

nojaf avatar nojaf commented on May 21, 2024 4

Any updates here?

from cli.

Mange avatar Mange commented on May 21, 2024 4

Thinking out loud here but it might be less effort on the bitwarden teams side to just get the api/api docs up to a good standard and let the community develop the CLI?

My primary usecase is twofold:
Wrapping the CLI in other programs (to quickly connect to some machine over SSH, or to download and install something, writing a small GUI, etc) and to be able to reverse-engineer it to create my own CLI and/or library in a language that I use for my own stuff.

Having good API documentation and a stable API would also help me achieve these goals, so for me that would be sufficient.

from cli.

davekaufman avatar davekaufman commented on May 21, 2024 2

I'd love to switch from LastPass Premium - a command line interface to bitwarden is the only thing stopping me. Please implement!

from cli.

zpeters avatar zpeters commented on May 21, 2024 2

I'm agreeing w/ @maetthu but my use case would be slightly different. I'd like a cli or "easy to use" api access to integrate bitwarden in "alternative" browsers. One i was working on was qutebrowser, but it was a dead-end for me because i didn't have a convenient way to tie in bitwarden.

Thinking out loud here but it might be less effort on the bitwarden teams side to just get the api/api docs up to a good standard and let the community develop the CLI? That might be more manageable from a "community" standpoint. i could imagine different people will want different things out of a cli. Depending on the environment they might need to be particular to the programming language, etc.

Happy to help out & contribute however i can!

from cli.

jamesbvaughan avatar jamesbvaughan commented on May 21, 2024 1

I really like Bitwarden and wanted to continue to support it, but the lack of a CLI client was pretty frustrating.

If anyone here is in need of a great CLI password manager, I'd highly recommend pass. I reluctantly switched from Bitwarden a while ago after I gave up on getting a CLI client, and it's been really great. I added Bitwarden support to the pass importer so it should be pretty easy to switch.

from cli.

 avatar commented on May 21, 2024 1

Any details on the plans for this app? How can we help?

from cli.

NonlinearFruit avatar NonlinearFruit commented on May 21, 2024 1

My main use case for my cli password manager is:

  1. pswd github | yy
  2. [master password]
  3. git push
  4. NonlinearFruit
  5. Ctrl+Shift+V
  6. Done

pswd is the alias for my password manager and yy my alias for xclip

from cli.

jamesbvaughan avatar jamesbvaughan commented on May 21, 2024

Bump.

I'd love to have a command line client as well! Any updates now?

from cli.

scotte avatar scotte commented on May 21, 2024

Lack of a command line keeps me from trying bitwarden, so I'll continue to use a combination of keepassxc and pass (passwordstore.org) for now, I guess. I'd really like to have a unified solution for command line, web, and Android.

from cli.

zpeters avatar zpeters commented on May 21, 2024

from cli.

kspearrin avatar kspearrin commented on May 21, 2024

@zpeters There is a bit of discovery that needs to be done before we can start working on the CLI app. I have never personally used a CLI for password management (I'm not really a heavy CLI app user all around for that matter) so I will need to "survey the field" to educate myself and see what features our competitors offer, what's good about each, what's not good, etc. Detailed input regarding that would be a good starter.

Technology wise we will likely end up building this with .NET Core (C#) or NodeJS (JavaScript/TypeScript), since these are the two technologies we use across the board for all of our work. They both offer the cross-platform compatibility that we need for the CLI.

from cli.

schmitmd avatar schmitmd commented on May 21, 2024

@kspearrin How would you like that request/wishlist submitted? A gist? I imagine a comment in this issue isn't the best.

from cli.

kspearrin avatar kspearrin commented on May 21, 2024

You can reply here or open a new issue for discussion.

from cli.

maetthu avatar maetthu commented on May 21, 2024

@kspearrin My primary use case for a CLI would be automated backups/exports. I do like the convenience of a hosted solution, but like to keep my data at a safe place in my control as well. As an alternative, API docs would be really nice - I was thinking about reverse engineering the chrome extension to build a simple backup tool, but it's a bit tedious and would be much easier with API docs. And if someone needs to do other automation tasks (like automatic password changes), it might be even easier/cleaner with an (REST-)API than with a CLI.

from cli.

scotte avatar scotte commented on May 21, 2024

I went ahead and paid for premium bitwarden in support of this and the Linux client, and in general towards bitwarden being a future single source of truth for passwords...

from cli.

birlorg avatar birlorg commented on May 21, 2024

I've written alpha quality CLI client in python3 and rust, the crypto works, the CLI itself is functional, but is very very limited at the moment. On macOS, it implements sudolikeaboss functionality. help making it better is appreciated. source repository links:

fossil-scm: https://fossil.birl.ca/bitwarden-cli/home
github mirror: https://github.com/birlorg/bitwarden-cli

@johnolos on macOS the slab functionality is superior IMHO and is implemented in my repo now. Should be trivial to support your method as well, but I'll tackle that tomorrow probably.

from cli.

maetthu avatar maetthu commented on May 21, 2024

@birlorg A word of caution, given that you are using rust-crypto: This library is more or less abandoned (last release ~2 years ago) and states in its README: "Rust-Crypto has not been thoroughly audited for correctness, so any use where security is important is not recommended at this time.". (I don't know much about rust, so I don't know about better alternatives, I just checked out its crypto support for another project a while back). But thanks for your work, I'll gladly test the python version soon 😃

from cli.

birlorg avatar birlorg commented on May 21, 2024

@maetthu Thanks! I must have missed that. The crypto code needed a serious re-factor anyway ;)

from cli.

birlorg avatar birlorg commented on May 21, 2024

@johnolos @NonlinearFruit implemented:

bitwarden find example.com -f tsv --no-headers | fzf | cut -f 1 | xargs bitwarden fetch_uuid -p

bitwarden find --help will show details and this example.

even easier now in 0.3.0 release:

bitwarden config slab_location `which fzf`

then to run:

bitwarden slab

and it will launch fzf and everything and spit out the password. it only searches entries with a url sudolikeaboss://local however (and lets you pick from any one with that URI) bitwarden find will work for any URI.

from cli.

johnolos avatar johnolos commented on May 21, 2024

@birlorg : I'll make sure to check out your rust-version when I have time.

Edit:
Regarding crypto-libs in rust:
https://github.com/rust-unofficial/awesome-rust#cryptography

from cli.

birlorg avatar birlorg commented on May 21, 2024

@johnolos
That list includes rust-crypto which apparently is dead. hyper, and tokio call out to openssl it seems, so that is probably where I will end-up. Also I'm pretty sure that is where the NPM/nodejs insanity eventually lands which bitwarden proper seems to use.

from cli.

kspearrin avatar kspearrin commented on May 21, 2024

This CLI is now generally available. See this blog post for the release announcement: https://blog.bitwarden.com/bitwarden-command-line-tool-now-available-e6184407b719

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.