Brava CLI
Command-line access to the Brava Security platform for attack simulation and SIEM hygiene, built for terminals and CI.
pip install brava-cli # or: uv tool install brava-cli
export BRAVA_URL=https://console.brava.security
export BRAVA_API_TOKEN=brava_… # API key from Settings → API Keys
brava doctor # shows which products your key can read
Or store credentials once with brava auth login --token <key> (--url defaults to https://console.brava.security); BRAVA_URL / BRAVA_API_TOKEN override stored values.
| Product | API key scopes | Commands |
|---|---|---|
| Attack simulation | simulations:run |
brava catalog, brava run simulation, brava run goal |
| Hygiene | hygiene:read, hygiene:detections:test |
brava siems list, brava run sweep, brava run test |
With an API key, brava run simulation|goal … work when --account-id is the Brava environment UUID; brava accounts list and lookup by name or cloud account id are not available to API keys yet.
brava doctor marks a product NO ACCESS when the key lacks that product's read scope (simulations:run, hygiene:read); it exits 0 only when no check fails and at least one product is accessible (HTTP 200).
brava run sweep watch and brava run test watch exit 0 pass, 1 request, auth or validation error (e.g. a bad --timeout, missing URL/token), 2 gate failed (a hygiene check failed or a finding at/above --fail-on, default high) or a usage error caught while parsing arguments (e.g. --fail-on bogus, a missing run id), 3 timed out (run continues), 4 no answer (run FAILED/CANCELLED, verdict UNKNOWN, or an injection test (not a dry run) INCONCLUSIVE/NOT_TELEMETRY_DRIVEN). A sweep's log-type and feed warnings never change the exit code. brava run test create --dry-run runs the hygiene checks only and is judged like a sweep.
Documentation: https://docs.brava.security/cli/
Metadata
Release files for brava-cli 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brava_cli-0.3.0.tar.gz | 16.4 kB | With provenance | Details for brava_cli-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brava_cli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for brava_cli-0.3.0-py3-none-any.whl |
Total release size: 37.6 kB
Release files / brava_cli-0.3.0.tar.gz
| Download URL | brava_cli-0.3.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44134940c1f4287d8f8336cb158e6528d6714dbe6cd22e022bcf3ed1a51db739
|
|
BLAKE2b-256 checksum How to use checksums |
8a55b405dd987427779525cf50c9a5727f8d227896621fe7b8c5b44456269613
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / brava_cli-0.3.0-py3-none-any.whl
| Download URL | brava_cli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a58249e9d5d47184c6d7a92a9bb1378e6f019db692f48fb74389e19a9475c6b9
|
|
BLAKE2b-256 checksum How to use checksums |
6162f4b46b7a8515ef08d6b0aff445081f3e86a553749c34e2925934c0b2a01a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logSecurity for brava-cli 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for brava_cli-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.