Taskfile Commands Guide
Prerequisites
Install Task (taskfile.dev):
macOS/Linux:
go install github.com/go-task/task/v3/cmd/task@latest
Windows:
go install github.com/go-task/task/v3/cmd/task@latest
Available Commands
Run task --list to view tasks. Common tasks:
task dev— run server with live reload (requires Air)task build— build the web binarytask test— run teststask migrate— apply DB migrationstask migrate-create name=...— create migrationtask seed— seed initial admin usertask schema-gen— generate Ent codetask addpage/task addmodel— interactive generators
Examples
# Run server with live reload
task dev
# Create a migration
task migrate-create name=add_products_table
# Apply migrations
task migrate
Tips
- Use
task migrate-createto keep migrations sequential and idempotent - Test migrations locally before applying in production
This guide documents the project's Taskfile commands and recommended usage.