TZZR CLI v0.1.0 - Herramienta de gestión sistema TZZR
- Comandos: search, list, tree, copy, info, add, grupos, stats - Conexión SSH a HST (72.62.2.84) - Estructura autoreferenciada (sin cat/subcat) - Grupos válidos: hst, spe, vsn, vue, flg 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
89
README.md
Normal file
89
README.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# TZZR CLI
|
||||
|
||||
Herramienta de línea de comandos para gestionar el sistema TZZR.
|
||||
|
||||
## Instalación
|
||||
|
||||
```bash
|
||||
cd /home/architect/captain-claude/apps/tzzr-cli
|
||||
pip install -e .
|
||||
```
|
||||
|
||||
## Uso
|
||||
|
||||
### Buscar hashtags
|
||||
|
||||
```bash
|
||||
tzzr search "tecnología"
|
||||
tzzr search "HST" --limit=100
|
||||
```
|
||||
|
||||
### Listar hashtags
|
||||
|
||||
```bash
|
||||
tzzr list # Lista todos
|
||||
tzzr list --grupo=hst # Filtrar por grupo
|
||||
tzzr list -g hst -l 50 # Con límite
|
||||
tzzr list --offset=20 --limit=20 # Paginación
|
||||
```
|
||||
|
||||
### Ver árbol jerárquico
|
||||
|
||||
```bash
|
||||
tzzr tree --root=HST001
|
||||
tzzr tree -r HST001
|
||||
```
|
||||
|
||||
### Copiar h_maestro al clipboard
|
||||
|
||||
```bash
|
||||
tzzr copy HST001
|
||||
```
|
||||
|
||||
### Ver información de un hashtag
|
||||
|
||||
```bash
|
||||
tzzr info HST001
|
||||
tzzr info HST001 --children # Incluir hijos directos
|
||||
```
|
||||
|
||||
### Crear nuevo hashtag
|
||||
|
||||
```bash
|
||||
tzzr add --ref=HST100 --nombre="Nuevo Tag" --grupo=hst
|
||||
tzzr add -r HST100 -n "Nuevo Tag" -g hst -p HST001 # Con padre
|
||||
```
|
||||
|
||||
### Ver grupos disponibles
|
||||
|
||||
```bash
|
||||
tzzr grupos
|
||||
```
|
||||
|
||||
### Ver estadísticas
|
||||
|
||||
```bash
|
||||
tzzr stats
|
||||
```
|
||||
|
||||
## Configuración
|
||||
|
||||
Variables de entorno para la conexión a la base de datos:
|
||||
|
||||
```bash
|
||||
export TZZR_DB_HOST=72.62.2.84
|
||||
export TZZR_DB_PORT=5432
|
||||
export TZZR_DB_NAME=hst_images
|
||||
export TZZR_DB_USER=directus
|
||||
export TZZR_DB_PASSWORD=directus_hst_2024
|
||||
```
|
||||
|
||||
## Desarrollo
|
||||
|
||||
```bash
|
||||
# Instalar en modo desarrollo
|
||||
pip install -e .
|
||||
|
||||
# Ejecutar directamente
|
||||
python -m tzzr.cli search "test"
|
||||
```
|
||||
Reference in New Issue
Block a user