Installation | Task
Task offers many installation methods. Check out the available methods below.
Official Package Managers
These installation methods are maintained by the Task team and are always up-to-date.
Package Repository Hosting
Package repository hosting for deb/rpm/apk is graciously provided by Cloudsmith. Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that enables your organization to create, store and share packages in any format, to any place, with total confidence.
dnf
[package]
If you Set up the repository by running :
shell
curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.rpm.sh' | sudo -E bashThen you can install Task with:
apt
[package]
If you Set up the repository by running:
shell
curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | sudo -E bashThen you can install Task with:
apk
[package]
Set up the repository by running:
shell
curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.alpine.sh' | sudo -E bashThen you can install Task with:
Homebrew
Task is available via our official Homebrew tap [source]:
shell
brew install go-task/tap/go-taskAlternatively it can be installed from the official Homebrew repository [package] [source] by running:
shell
brew install go-taskSnap
Task is available on Snapcraft [source], but keep in mind that your Linux distribution should allow classic confinement for Snaps to Task work correctly:
shell
sudo snap install task --classicnpm
Npm can be used as cross-platform way to install Task globally or as a dependency of your project [package] [source]:
shell
npm install -g @go-task/cliWinGet
Task is available via the community repository [source]:
shell
winget install Task.TaskCommunity-Maintained Package Managers
Community Maintained
These installation methods are maintained by the community and may not always be up-to-date with the latest Task version. The Task team does not directly control these packages.
Mise
Mise is a cross-platform package manager that acts as a "frontend" to a variety of other package managers "backends" such as asdf, aqua and ubi.
If using Mise, we recommend using the aqua or ubi backends to install Task as these install directly from our GitHub releases.
shell
mise use -g aqua:go-task/task@latest
mise installshell
mise use -g ubi:go-task/task
mise installMacports
Task repository is tracked by Macports [package] [source]:
shell
port install go-taskpip
Like npm, pip can be used as a cross-platform way to install Task [package] [source]:
shell
pip install go-task-binChocolatey
shell
choco install go-taskScoop
[source]
Arch (pacman)
Fedora (dnf)
FreeBSD (Ports)
Nix
[source]
shell
nix-env -iA nixpkgs.go-taskpacstall
shell
pacstall -I go-task-debpkgx
or, if you have pkgx integration enabled:
Get The Binary
Binary
You can download the binary from the releases page on GitHub and add to your $PATH.
DEB, RPM and APK packages are also available.
The task_checksums.txt file contains the SHA-256 checksum for each file.
Install Script
We also have an install script which is very useful in scenarios like CI. Many thanks to GoDownloader for enabling the easy generation of this script.
By default, it installs on the ./bin directory relative to the working directory:
shell
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -dIt is possible to override the installation directory with the -b parameter. On Linux, common choices are ~/.local/bin and ~/bin to install for the current user or /usr/local/bin to install for all users:
shell
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/binWARNING
On macOS and Windows, ~/.local/bin and ~/bin are not added to $PATH by default.
By default, it installs the latest version available. You can also specify a tag (available in releases) to install a specific version:
shell
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d v3.36.0Parameters are order specific, to set both installation directory and version:
shell
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin v3.42.1GitHub Actions
We have an official GitHub Action to install Task in your GitHub workflows. This repository is forked from the fantastic project by the Arduino team. Check out the repository for more examples and configuration.
yaml
- name: Install Task
uses: go-task/setup-task@v1Build From Source
Go Modules
Ensure that you have a supported version of Go properly installed and setup. You can find the minimum required version of Go in the go.mod file.
You can then install the latest release globally by running:
shell
go install github.com/go-task/task/v3/cmd/task@latestOr you can install into another directory:
shell
env GOBIN=/bin go install github.com/go-task/task/v3/cmd/task@latestTIP
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.
Setup completions
Some installation methods will automatically install completions too, but if this isn't working for you or your chosen method doesn't include them, you can run task --completion <shell> to output a completion script for any supported shell. There are a couple of ways these completions can be added to your shell config:
Option 1. Load the completions in your shell's startup config (Recommended)
This method loads the completion script from the currently installed version of task every time you create a new shell. This ensures that your completions are always up-to-date. If your executable isn’t named task, set the TASK_EXE environment variable before running eval.
shell
# ~/.bashrc
# export TASK_EXE='go-task' if needed
eval "$(task --completion bash)"shell
# ~/.zshrc
# export TASK_EXE='go-task' if needed
eval "$(task --completion zsh)"shell
# ~/.config/fish/config.fish
# export TASK_EXE='go-task' if needed
task --completion fish | sourcepowershell
# $PROFILE\Microsoft.PowerShell_profile.ps1
Invoke-Expression (&task --completion powershell | Out-String)Option 2. Copy the script to your shell's completions directory
This method requires you to manually update the completions whenever Task is updated. However, it is useful if you want to modify the completions yourself.
shell
task --completion bash > /etc/bash_completion.d/taskshell
task --completion zsh > /usr/local/share/zsh/site-functions/_taskshell
task --completion fish > ~/.config/fish/completions/task.fishZsh customization
The Zsh completion supports the standard verbose zstyle to control whether task descriptions are shown. By default, descriptions are displayed. To show only task names without descriptions, add this to your ~/.zshrc (after the completion is loaded):
shell
zstyle ':completion:*:*:task:*' verbose false