@retemper/lodestar-cli
v0.0.6
Published
CLI for Lodestar architecture rule engine
Readme
@retemper/lodestar-cli
Command-line interface for the Lodestar architecture rule engine.
Installation
pnpm add -D @retemper/lodestar-cliOr run directly:
npx lodestar checkCommands
lodestar check
Run architecture rule checks against the current project.
# Basic check
lodestar check
# JSON output (for CI integration)
lodestar check --format json
# Explicit workspace mode (auto-detected by default)
lodestar check --workspaceOptions:
| Flag | Default | Description |
| ------------- | --------- | -------------------------------------------------- |
| --format | console | Output format: console or json |
| --workspace | auto | Run in workspace mode across all monorepo packages |
lodestar init
Scaffold a lodestar.config.ts file in the current directory.
lodestar initProgrammatic API
import {
checkCommand,
initCommand,
createConsoleReporter,
createJsonReporter,
} from '@retemper/lodestar-cli';| Export | Description |
| ----------------------- | -------------------------------------- |
| createCli | Create the full yargs CLI instance |
| checkCommand | Handler for the check command |
| initCommand | Handler for the init command |
| createConsoleReporter | Human-readable console output reporter |
| createJsonReporter | Machine-readable JSON output reporter |
