Phase 19: Unified CLI entry point (maxclaw.py)
- Single 'maxclaw' command for all functionality - Subcommands: chat, server, tui, config, analytics, dashboard, version - Nested config subcommands: list, add, remove, use, active, test, export, import, search - Updated README with unified CLI documentation - Updated Dockerfile to use maxclaw.py - Added .gitignore for __pycache__
This commit is contained in:
1 parent
3e986d83f1
commit
0612b290d5
4 files changed
+594
-4
No files matched your search
@@ -204,9 +204,45 @@ L'interfaccia web include:
|
||||
|
||||
## Utilizzo
|
||||
|
||||
### Utilizzo Locale
|
||||
### CLI Unificata (maxclaw)
|
||||
|
||||
Esegui l'agente:
|
||||
Tutte le funzionalità sono accessibili tramite un unico comando `maxclaw`:
|
||||
|
||||
```bash
|
||||
# Avvia l'agent (chat interattiva)
|
||||
maxclaw
|
||||
maxclaw chat
|
||||
|
||||
# Avvia web server
|
||||
maxclaw server
|
||||
maxclaw server --port 3000
|
||||
|
||||
# Gestione configurazioni
|
||||
maxclaw config list # Lista configurazioni
|
||||
maxclaw config add -n ollama -p ollama -m gemma2:9b -u http://192.168.0.50:11434
|
||||
maxclaw config use ollama # Attiva configurazione
|
||||
maxclaw config active # Mostra configurazione attiva
|
||||
maxclaw config test # Testa connessione
|
||||
maxclaw config export -f json -o backup
|
||||
maxclaw config import backup.json
|
||||
maxclaw config search ollama # Cerca configurazioni
|
||||
|
||||
# TUI interattiva
|
||||
maxclaw tui
|
||||
|
||||
# Analytics e monitoraggio
|
||||
maxclaw analytics # Riepilogo rapido
|
||||
maxclaw analytics --report # Report completo
|
||||
maxclaw dashboard # Dashboard performance
|
||||
|
||||
# Info
|
||||
maxclaw version
|
||||
maxclaw --help
|
||||
```
|
||||
|
||||
### Utilizzo Locale (alternativo)
|
||||
|
||||
Esegui l'agente direttamente:
|
||||
```bash
|
||||
python main.py
|
||||
```
|
||||
@@ -283,7 +319,7 @@ Ollama URL: http://192.168.0.50:11434
|
||||
docker-compose up -d
|
||||
|
||||
# Accedi al terminale
|
||||
docker exec -it maxclaw-agent python main.py
|
||||
docker exec -it maxclaw-agent maxclaw
|
||||
|
||||
# Oppure esegui direttamente
|
||||
docker run -it --rm maxclaw-agent
|
||||
@@ -293,6 +329,8 @@ docker run -it --rm maxclaw-agent
|
||||
|
||||
Avvia il server API:
|
||||
```bash
|
||||
maxclaw server
|
||||
# oppure
|
||||
python api_server.py
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user