CLI Reference
EHDSLens provides a command-line interface for quick analysis.
Installation
The CLI is automatically installed with the package:
Commands
stats
Display database statistics.
Output includes: - Total studies - Year range - Studies by thematic axis - Studies by quality rating - Studies by type
analyze
Analyze a specific thematic axis.
Arguments:
- axis: One of governance, pets, implementation, engagement, federated
Examples:
search
Search studies by keyword.
Arguments:
- query: Search term (searches authors, titles, journals)
Examples:
report
Generate a Markdown report.
Options:
- -o, --output: Output file path (default: stdout)
Examples:
export
Export bibliography.
Options:
- --format: One of bibtex, ris, apa, vancouver
- -o, --output: Output file path (default: stdout)
Examples:
ehdslens export --format bibtex
ehdslens export --format bibtex -o references.bib
ehdslens export --format ris -o references.ris
ehdslens export --format apa
grade
Display GRADE-CERQual findings.
Shows confidence assessments for key findings.
hypotheses
Display testable hypotheses.
Shows hypotheses organized by category.
prisma
Display PRISMA flow diagram data.
Shows identification, screening, eligibility, and inclusion counts.
Global Options
--version
Show version number.
--help
Show help message.
Examples
# Quick overview
ehdslens stats
# Find privacy-related studies
ehdslens search "privacy"
# Analyze federated learning axis
ehdslens analyze federated
# Export bibliography for reference manager
ehdslens export --format bibtex -o refs.bib
# Generate report
ehdslens report -o analysis.md
# View confidence assessments
ehdslens grade