analyses
Manage analyses.
An analysis is a history of versions, like a git repository. HEAD is the version commands act on by default; pass --version to target another. Findings staged with bevor findings sit on HEAD until you commit them, which creates a new version. After a code change, bevor sync pushes it and adds it as a new version.
list
List analyses in the selected project (or --project). The selected one is marked.
bevor analyses list [OPTIONS]Options:
--pageintegerPage number to use for resource that supports pagination
--page-sizeintegerPage size to use for resource that supports pagination
--orderdesc | ascHow to order results when a resource supports pagination
--order-bycreated_at | updated_atWhat field to order results by when a resource supports pagination
--projecttextProject ID (defaults to .bevor config).
--usertextAnalysis creator to filter by
--is-ownerflagAnalysis filter by owner only
--jsonflagJSON output
view
Show HEAD of the selected analysis (or of analysis_id), or a specific --version.
bevor analyses view [analysis_id] [OPTIONS]Arguments:
analysis_idtextAnalysis id. Defaults to the selected analysis.
Options:
--versiontextShow this version instead of HEAD.
--jsonflagJSON output
lineage
Show HEAD of the selected analysis and its ancestors, back toward the root.
Each version is fetched individually, so keep --limit small on long histories.
bevor analyses lineage [OPTIONS]Options:
--limit, -ninteger10Maximum number of versions to show.
--onelineflagOne line per version.
--jsonflagJSON output
select
Select an analysis to work on, by id, with --recent, or from a list.
bevor analyses select [analysis_id] [OPTIONS]Arguments:
analysis_idtextAnalysis id to select. Prompts with a list when omitted.
Options:
--pageintegerPage number to query
--page-sizeintegerMax analyses to fetch.
--recentflagSelect your most recently used analysis.
deselect
Clear the selected analysis. Nothing is deleted; the pushed code stays selected.
bevor analyses deselectcreate
Create a version for the pushed code.
With an analysis selected, adds it as a new version on HEAD and moves HEAD to it. With none
selected (or --new), starts a new analysis and selects it. Nothing is run; use
bevor analyses run for that. The working directory must match the last push; bevor sync
pushes and does this in one step.
bevor analyses create [OPTIONS]Options:
--newflagStart a new analysis even if one is selected.
--nametextName for a new analysis.
--versiontextAdd the new version on top of this version instead of HEAD.
--collisionsurface | force | mergesurfaceWhat to do if this code already has a version: surface the candidates (default), force, or merge.
--yesflagSkip confirmation of action.
--jsonflagJSON output
--forceflagSkip checks. Not recommended.
fork
Copy another user's version into a new analysis you own, and select it.
Forks HEAD of the selected analysis, or --version. You can't change analyses you don't own;
forking lets you build on their findings. To branch your own analysis, move HEAD back with
bevor analyses set-head and create a version from there.
bevor analyses fork [OPTIONS]Options:
--versiontextUse this version instead of HEAD.
merge
Merge another analysis's HEAD (or --from-version) into the selected analysis (or --to).
Creates a new version on the destination, moves its HEAD there, and selects it.
bevor analyses merge [from_analysis] [OPTIONS]Arguments:
from_analysistextAnalysis to merge from (its HEAD is used).
Options:
--from-versiontextMerge from this exact version instead of an analysis's HEAD.
--totextAnalysis to merge into (default: the selected analysis).
run
Run the security pipeline on the first-party entrypoints of HEAD (or --version).
Pass --all to include entrypoints in dependencies too.
bevor analyses run [OPTIONS]Options:
--versiontextUse this version instead of HEAD.
--allflagInclude dependency entrypoints, not just first-party ones.
--no-waitflagReturn immediately without waiting for the event stream to complete.
--silentflagSuppress intermediate output logs.
entrypoints
List the entrypoints of HEAD (or --version) and their pipeline status.
bevor analyses entrypoints [OPTIONS]Options:
--versiontextUse this version instead of HEAD.
--jsonflagJSON output
materialize
Write each entrypoint of HEAD that still needs processing to .bevor/analyses/<analysis>/<entrypoint>.raw.md.
Each file holds the entrypoint's source and its call chain, for an external agent to review. Only entrypoints that are queued or failed, and not carried over from a parent version, are written.
bevor analyses materializetransitions
Show how findings changed (added, updated, removed, remediated, dismissed) at HEAD (or --version).
With --project-wide, list changes across the whole project instead.
bevor analyses transitions [OPTIONS]Options:
--pageintegerPage number to use for resource that supports pagination
--page-sizeintegerPage size to use for resource that supports pagination
--orderdesc | ascHow to order results when a resource supports pagination
--order-bycreated_at | updated_atWhat field to order results by when a resource supports pagination
--kindremediated | carriedOnly show transitions with this kind (e.g. remediated, carried).
--versiontextUse this version instead of HEAD.
--project-wideflagList transitions across the whole project instead.
--jsonflagJSON output
set-head
Point HEAD of the selected analysis at a version. Commands act on HEAD by default.
@{1} or - undoes the last HEAD move made from this directory.
bevor analyses set-head <version_id>Arguments:
version_idtextrequiredVersion id, @{n} for where HEAD was n moves ago (see bevor reflog), or - for the previous HEAD.
delete
Delete a version, or the entire analysis.
full
Delete the selected analysis and all of its versions.
bevor analyses delete fullversion
Delete a single leaf version. If it was HEAD, HEAD moves to its parent.
bevor analyses delete version <version>Arguments:
versiontextrequiredVersion id to delete. Must be a leaf version.

