edgar-cli v0.1.4 is an agent-friendly CLI for accessing SEC EDGAR filings and company facts, designed for Node.js (>=18) and usable via npx without requiring Python. It provides commands for resolving tickers, listing/getting filings, extracting XBRL facts, and performing research syncing/querying with deterministic caching profiles. The CLI enforces SEC identity requirements via --user-agent or EDGAR_USER_AGENT and outputs stable JSON envelopes for automation. It differentiates from other EDGAR tools by being npx-friendly, TypeScript-native, and offering research capabilities with configurable filing profiles.
npm install edgar-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting SEC identity and running resolve, filings list, and facts get commands.
Set EDGAR_USER_AGENT environment variable or pass --user-agent to each command.
Use the official ticker symbol (e.g., AAPL for Apple Inc.).
Copy the exact accession number from SEC EDGAR or use the filings list command to get valid accessions.
Set EDGAR_USER_AGENT environment variable or pass --user-agent 'Your Name your.email@example.com'.
Ensure the cache directory is writable, or set EDGAR_CACHE_DIR to a writable path; create the directory manually if needed.
No dependency data recorded yet.