This directory contains comprehensive CLI documentation for the DAFU platform.
DAFU CLI Guide 📘 Main Reference
Original comprehensive CLI guide covering:
- Interactive mode usage
- All CLI commands
- Docker integration
- System information commands
CLI Demo 🎬 Examples & Demos
Demonstrations and examples:
- Real usage scenarios
- Screenshot-equivalent text outputs
- Step-by-step walkthroughs
CLI with API Integration 🔌 API Features 
Complete guide for using API features through CLI:
- Authentication commands
- Logs management
- Reports management
- Products management
- Integration architecture
CLI Step-by-Step 📋 Detailed Guide 
Step-by-step authentication and session management:
- Login process
- Session file management
- Token handling
- Complete workflows
CLI Usage Complete 📖 Complete Reference 
Comprehensive CLI usage guide:
- All commands explained
- Usage modes
- Examples for every feature
- Troubleshooting
# Start DAFU CLI
./dafu
# Interactive mode
dafu> help
dafu> auth login
dafu> logs list
dafu> reports list
dafu> fraud-detection
dafu> exit./dafu help
./dafu auth whoami
./dafu logs stats
./dafu reports listauth login- Login to APIauth logout- Logoutauth whoami- Show current userauth register- Register new user
logs list [limit]- List recent logslogs stats [hours]- Log statistics
reports list [limit]- List reportsreports create- Create new reportreports view <id>- View report detailsreports stats- Report statistics
products list [limit]- List productsproducts high-risk- High-risk productsproducts stats- Product statistics
fraud-detection- Run ML models interactivelymodels- Alias for fraud-detectionml- Alias for fraud-detection
docker up/down/restart- Manage servicesdocker status- Service statusdocker logs- View logs
status- Platform statusversion- Version informationinfo- System details
-
PostgreSQL:
docker run -d --name dafu-postgres \ -e POSTGRES_USER=dafu \ -e POSTGRES_PASSWORD=dafu_secure_password \ -e POSTGRES_DB=dafu \ -p 5432:5432 \ postgres:15-alpine
-
API Server:
cd fraud_detection ./start_api.sh
| Your Goal | Recommended Document |
|---|---|
| Just getting started | DAFU CLI Guide |
| Want to see examples | CLI Demo |
| Use API features | CLI with API Integration |
| Need step-by-step for auth | CLI Step-by-Step |
| Want complete reference | CLI Usage Complete |
| General platform usage | Usage Guide |
- DAFU CLI Guide - Learn basic commands
- CLI Demo - See examples
- Start using:
./dafu help
- CLI with API Integration - API features
- CLI Step-by-Step - Authentication flow
- Try API commands:
./dafu auth login
- CLI Usage Complete - Full reference
- API Usage Guide - Direct API calls
- Write automation scripts
Common issues and their documentation:
| Issue | Solution Location |
|---|---|
| How to login? | CLI Step-by-Step |
| API not responding | CLI with API Integration |
| Command not found | CLI Usage Complete |
| Session expired | CLI Step-by-Step |
- Interactive Help:
./dafu help - API Docs: http://localhost:8000/docs (when running)
- GitHub Issues: https://github.com/MasterFabric/dafu/issues
DAFU CLI - One Command for Everything 🚀