Skip to content

CLI Reference

Location: /root/logrite/cli/logrite-manager.js

The master CLI orchestrates all services and is the recommended entry point for all operations.

Terminal window
# 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 help

Services: frontend, backend, analyzer, semantic-search, ai-service, mcp Branches: main, dev

Terminal window
./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 logs
Terminal window
# 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 rca

Location: /root/opensearch/cli/opensearch-mgr.js Global command: opensearch-mgr

Terminal window
# Service management
opensearch-mgr status
opensearch-mgr start all
opensearch-mgr stop all
opensearch-mgr restart opensearch
opensearch-mgr health
opensearch-mgr logs opensearch
opensearch-mgr logs dashboards -f
# Semantic search
opensearch-mgr semantic-setup
opensearch-mgr semantic-status
opensearch-mgr semantic-reindex --all
opensearch-mgr semantic "payment timeout errors"
opensearch-mgr model-ensure
# Anomaly detection
opensearch-mgr anomaly-setup
opensearch-mgr anomaly-status
opensearch-mgr anomaly-results --all -t 0.4
opensearch-mgr anomaly-start --all
opensearch-mgr anomaly-stop payment-latency-detector
# Alerting
opensearch-mgr alerting-status
opensearch-mgr alerting-list
opensearch-mgr alerting-history
opensearch-mgr alerting-test
# Build & deploy
opensearch-mgr build opensearch
opensearch-mgr build dashboards
opensearch-mgr deploy
# Log ingestion
opensearch-mgr ingest /var/log/app/payment.log
opensearch-mgr watch-logs /var/log/app/
opensearch-mgr ingest-status
# CTM logs
opensearch-mgr ctm-ingest "/path/to/ctm/logs"
opensearch-mgr ctm-status
# Watchdog
opensearch-mgr watch --interval 30
# JSON output
opensearch-mgr status --json

Location: services/frontend/<branch>/Logrite-UI/cli/frontend-cli.cjs

Terminal window
./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 # Discord

Location: services/backend/<branch>/Logrite-AI/cli/backend-cli.cjs

Terminal window
./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 notify

Location: services/analyzer/<branch>/logrite-analyzer/cli/analyzer-cli.cjs

Terminal window
./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 logs

Location: services/semantic-search/main/logrite-semantic-api/cli/semantic-api-cli.cjs

Terminal window
./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 logs

Location: services/ai-service/main/logrite-ai-service/cli/ai-service-cli.cjs

Terminal window
./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 logs

Location: services/mcp/main/logrite-mcp-server/cli/mcp-cli.cjs

Terminal window
./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 -f

Location: services/webhook/cli/webhook-cli.cjs

Terminal window
./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 logs

FeatureFrontendBackendAnalyzerSemanticAI ServiceMCPWebhook
start✅✅✅✅✅✅✅
stop✅✅✅✅✅✅✅
restart✅✅✅✅✅✅✅
status✅✅✅✅✅✅✅
logs✅✅✅✅✅✅✅
build—✅ Maven✅ tsc✅ tsc✅ tsc——
notify✅✅—————
health—————✅—