Setup

Configuring the Bevor CLI

The Bevor CLI is scoped to a working directory. Linking a directory creates a .bevor folder in it to store local configuration (it's ignored by git automatically). Credentials live in a global ~/.bevor folder.

While the CLI authenticates you as a user, most commands act on a linked workspace and project.

Steps

  1. bevor login opens the Bevor dashboard to authorize your account.
  2. bevor whoami shows the authenticated user.
  3. bevor link in your working directory selects the workspace and project to act on.
  4. bevor status shows what's selected: workspace, project, code, analysis, and HEAD.
  5. bevor sync pushes your code and adds it to the selected analysis; start one with bevor analyses create.

help

Show root help text (alias for --help).

bevor help

upgrade

Upgrade bevor-cli to the latest release.

bevor upgrade

login

Log in via browser.

Opens your default browser to authenticate with Bevor. Your credentials are stored locally and used for subsequent commands.

bevor login

logout

Remove stored credentials.

bevor logout

whoami

Show the currently authenticated user.

bevor whoami [OPTIONS]

Options:

--jsonflag

JSON output

Link the current directory to a Bevor workspace and project.

Resets/creates the .bevor/config.json.

bevor link

status

Show the selected workspace, project, code, and analysis, plus HEAD, staged changes, and pipeline progress.

bevor status [OPTIONS]

Options:

--jsonflag

JSON output

sync

Push the working directory and add it to the selected analysis as a new version.

Use this after any code change: saved edits, a branch switch, or a pull. Without a selected analysis it only pushes; start one with bevor analyses create.

bevor sync [OPTIONS]

Options:

--runflag

Run the security pipeline on the new HEAD afterwards.

--yesflag

Skip confirmation of action.

reflog

Show recent analysis selections and HEAD moves made from this directory, newest first.

Entries that switch to a different analysis (or clear the selection) say "moving to". With --json, each entry's kind is "changed" for those and "moved" for HEAD moves.

bevor reflog [OPTIONS]

Options:

--limit, -ninteger
default:20

Maximum number of entries to show.

--jsonflag

JSON output

On this page