resq-deploy-cli-0.1.6 is not a library.
resq-deploy — Deployment Manager
Ratatui terminal UI for managing Docker Compose and Kubernetes deployments across dev, staging, and production environments. Provides an interactive 3-panel interface as well as a non-interactive --action flag for scripting.
Build
cargo build --release -p resq-deploy-cli
Binary: target/release/resq-deploy
Usage
resq-deploy
resq-deploy --env staging
resq-deploy --k8s --env prod
resq-deploy --env dev --action up
resq-deploy --env prod --k8s --action deploy
resq-deploy --env dev --service infrastructure-api --action restart
TUI Layout
┌── Services ──────┬── Actions ─────────┬── Output ─────────────────┐
│ │ │ │
│ ● infra-api │ > status │ [14:22:01] Starting up... │
│ ● coord-hce │ build │ [14:22:02] infra-api OK │
│ ○ intelligence │ up │ [14:22:03] coord-hce OK │
│ ○ web-dashboard │ down │ [14:22:04] All services up │
│ │ restart │ │
│ │ logs │ │
│ │ │ │
├──────────────────┴────────────────────┴─────────────────────────────┤
│ ENV: dev [e] cycle env [Tab] focus [↑↓] select [Enter] run │
│ [q] quit │
└──────────────────────────────────────────────────────────────────────┘
Keyboard Shortcuts
| Key |
Action |
q |
Quit |
Tab |
Cycle focus between panels |
↑ / ↓ |
Navigate list in focused panel |
Enter |
Execute selected action |
e |
Cycle environment: dev → staging → prod |
Docker Compose Actions
| Action |
Description |
status |
Show container status for all services |
build |
Build images (equivalent to docker compose build) |
up |
Start all services (docker compose up -d) |
down |
Stop and remove containers (docker compose down) |
restart |
Restart one or all services |
logs |
Tail logs (streams to Output panel or stdout) |
Kubernetes Actions
| Action |
Description |
status |
kubectl get pods -n resq-<env> |
deploy |
kubectl apply -k infra/k8s/overlays/<env> |
destroy |
kubectl delete -k infra/k8s/overlays/<env> |
logs |
kubectl logs -f deployment/<service> -n resq-<env> |
Flags
| Flag |
Default |
Description |
--env <env> |
dev |
Target environment: dev, staging, prod |
--service <name> |
all |
Scope action to a single service |
--k8s |
off |
Use Kubernetes instead of Docker Compose |
--action <action> |
— |
Non-interactive: run one action and exit |
Environments
| Env |
Docker Compose file |
K8s overlay |
dev |
infra/docker/docker-compose.yml |
infra/k8s/overlays/dev |
staging |
infra/docker/docker-compose.staging.yml |
infra/k8s/overlays/staging |
prod |
infra/docker/docker-compose.prod.yml |
infra/k8s/overlays/prod |
CI / Scripting
deploy-cli --env dev --action up
health-checker --check
deploy-cli --env prod --k8s --action deploy
deploy-cli --env staging --action down