CLI Reference
Master CLI — logrite-manager.js
Section titled “Master CLI — logrite-manager.js”Location: /root/logrite/cli/logrite-manager.js
The master CLI orchestrates all services and is the recommended entry point for all operations.
Service Commands
Section titled “Service Commands”# Show all services status./cli/logrite-manager.js status
# Start/stop/restart specific service./cli/logrite-manager.js start <service> <branch>./cli/logrite-manager.js stop <service> <branch>./cli/logrite-manager.js restart <service> <branch>
# View service logs./cli/logrite-manager.js logs <service> <branch>
# Start/stop all services./cli/logrite-manager.js start-all # Waits for OpenSearch health./cli/logrite-manager.js stop-all
# Show help./cli/logrite-manager.js helpServices: frontend, backend, analyzer, semantic-search, ai-service, mcp
Branches: main, dev
Data Prepper Commands
Section titled “Data Prepper Commands”./cli/logrite-manager.js data-prepper start./cli/logrite-manager.js data-prepper stop./cli/logrite-manager.js data-prepper restart./cli/logrite-manager.js data-prepper status./cli/logrite-manager.js data-prepper health./cli/logrite-manager.js data-prepper logsNotification & Compliance Commands
Section titled “Notification & Compliance Commands”# Send status report to Discord./cli/logrite-manager.js notify-status
# View recent audit log entries./cli/logrite-manager.js audit # Last 20./cli/logrite-manager.js audit 50 # Last 50
# Generate and send AI-powered RCA./cli/logrite-manager.js rcaOpenSearch CLI — opensearch-mgr
Section titled “OpenSearch CLI — opensearch-mgr”Location: /root/opensearch/cli/opensearch-mgr.js
Global command: opensearch-mgr
# Service managementopensearch-mgr statusopensearch-mgr start allopensearch-mgr stop allopensearch-mgr restart opensearchopensearch-mgr healthopensearch-mgr logs opensearchopensearch-mgr logs dashboards -f
# Semantic searchopensearch-mgr semantic-setupopensearch-mgr semantic-statusopensearch-mgr semantic-reindex --allopensearch-mgr semantic "payment timeout errors"opensearch-mgr model-ensure
# Anomaly detectionopensearch-mgr anomaly-setupopensearch-mgr anomaly-statusopensearch-mgr anomaly-results --all -t 0.4opensearch-mgr anomaly-start --allopensearch-mgr anomaly-stop payment-latency-detector
# Alertingopensearch-mgr alerting-statusopensearch-mgr alerting-listopensearch-mgr alerting-historyopensearch-mgr alerting-test
# Build & deployopensearch-mgr build opensearchopensearch-mgr build dashboardsopensearch-mgr deploy
# Log ingestionopensearch-mgr ingest /var/log/app/payment.logopensearch-mgr watch-logs /var/log/app/opensearch-mgr ingest-status
# CTM logsopensearch-mgr ctm-ingest "/path/to/ctm/logs"opensearch-mgr ctm-status
# Watchdogopensearch-mgr watch --interval 30
# JSON outputopensearch-mgr status --jsonFrontend CLI
Section titled “Frontend CLI”Location: services/frontend/<branch>/Logrite-UI/cli/frontend-cli.cjs
./services/frontend/main/Logrite-UI/cli/frontend-cli.cjs start./services/frontend/main/Logrite-UI/cli/frontend-cli.cjs stop./services/frontend/main/Logrite-UI/cli/frontend-cli.cjs restart./services/frontend/main/Logrite-UI/cli/frontend-cli.cjs status./services/frontend/main/Logrite-UI/cli/frontend-cli.cjs logs./services/frontend/main/Logrite-UI/cli/frontend-cli.cjs notify # DiscordBackend CLI
Section titled “Backend CLI”Location: services/backend/<branch>/Logrite-AI/cli/backend-cli.cjs
./services/backend/main/Logrite-AI/cli/backend-cli.cjs build # Maven build (required first)./services/backend/main/Logrite-AI/cli/backend-cli.cjs start./services/backend/main/Logrite-AI/cli/backend-cli.cjs stop./services/backend/main/Logrite-AI/cli/backend-cli.cjs restart./services/backend/main/Logrite-AI/cli/backend-cli.cjs status./services/backend/main/Logrite-AI/cli/backend-cli.cjs logs./services/backend/main/Logrite-AI/cli/backend-cli.cjs notifyAnalyzer CLI
Section titled “Analyzer CLI”Location: services/analyzer/<branch>/logrite-analyzer/cli/analyzer-cli.cjs
./services/analyzer/main/logrite-analyzer/cli/analyzer-cli.cjs build # TypeScript build./services/analyzer/main/logrite-analyzer/cli/analyzer-cli.cjs start./services/analyzer/main/logrite-analyzer/cli/analyzer-cli.cjs stop./services/analyzer/main/logrite-analyzer/cli/analyzer-cli.cjs restart./services/analyzer/main/logrite-analyzer/cli/analyzer-cli.cjs status./services/analyzer/main/logrite-analyzer/cli/analyzer-cli.cjs logsSemantic Search CLI
Section titled “Semantic Search CLI”Location: services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs
./services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs build./services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs start./services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs stop./services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs restart./services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs status./services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs logsAI Service CLI
Section titled “AI Service CLI”Location: services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs
./services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs build./services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs start./services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs stop./services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs restart./services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs status./services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs logsMCP Server CLI
Section titled “MCP Server CLI”Location: services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs
./services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs start./services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs stop./services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs restart./services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs status./services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs health./services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs logs -fWebhook Server CLI
Section titled “Webhook Server CLI”Location: services/webhook/cli/webhook-cli.cjs
./services/webhook/cli/webhook-cli.cjs start./services/webhook/cli/webhook-cli.cjs stop./services/webhook/cli/webhook-cli.cjs restart./services/webhook/cli/webhook-cli.cjs status./services/webhook/cli/webhook-cli.cjs logsCLI Feature Matrix
Section titled “CLI Feature Matrix”| Feature | Frontend | Backend | Analyzer | Semantic | AI Service | MCP | Webhook |
|---|---|---|---|---|---|---|---|
| start | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| stop | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| restart | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| status | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| logs | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| build | — | ✅ Maven | ✅ tsc | ✅ tsc | ✅ tsc | — | — |
| notify | ✅ | ✅ | — | — | — | — | — |
| health | — | — | — | — | — | ✅ | — |