Skip to main content
Selects an organization you have logged in to on this machine, after checking that its stored key still gives access.

Arguments

string
required
The ID of an organization stored on this machine. Run sabaoth org list to see them.

Flags

boolean
default:"false"
Print the result as JSON on stdout.

Example

With --json:

Behavior

  • Access is checked first. The CLI sends the stored key to the API, and the organization must still be one the key covers. Then the selection is saved.
  • The display name is refreshed. If the organization was renamed, the new name is saved and a warning tells you so.
  • Nothing changes on failure. If the key is rejected, no longer covers the organization, is missing, or the keychain is locked, the previous selection stays.
  • Only organizations you’ve logged in to. To add a new one, use sabaoth login.
With SABAOTH_API_KEY set, the selection is still saved, but a warning reminds you that commands keep using the environment variable’s organization until you unset it.
To run a single command in another organization without changing the selection, pass --org to that command instead, for example sabaoth postgres list --org org_xyz.

Errors