All apps/Bitwarden CLI

Bitwarden CLI

bitwarden-cli
Runs as bw|macOS, Linux, Windows|bitwarden.com

Command form

ai-draft · 12 tasks · 31 fields

Global output options for bw. Use the subcommand tabs for login, unlock, sync, list, get and generate; master passwords and session keys are never typed into this form.

Opens the form; the finished command lands at your prompt, unrun
otty gui bitwarden-cli
Output optionsExample values, fixed in this page — nothing here reaches a terminal
Basic
Raw output
--raw
No prompts
--nointeraction
TasksEach one presets the form for one job
Script-friendly output
rawnointeraction
ParametersOnly these flags are editable in the form
Pretty-print JSON
Format output; JSON is indented with two spaces.
boolean
--pretty
Raw output
Return raw output instead of a descriptive message.
boolean
--raw
JSON response
boolean
--response
Quiet
Do not return anything to stdout.
boolean
--quiet
No prompts
Do not prompt for interactive user input.
boolean
--nointeraction

bw login

Log in

Log into a user account. The master password is entered at the prompt.

Log inExample values, fixed in this page — nothing here reaches a terminal
Basic
Email*
string
TasksEach one presets the form for one job
Log in with email
email
Log in with SSO
sso
ParametersOnly these flags are editable in the form
Email
string · positional 0
Single sign-on
boolean
--sso
API key
boolean
--apikey
Two-step method
Two-step login method.
string
--method013
Two-step code
string
--code
Check login status
boolean
--check

bw unlock

Unlock vault

Unlock the vault and print a new session key. The master password is entered at the prompt.

Unlock vaultExample values, fixed in this page — nothing here reaches a terminal
Basic
Password variable
string
Password file
file
TasksEach one presets the form for one job
Unlock
passwordenvpasswordfile
Check lock status
check
ParametersOnly these flags are editable in the form
Password variable
Name of an environment variable holding your password.
string
--passwordenv
Password file
File with the password as its first line.
path
--passwordfile
Check lock status
boolean
--check

bw sync

Sync vault

Pull the latest vault data from the server.

Sync vaultExample values, fixed in this page — nothing here reaches a terminal
Basic
Force full sync
--force
TasksEach one presets the form for one job
Sync
force
Last sync time
last
ParametersOnly these flags are editable in the form
Force full sync
boolean
--force-f
Show last sync
boolean
--last

bw list

List vault objects

List items, folders, collections or organizations.

List vault objectsExample values, fixed in this page — nothing here reaches a terminal
Basic
Object type*
itemsstring
Search
string
TasksEach one presets the form for one job
Search items
objectsearch
List folders
object
ParametersOnly these flags are editable in the form
Object type
string · positional 0
itemsfolderscollectionsorg-collectionsorg-membersorganizations
Search
string
--search
URL match
Filter login items by URL.
url
--url
Folder ID
string
--folderid
Collection ID
string
--collectionid
Organization ID
string
--organizationid
Items in trash
boolean
--trash

bw get

Get an object

Print one object from the vault. Output includes secrets; check who can see your screen.

Get an objectExample values, fixed in this page — nothing here reaches a terminal
Basic
Search term or ID*
string
TasksEach one presets the form for one job
Get a TOTP code
id
Get a username
id
ParametersOnly these flags are editable in the form
Object type
string · positional 0
itemusernamepassworduritotpexposedfoldercollection
Search term or ID
string · positional 1
Organization ID
string
--organizationid

bw generate

Generate password

Generate a password. Passphrase mode is left out.

Generate passwordExample values, fixed in this page — nothing here reaches a terminal
Basic
Length
24integer
Uppercase
--uppercase
Lowercase
--lowercase
Numbers
--number
Special characters
--special
TasksEach one presets the form for one job
24 characters, all classes
lengthuppercaselowercasenumberspecial
ParametersOnly these flags are editable in the form
Length
integer
--length
Uppercase
boolean
--uppercase-u
Lowercase
boolean
--lowercase-l
Numbers
boolean
--number-n
Special characters
boolean
--special-s
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed bw against its version. A form that does not match your version is not offered.