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
bevor loginopens the Bevor dashboard to authorize your account.bevor whoamishows the authenticated user.bevor linkin your working directory selects the workspace and project to act on.bevor statusshows what's selected: workspace, project, code, analysis, and HEAD.bevor syncpushes your code and adds it to the selected analysis; start one withbevor analyses create.
help
Show root help text (alias for --help).
bevor helpupgrade
Upgrade bevor-cli to the latest release.
bevor upgradelogin
Log in via browser.
Opens your default browser to authenticate with Bevor. Your credentials are stored locally and used for subsequent commands.
bevor loginlogout
Remove stored credentials.
bevor logoutwhoami
Show the currently authenticated user.
bevor whoami [OPTIONS]Options:
--jsonflagJSON output
link
Link the current directory to a Bevor workspace and project.
Resets/creates the .bevor/config.json.
bevor linkstatus
Show the selected workspace, project, code, and analysis, plus HEAD, staged changes, and pipeline progress.
bevor status [OPTIONS]Options:
--jsonflagJSON 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:
--runflagRun the security pipeline on the new HEAD afterwards.
--yesflagSkip 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, -ninteger20Maximum number of entries to show.
--jsonflagJSON output

