Skip to main content
This document details the step-by-step installation, bootstrapping, and validation workflows executed by the Hoox CLI during project initialization.
The Hoox CLI enforces strict type validation for all configuration files via the Config and WorkerConfig TypeScript interfaces defined in packages/cli/src/core/types.ts. Avoid using as any or type bypasses when extending wrangler parameters to prevent build-time CLI crashes.

🏗️ Onboarding Wizard (hoox onboard)

v0.8.0 update: The recommended entry point is now hoox onboard, which chains init (configuration) and setup (infrastructure) into a single command. Running hoox with no arguments on an uninitialized workspace will auto-launch onboard.
To start the system bootstrap, run the one-shot wizard from the monorepo root:
For fine-grained control, run the two steps separately:
The setup wizard guides you through these critical onboarding phases:

Phase 1: Cloudflare Authentication

Prompts for your Cloudflare API token (with Account.D1, Account.KV, Account.Workers permissions) and Account ID.

Phase 2: Microservice Profile Selection

Lets you selectively enable or disable specific workers from the workers/ directory based on your trading intent (e.g., cross-margin futures execution vs. Web3 DeFi wallet swaps). Disabling unnecessary workers saves deployment bandwidth and keeps resource bindings clean.

Phase 3: Integration Secrets

Collects any integration secrets required by the selected workers (exchange API keys, Telegram bot tokens, AI provider keys) and writes them to local .dev.vars files.

Phase 4: Configuration Write

Consolidates all chosen parameters and writes your central wrangler.jsonc file, mapping out variables and bindings for every worker.

Phase 5: Infrastructure Provisioning

Generates internal auth keys, creates D1 databases, applies the schema, and pushes secrets to Cloudflare. Builds and deploys the Next.js dashboard.

Phase 6: Verification

Runs hoox check setup to verify that all components are operational.

🔎 Configuration Files Spec

The Hoox platform uses a dual configuration file architecture to track workspace states:

A. wrangler.jsonc (Central Settings)

This file represents the declarative single source of truth for your monorepo’s active workers:

B. .install-wizard-state.json (Onboarding State)

During the interactive setup, the CLI caches your current step and intermediate inputs inside .install-wizard-state.json at your project root.
  • State Recovery: If your terminal session is disconnected or wrangler login prompts timeout, you can run hoox onboard (or hoox init --resume) again. The CLI will detect the state file and seamlessly resume your onboarding from the last incomplete step.
  • Auto-Cleanup: Upon final completion of Phase 7, the state file is automatically purged to keep your root directory clean.

🔒 Secret Bindings Architecture

Hoox utilizes Cloudflare’s hardware-secured Secret Store to bind environment credentials to V8 isolates without exposing them in git history.

Local Mocking (.dev.vars)

During local development, wrangler dev looks for a local, gitignored file called .dev.vars inside each worker’s directory to simulate secrets:

Production Secret Bindings

When deploying to production, wrangler binds these variables using direct encrypted environments in your worker’s wrangler configuration:
This guarantees that secrets are never logged, never cached in plain text on disk, and are only accessible inside your worker’s sandboxed execution isolate memory.
Made a configuration mistake or changed your subdomain? You can re-run hoox check-setup at any time to execute high-integrity type validation and ensure all bindings and configurations match production examples perfectly!

🔗 Next Steps

Last modified on June 21, 2026