Skip to main content

status

The status command returns status information about the Bravura Safe CLI, including configured server URL, timestamp for the last sync (ISO 8601), user email and ID, and the safe status.

bsafe status

status will return information as a JSON object, for example:

{
"serverUrl": "https://safe.domain.com",
"lastSync": "2020-06-16T06:33:51.419Z",
"userEmail": "user@example.com",
"userId": "00000000-0000-0000-0000-000000000000",
"status": "unlocked"
}

The status may be one of the following:

  • "unlocked", indicating you are logged in and your safe is unlocked. A BSAFE_SESSION key environment variable is saved with an active session key.

  • "locked", indicating you are logged in but your safe is locked. No BSAFE_SESSION key environment variable is saved with an active session key.

  • "unauthenticated", indicating you are not logged in

When "status": "unauthenticated", lastSync, userEmail, and userId will always return null (i.e. when you are not logged in, the status command will return this information):

{
"serverUrl": "https://bp.lab.devlab.hids.ca",
"lastSync": null,
"status": "unauthenticated"
}