CLI Guide¶
The disclosure-alpha CLI runs extract, metrics, and score commands against local HTML or live SEC EDGAR filings. All commands print JSON to stdout.
Prerequisites: Installation; SEC EDGAR Setup for --ticker.
Commands¶
Command |
Description |
|---|---|
|
Parse HTML → section list with word counts |
|
Extract + compute text metrics and diffs |
|
Full pipeline → deterministic component scores |
extract¶
disclosure-alpha extract --html filing.html --form 10-K
disclosure-alpha extract --html - --form 10-Q # stdin
metrics¶
disclosure-alpha metrics --html current.html --form 10-K
disclosure-alpha metrics --html current.html --form 10-K --prior-html prior.html
score¶
Local HTML:
disclosure-alpha score --html filing.html --form 10-K
disclosure-alpha score --html current.html --form 10-K --prior-html prior.html
By ticker (requires SEC_USER_AGENT):
disclosure-alpha score --ticker AAPL --fiscal-year 2025 --form 10-K
disclosure-alpha score --ticker MSFT --fiscal-year 2025 --form 10-Q --quarter Q2
score flags¶
Flag |
Description |
|---|---|
|
Path to HTML file or |
|
Ticker symbol (fetches from EDGAR) |
|
|
|
Required with |
|
|
|
Prior filing HTML for section diffs |
Output shape¶
score returns a JSON object with overall_disclosure_risk_score, components, confidence_score, score_coverage_ratio, and missing_components. Pipe to jq for filtering:
disclosure-alpha score --ticker AAPL --fiscal-year 2025 | jq '.scores.overall_disclosure_risk_score'