Skip to content
Docs
Open Bearly

Turn the Bearly API and CLI on or off for your organization

How to allow or block API keys and the Bearly CLI for everyone in your Bearly organization from Bearly Platform, per group with policies, and sign out CLI devices.

⋯
View as markdown

Two switches at the top of Policies in Bearly Platform decide whether people in your organization can call Bearly from code and sign in to the Bearly CLI. Only organization admins can change them.

  1. Open Bearly Platform and select Policies. Access reads “Turn Bearly API and CLI on or off for your organization.”
  2. Switch Bearly API or Bearly CLI.
Switch When it’s on
Bearly API “Members and service accounts can create API keys and call Bearly from their own code.”
Bearly CLI “Members can sign in to the Bearly CLI on their computers.”

Turning a switch on saves right away. Turning one off asks first:

  • Turn off the Bearly API? Active API keys and service accounts stop working right away. Nothing is deleted; turn it back on to restore them.
  • Turn off the Bearly CLI? Signed-in CLI devices stop working right away. Nothing is deleted; turn it back on to restore them.

Select Turn off to confirm or Keep it on to cancel. The two switches are separate: turning off one doesn’t stop the other.

While the policy editor below has unsaved changes, the switches wait: “Save or discard your policy changes first.”

The switches set your organization’s default policy. The same two controls appear in the policy editor under Access, so a group’s policy can turn the API or CLI off for that group only. See Set policies.

A member whose policy turns the API off doesn’t see API keys in Bearly, and requests with their keys are refused with “Your organization’s policy doesn’t allow API keys.”

Keys & access → CLI devices lists the computers where members signed in to the Bearly CLI with your organization, grouped by member, with when each signed in and was last used.

  • Select the Sign out button (an arrow leaving a door) beside a device to sign out that computer.
  • Select Sign out N devices beside a member who has more than one to sign out all of their computers.
  • Select Sign out every device to sign out everyone: “Every member signed in to the Bearly CLI with this organization will need to sign in again.”

A member who’s signed out can sign in again while Bearly CLI is on. To keep everyone out, turn the switch off.