Or you can download the binary from the releases page and add to
your $PATH. DEB and RPM packages are also available.
task_checksums.txt file contains the sha256 checksum for each file.
If you're on macOS and have Homebrew installed, getting Task is as simple as running:
brew install go-task/tap/go-task
Task is available for Snapcraft, but keep in mind that your Linux distribution should allow classic confinement for Snaps to Task work right:
sudo snap install task
If you're on Windows and have Scoop installed, use
to install Task like:
scoop bucket add extras scoop install task
This installation method is community owned. After a new release of Task, it may take some time until it's available on Scoop.
Task now uses Go Modules, which means you may have trouble compiling it on older Go versions.
For CI environments we recommend using the Install Script instead, which is faster and more stable, since it'll just download the latest released binary, instead of compiling the edge (master branch) version.
Installing in your
go get -u -v github.com/go-task/task/cmd/task
Installing in another directory:
git clone https://github.com/go-task/task cd task # compiling binary to $GOPATH/bin go install -v # compiling it to another location # use -o ./task.exe on Windows go build -v -o ./task ./cmd/task
Both methods requires having the Go environment properly setup locally.
curl -sL https://taskfile.dev/install.sh | sh
This method will download the binary on the local
./bindirectory by default.