What problem does it solve?
It helps you confidently validate backend changes by running LobeHub CLI commands against a locally running dev server, ensuring API contracts (routers, services, models) work end-to-end.
Core Features & Use Cases
- End-to-end backend verification: Exercise TRPC router/service/model changes by driving them through the LobeHub CLI (
lh) against localhost:3011.
- Deterministic dev-test workflow: Covers server reachability checks, when to restart Next.js, CLI authentication, and a consistent command execution pattern.
- Safe test data cleanup: Provides repeatable cleanup commands for tasks and agents created during verification to prevent stale test artifacts.
Use Case Example: After adding a new TRPC response field or updating model behavior, run a CLI command to confirm the new output shape matches expectations, then delete any created tasks/agents.
Quick Start
Start your local dev server on port 3011, log in via the CLI using the server URL flag, and run your CLI verification command from lobehub/apps/cli with LOBEHUB_CLI_HOME=.lobehub-dev.