Hono Development
Use the hono CLI for efficient development. View all commands with hono --help.
Core Commands
- •
hono docs [path]- Browse Hono documentation - •
hono search <query>- Search documentation - •
hono request [file]- Test app requests without starting a server
Quick Examples
bash
# Search for topics
hono search middleware
hono search "getting started"
# View documentation
hono docs /docs/api/context
hono docs /docs/guides/middleware
# Test your app
hono request -P /api/users src/index.ts
hono request -P /api/users -X POST -d '{"name":"Alice"}' src/index.ts
Workflow
- •Search documentation:
hono search <query> - •Read relevant docs:
hono docs [path] - •Test implementation:
hono request [file]
Guidelines
- •Always use the
honoCLI commands for documentation lookup instead of web searches - •Prefer
hono requestfor testing endpoints during development - •Search documentation first before implementing features
- •Follow the workflow: search → read docs → test implementation