kratos常用命令

运行项目

CLI运行

kratos run

手动编译

go build -o ./bin ./...
./helloworld -conf ../configs

proto生成模版

client

kratos proto add api/shortvid-service/v1/file.proto

server

kratos proto server api/shortvid-service/v1/file.proto -t app/shortvid-service/internal/service