There may already be some similar projects, just what I found quickly with a Google search for Bitwarden CLI Rust and within GitHub. May save you some time trying to reinvent the wheel, might still see what you can do to contribute too if you have the time.
Please note I have not personally inspected the code for these projects, please do your own due diligence to review the code base and understand what is happening. Especially as the Bitwarden client is where the actual decryption happens.
[me@rocky9t01a bw]$ bw
Bitwarden CLI
Usage: Bitwarden CLI [OPTIONS] [COMMAND]
Commands:
login
register Register
item Manage vault items
sync Pull the latest vault data from the server
generate Password and passphrase generators
help Print this message or the help of the given subcommand(s)
Options:
-o, --output <OUTPUT> [default: json] [possible values: json, yaml, table, tsv, none]
-c, --color <COLOR> [default: auto] [possible values: no, yes, auto]
-h, --help Print help
-V, --version Print version
[me@rocky9t01a bw]$ bw -V
Bitwarden CLI 0.0.2
[me@rocky9t01a bw]$
This is a long time coming - other priorities got in the way - but if you’re using Fedora or any RHEL 9 compatible distro (AlmaLinux, CentOS Stream, etc.) - rbw is now packaged!