@loanscope/cli
v0.1.1
Published
LoanScope command-line interface for mortgage scenario evaluation, comparison grids, goal-seek, simulation, and SQLite-backed scenario / catalog / audit persistence.
Maintainers
Readme
@loanscope/cli
LoanScope command-line interface. Wraps the underwriting engine, comparison grids, goal-seek, simulation, scenario / comparison / simulation persistence, custom product set management, catalog import pipeline, audit sessions, diff, batch mode, and scenario export in a Commander-based CLI.
Install
pnpm add -g @loanscope/cliAfter install, the loanscope binary is on your PATH.
Commands
Quick one-shot quote (no config file):
loanscope quote --loan 1000000 --price 1250000 --fico 740Full evaluation from a YAML scenario:
loanscope evaluate --config scenarios/default.yaml --output table
loanscope evaluate --config scenarios/default.yaml --output jsonComparison grid across LTV and term:
loanscope compare --config scenarios/default.yaml --ltv 0.75:0.95:0.05 --terms 360,480Goal-seek maximum loan amount that still passes every check:
loanscope goalseek max-loan --product uwm_jumbo_pink --config scenarios/default.yamlSimulate borrower actions (pay-down, add reserves, include borrower, etc.):
loanscope simulate --config scenarios/default.yamlPersist and replay:
loanscope db init
loanscope db save-scenario --name "Smith Refi" --config scenarios/default.yaml
loanscope evaluate --from-db <scenarioId> --save "Smith Refi Eval"
loanscope db show-scenario <scenarioId>Reproducible audit trail:
loanscope evaluate --config scenarios/default.yaml --audit
loanscope db audit list
loanscope db audit show <sessionId>Diff two persisted runs:
loanscope diff scenario <idA> <idB>
loanscope diff comparison <idA> <idB>
loanscope diff simulation <idA> <idB>Batch evaluate a list of scenarios:
loanscope batch scenarios/a.yaml scenarios/b.yaml scenarios/c.yaml --output csvExport a scenario back to a re-loadable YAML file (with optional rate/term overrides):
loanscope export-scenario --from-db <scenarioId> --out /tmp/rederived.yaml --rate 7.25See loanscope --help for the full command tree and loanscope <command> --help for per-command options.
Changelog
See CHANGELOG.md for per-package release history.
Part of the LoanScope monorepo
See the repository root for the full list of @loanscope/* packages and the architecture reference.
License
MIT
