Skip to main content

Crate bw

Crate bw 

Source
Expand description

ยงBitwarden CLI (testing)

A testing CLI for the Bitwarden Password Manager SDK.

Modulesยง

admin_console ๐Ÿ”’
auth ๐Ÿ”’
client_state ๐Ÿ”’
Compile-time client-state machine for CLI commands.
command ๐Ÿ”’
CLI command definitions and argument parsing for the Bitwarden CLI (bw).
dirt ๐Ÿ”’
key_management ๐Ÿ”’
platform ๐Ÿ”’
render ๐Ÿ”’
tools ๐Ÿ”’
vault ๐Ÿ”’

Functionsยง

db_config ๐Ÿ”’
init_cli_platform_info ๐Ÿ”’
legacy_temp_login ๐Ÿ”’
One-shot bootstrap login for commands that need an authenticated user before bw login writes its own session state. When the BW_EMAIL / BW_PASSWORD env vars are set, logs in against the persisted session database, persists the resulting session state (tokens, login method, account crypto state, and a session-key envelope), and mints a session key which it prints for the user to export as BW_SESSION and reuse on subsequent runs. Does nothing when the env vars are unset.
main ๐Ÿ”’
process_commands ๐Ÿ”’
rehydrate_user ๐Ÿ”’
Rehydrate a [PasswordManagerClient] from the persisted session database.