All apps/Bitwarden Secrets Manager CLI

Bitwarden Secrets Manager CLI

bws

A Rust CLI for interacting with the Bitwarden Secrets Manager.

Runs as bws|macOS, Linux, Windows|bitwarden.com

Command form

ai-draft · 3 tasks · 5 fields

Read secrets and projects. Creating, editing and deleting secrets, config and access tokens are left out; pass the token through BWS_ACCESS_TOKEN rather than a flag.

Opens the form; the finished command lands at your prompt, unrun
otty gui bws

bws secret list

List secrets

List the secrets this service account can access, optionally for one project.

List secretsExample values, fixed in this page — nothing here reaches a terminal
Basic
Output format
tablestring
TasksEach one presets the form for one job
All secrets as a table
output
ParametersOnly these flags are editable in the form
Project ID
Limit to this project identifier.
string · positional 0
Output format
Output format (default json).
string
--output-ojsonyamlenvtabletsvnone

bws secret get

Get a secret

Retrieve one secret by its ID.

Get a secretExample values, fixed in this page — nothing here reaches a terminal
Basic
Secret ID*
string
Output format
envstring
TasksEach one presets the form for one job
Get as env line
secret_idoutput
ParametersOnly these flags are editable in the form
Secret ID
ID of the secret to retrieve.
string · positional 0
Output format
Output format (default json).
string
--output-ojsonyamlenvtabletsvnone

bws project list

List projects

List the projects this service account can access.

List projectsExample values, fixed in this page — nothing here reaches a terminal
Basic
Output format
tablestring
TasksEach one presets the form for one job
As a table
output
ParametersOnly these flags are editable in the form
Output format
Output format (default json).
string
--output-ojsonyamlenvtabletsvnone
SourcesEvery flag above is checked against these
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 bws against its version. A form that does not match your version is not offered.