@peria/cli
v0.1.2
Published
Local-first source-backed knowledge graph CLI for backend and API repositories.
Maintainers
Readme
Peria CLI
Local-first source-backed knowledge graph CLI for backend and API repositories.
Features
peria scan- Scan repository and generate manifestperia check- Run drift detection checksperia build- Build documentation siteperia serve- Serve documentation locallyperia init- Initialize Peria in a new project
Installation
npm install -D @peria/cli
# or
bun add -D @peria/cliUsage
Initialize a new project
peria initScan repository
peria scanCheck for drift
peria check
peria check --json
peria check --severity errorBuild documentation
peria buildServe documentation
peria serve
peria serve --port 3000Options
| Command | Options | Description |
|---------|---------|-------------|
| scan | --cwd | Working directory |
| check | --json, --severity | Output format and severity filter |
| build | --output | Output directory |
| serve | --port, --open | Server options |
Configuration
Create a peria.config.ts file:
import { defineConfig } from '@peria/core';
export default defineConfig({
framework: 'nestjs',
features: {
audit: true,
contextPacks: true,
diagrams: true,
},
});License
MIT
