Expand description
bw status — server, last sync, user information, and vault lock state.
Runs in every auth state, so the command takes AnyState and branches internally rather than
letting a typestate extractor reject the unauthenticated case.
serverUrl is resolved from config.json alone (see resolve_server_url). The persisted
BASE_URLS setting holds only the derived api/identity URLs, from which the user-entered base
URL is not recoverable for split-domain deployments. Consequence: a self-hosted login performed
through
bw login --server <url> (which persists no base URL at all today) reports the cloud default
until the server is also set with bw config server <url>. Same underlying gap as the TODO on
web_vault_url in crate::tools::send.
Structs§
- Status
Args - Status
Response 🔒 - Output of
bw status. The camelCase field names are consumed by scripts written against the Node CLI, so they must not change.
Functions§
- build_
status 🔒 - Assemble the response for an already-resolved server URL, so the state-dependent mapping is testable without touching the caller’s appdata directory.