-
Notifications
You must be signed in to change notification settings - Fork 0
hyp cli_en.md
HypGo CLI (hyp) is the command-line tool for the HypGo framework, used for quickly creating, managing, and running HypGo applications.
go install github.com/maoxiaoyue/hypgo/cmd/hyp@latestEnsure $GOPATH/bin is in your system's PATH.
Create a new HypGo project. Supports multiple project types:
-
hyp new <name>— Full-stack web project (default, with frontend templates) -
hyp new web <name>— Same (explicit web type) -
hyp new cli <name>— CLI tool project (Cobra command-line) -
hyp new desktop <name>— Desktop application (Fyne native GUI) -
hyp new grpc <name>— gRPC microservice (Protobuf)
Create an API-only project without static files or templates.
Start the HypGo application with hot reload in development mode.
Hot restart for zero-downtime deployment. Uses SIGUSR2 on Unix. Not supported on Windows.
Build a Docker image based on config.yaml settings.
Generate boilerplate code following HypGo conventions.
| Type | Description | Output |
|---|---|---|
controller |
Handler + Schema routes + Middleware |
app/controllers/ + app/routers/
|
model |
Bun ORM Model + Req/Resp structs | app/models/ |
service |
Business logic + Error Catalog | app/services/ |
command |
CLI subcommand (Cobra) | app/commands/ |
view |
Desktop GUI view (Fyne) | app/views/ |
proto |
Protobuf + gRPC server |
app/proto/ + app/rpc/
|
Generate project manifest (YAML/JSON) for AI collaboration.
Database migration tools. Subcommands: diff, snapshot.
Annotation Protocol checker. Scans exported blocks for standard comments.
Change Impact Analysis. Shows affected packages, routes, and tests.
Generate AI tool config files (AGENTS.md, GEMINI.md, Copilot, Cursor, Windsurf).
AI change tracking. Toggle on/off to save tokens. See hyp-difflog.md.
Check running application health status.
Print version and build information.
hyp --version由 台灣卯小月 用 ❤️ 製作 · MIT License And Wiki is written by Claude
設計文件
套件
- config — 設定
- context — 請求上下文
- router — 路由器
- server — 伺服器
- middleware — 中介層
- websocket — WebSocket
- hidb — 資料庫 ORM
- hidb/cassandra — Cassandra
- logger — 日誌
- json — JSON 處理
- grpc — gRPC
AI 協作工具鏈
- schema — Schema-first 路由
- manifest — 專案 Manifest
- contract — Contract Testing
- errors — Typed Error Catalog
- migrate — Migration Diff
- scaffold — 智慧 Scaffold
- airules — AI Rules
CLI 命令
- hyp 總覽
- hyp new
- hyp api
- hyp run
- hyp restart
- hyp generate
- hyp migrate
- hyp context
- hyp ai-rules
- hyp chkcomment
- hyp impact
- hyp docker
- hyp health
- hyp version
- hyp difflog
Design Docs
Packages
- config — Configuration
- context — Request Context
- router — Router
- server — Server
- middleware — Middleware
- websocket — WebSocket
- hidb — Database ORM
- hidb/cassandra - Cassandra 5.0
- logger — Logger
- json — JSON
- grpc — gRPC
AI Collaboration Toolchain
- schema — Schema-first Routing
- manifest — Project Manifest
- contract — Contract Testing
- errors — Typed Error Catalog
- migrate — Migration Diff
- scaffold — Smart Scaffold
- airules — AI Rules
CLI Commands