I'm new to Task
++ Install Task, create a small Taskfile, then grow it one workflow at + a time with focused examples. +
+-
+
- Install Task +
- + Create your first Taskfile + +
- Read the guide +
// FROM ZERO TO YOUR FIRST TASK
++ Install one binary, add readable project commands, and give everyone + the same entry point—locally and in CI. +
+{{ installCommand }}
+
+
+ {{ copyAnnouncement }}
+
+ + Prefer a package manager? Task is also available through Homebrew, + WinGet, Scoop, npm, apt, dnf, apk, and more. + See every installation method. +
+ +version: '3'
+
+vars:
+ GREETING: Hello
+
+tasks:
+ test:
+ desc: Run the test suite
+ sources: ['**/*.go']
+ cmds:
+ - go test ./...
+
+ build:
+ desc: Build the application
+ deps: [test]
+ sources: ['**/*.go']
+ generates: [bin/app]
+ cmds:
+ - mkdir -p bin
+ - echo "{{.GREETING}} from Task"
+ - go build -o bin/app ./cmd/app
+ $ task --list
+task: Available tasks for this project:
+* build: Build the application
+* test: Run the test suite
+
+$ task build
+task: [test] go test ./...
+ok example/app
+task: [build] mkdir -p bin
+task: [build] echo "Hello from Task"
+Hello from Task
+task: [build] go build -o bin/app ./cmd/app
+
+$ task build
+task: Task "test" is up to date
+task: Task "build" is up to date
+ // FIND THE RIGHT ANSWER
++ The documentation has separate entry points for learning, exact + lookup, and machine-readable access. +
++ Install Task, create a small Taskfile, then grow it one workflow at + a time with focused examples. +
++ Look up a Taskfile field, CLI flag, environment variable, or + template function without reading a long tutorial. +
+ ++ Discover the documentation from a compact map, retrieve it as one + text bundle, or jump directly to the Taskfile schema. +
+ +