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.
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.
Turn a switch on or off
Section titled “Turn a switch on or off”- Open Bearly Platform and select Policies. Access reads “Turn Bearly API and CLI on or off for your organization.”
- 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.”
Turn them off for one group
Section titled “Turn them off for one group”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.”
Sign out CLI devices
Section titled “Sign out CLI devices”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.