Skip to main content

Module config

Module config 

Source

Structs§

ConfigFile
On-disk shape of the CLI’s legacy server-URL config, written by bw config server and read by bw status when no user is logged in.

Enums§

ConfigCommand

Functions§

collapse_default_alias 🔒
Reproduces Node CLI’s literal-string check in config.command.ts: the strings "null", "bitwarden.com", and "https://bitwarden.com" collapse to a missing server (i.e. fall back to the default cloud URL on read).
config_json_path 🔒
format_url 🔒
Reproduces Node CLI’s formatUrl from default-environment.service.ts: empty input collapses to None, trailing slashes are stripped, https:// is prepended when no scheme is present, and surrounding whitespace is trimmed.
read_config_json
Reads the config JSON from disk
read_config_json_from 🔒
write_config_json
Writes the config JSON to disk, creating parent directories as needed
write_config_json_to 🔒