๐ ๏ธ CLI Commands Reference
The @jango-blockchained/hoox-cli tool manages the entire monorepo development, provisioning, deployment, monitoring, and self-healing pipelines. This reference provides the complete command tree, positional arguments, optional flags, and concrete examples for all 15 command groups.
๐บ๏ธ Global Flags
These options are registered globally and can be appended to any command:
| Flag | Description | Example |
|---|---|---|
--json | Outputs machine-parseable JSON format (ideal for script pipelines). | hoox monitor status --json |
--quiet | Suppresses headers, banners, and interactive prompts. | hoox deploy kv-config --quiet |
--help | Prints complete parameter and option listings. | hoox infra d1 --help |
--version | Outputs active CLI package build version. | hoox --version |
๐๏ธ Command Groups Directory
hoox Launch TUI (when run with no args)
โโโ init Interactive multi-phase setup wizard
โโโ clone [name] Bootstrap workspace from template
โโโ dev Local development execution engine
โ โโโ start Start all workers (native or Docker)
โ โโโ worker <name> Start a single worker
โ โโโ dashboard Start Next.js dashboard dev server
โโโ deploy Edge deployment pipelines
โ โโโ all Roll out all workers + dashboard in sequence
โ โโโ worker <name> Deploy a single edge worker
โ โโโ dashboard Deploy Next.js dashboard via OpenNext
โ โโโ telegram-webhook Register Telegram bot webhook API
โ โโโ update-internal-urls Bind inter-worker Service Binding URLs
โ โโโ kv-config Synchronize KV manifest variables
โโโ infra Cloudflare resource provisioning IaC
โ โโโ provision Auto-provision all required services
โ โโโ d1 [list/create/delete] Manage D1 databases
โ โโโ kv [list/create/delete] Manage KV namespaces
โ โโโ r2 [list/create/delete] Manage R2 object storage buckets
โ โโโ queues [list/create/delete] Manage Cloudflare Queues
โ โโโ vectorize [create/delete] Manage vector search indexes
โโโ config Workspace and environmental variables
โ โโโ env [init/show/validate] Manage .env.local build variables
โ โโโ kv [set/get/list/delete] Get/Set dynamic KV runtime parameters
โ โโโ show/set View or set wrangler.jsonc values
โโโ check Toolchain and route diagnostic suite
โ โโโ prerequisites Validate local machine tool installs
โ โโโ setup Audit .env configurations
โ โโโ health Probe worker /health endpoints
โโโ db SQLite D1 Database administration
โ โโโ apply Apply DDL schemas to D1
โ โโโ migrate Run schema migrations
โ โโโ list Display active SQLite tables
โ โโโ query <sql> Execute custom SQL reads
โ โโโ export Dump database as a secure SQL file
โ โโโ reset Destructive truncate of all tables
โโโ monitor Observability and emergency controls
โ โโโ status Probe active worker health routes
โ โโโ trades [N] Aggregate recent filled transactions
โ โโโ logs [worker] Tail and inspect time-series logs
โ โโโ queue-depth Audit message counts in queues
โ โโโ backup Backup SQL ledger to backups/
โ โโโ kill-switch [show/on/off] Emergency global trading halt
โโโ repair System diagnostics & self-healing
โ โโโ check Run 5-step checklist
โ โโโ worker <name> Rebuild a degraded worker
โ โโโ infra Verify and repair missing edge bindings
โ โโโ secrets Re-sync hardware secrets
โ โโโ kv Restore KV manifest defaults
โ โโโ db Re-apply Drizzle migrations
โ โโโ rebuild Full destructive interactive rebuild
โโโ logs Time-series log extraction
โ โโโ tail <worker> Stream live edge logging console
โ โโโ download <worker> Download logs to a local file
โโโ test Run verification pipeline (CI)
โโโ waf Auto-configure Cloudflare WAF firewall rules
๐ Key Commands Detail & Examples
A. Initialization & Bootstrap
# Onboard a new machine, configure accounts and select worker profile
hoox init
# Verify that git, bun, wrangler, and docker are correctly configured
hoox check prerequisites
B. Local Development
# Start all workers in a Docker container stack
hoox dev start --runtime docker
# Start only the Next.js frontend developer server
hoox dev dashboard
C. Edge Provisioning & Deployment
# Provision all databases, buckets, and queues on your Cloudflare account
hoox infra provision
# Deploy the entire microservices stack in sequence, automatically updating URLs
hoox deploy all --auto
D. Operational Monitoring & Emergency halting
# Emergency Halt: halt all trade signals globally in under 10 seconds
hoox config kv set trade:kill_switch true
# Audit active trade history table
hoox monitor trades 25
E. Database Administration
# Query the total sum of fees paid today across Bybit
hoox db query "SELECT SUM(fee) FROM trades WHERE created_at >= date('now')" --remote
F. Self-Healing & Diagnostics
# Run a full workspace system audit
hoox repair check
Tip: Every single subcommand is fully documented locally! Append
--helpto any command (e.g.hoox config env --help) to view advanced positional arguments and specific flag options instantly.
๐ Next Steps
- Astro Docs Site Config โ Map out your build-time environment configurations.
- API Endpoint Reference โ Analyze REST routes, schemas, and gateway error structures.