Installation
The CLI binary is built with the project:Runtime Home Directory
NeuraTrade uses a home directory for configuration, logs, and runtime state:Default Location:
~/.neuratradeOverride with the NEURATRADE_HOME environment variable.Directory Structure
Configuration File
Theconfig.json file stores all service configuration:
Environment Variables
The CLI respects these environment variables:| Variable | Description | Default |
|---|---|---|
NEURATRADE_HOME | Runtime home directory | ~/.neuratrade |
NEURATRADE_API_BASE_URL | Backend API URL | http://localhost:8080 |
NEURATRADE_API_KEY | API authentication key | From config |
SERVER_PORT | Backend server port | 8080 |
CCXT_PORT | CCXT service port | 3001 |
TELEGRAM_PORT | Telegram service port | 3002 |
BIND_HOST | Internal service bind address | 127.0.0.1 |
ADMIN_API_KEY | Admin API key | From config |
JWT_SECRET | JWT signing secret | Auto-generated |
PID Files
Process ID files track running services:- backend.pid - Backend API server process ID
- ccxt.pid - CCXT exchange service process ID
- telegram.pid - Telegram bot service process ID
- gateway-state.json - Gateway runtime state and health status
Gateway State Format
Log Files
Service logs are written to:~/.neuratrade/logs/backend.log- Backend API logs~/.neuratrade/logs/ccxt.log- CCXT service logs~/.neuratrade/logs/telegram.log- Telegram service logs
Logs are append-only. Use log rotation tools in production deployments.
CLI Version
Check the CLI version:Getting Help
View available commands:Quick Start
-
Initialize configuration:
-
Start services:
-
Check status:
-
Stop services: