Bitwarden CLI Commands

bw login, Log into a Bitwarden account using interactive email/password or options like --apikey.
bw logout, "Log out of your account, clearing local session keys, tokens, and local cached data."
bw config, "Configure CLI settings (e.g., bw config server to point to self-hosted instances)."
bw sync, Download and update your local encrypted vault cache from the Bitwarden server.
bw status, "Display current CLI state (server URL, last sync time, user email, locked/unlocked)."
bw unlock, Decrypt the vault using your master password and return an active BWSESSION key.
bw lock, "Destroy the active decryption key in memory, locking access to vault contents."
bw list , "Return arrays of vault objects as JSON (items, folders, collections, organizations)."
bw get , "Retrieve a single object JSON (item, folder, collection, organization, template)."
bw get username , Fetch only the plaintext username of an item.
bw get password , Fetch only the plaintext password of an item.
bw get uri , Fetch only the primary URI / URL of an item.
bw get totp , Generate and output the current 6-digit 2FA / TOTP verification code.
bw get notes , Fetch only the secure note text of an item.
bw get template , "Display blank JSON schema templates (item, item.field, folder, send)."
bw create <encodedjson>, "Create new vault object (item, folder, attachment, send) via encoded JSON."
bw edit , "Overwrite/update an existing object (item, folder) using its unique ID and JSON."
bw delete , "Delete an object (item, folder, attachment, send) by ID."
bw encode, Base64-encode standard input text/JSON for safe consumption by create and edit.
bw generate, "Generate random passwords or passphrases with flags (-u, -l, -n, -s, --passphrase)."
bw export, "Export vault data to encrypted or plaintext JSON/CSV files (--format json, --encrypted)."
bw import, Import vault data from external format files into Bitwarden.
bw send, "Create, manage, or view Bitwarden Send items for secure temporary file/text sharing."
bw receive, Access or download a shared Bitwarden Send payload using a public Send URL.
--session , Pass the active BW_SESSION key directly to any command without setting environment variables.
--noencoding, Instruct commands that expect JSON (like create or edit) to parse raw JSON instead of Base64.
--raw, "Output raw, unformatted text or JSON without shell decoration."
--pretty, Format output JSON with standard indentations for easier human reading.
--version / -v, Display the currently installed Bitwarden CLI binary version.
--help / -h, Display context-sensitive help information for any CLI command.