Installation
Install Taskw using go install, pre-built binaries, or build from source
Installation
Get Taskw installed and ready to generate code for your Go APIs.
Requirements
Before installing Taskw, ensure you have:
- Go 1.23+ installed on your system
- Wire installed on your system
- Swaggo installed on your system
- Taskfile installed on your system
New to Go? Install Go from go.dev/doc/install first.
Installation Methods
Choose the installation method that works best for your environment:
Option 1: Go Install (Recommended)
The easiest way to install Taskw is using go install
:
go install github.com/nkaewam/taskw@latest
This will:
- Download and compile the latest version
- Install the
taskw
binary to your$GOPATH/bin
directory - Make it available globally if
$GOPATH/bin
is in your$PATH
Verify the installation:
taskw --help
You should see the Taskw help output.
Can't find taskw
command? Make sure $GOPATH/bin
is in your $PATH
. Run go env GOPATH
to find your Go path.
Option 2: Pre-built Binaries
Download pre-compiled binaries for your platform:
-
Go to the releases page: github.com/nkaewam/taskw/releases
-
Download the binary for your OS/architecture:
taskw-linux-amd64
(Linux 64-bit)taskw-darwin-amd64
(macOS Intel)taskw-darwin-arm64
(macOS Apple Silicon)taskw-windows-amd64.exe
(Windows 64-bit)
-
Make it executable and move to PATH:
# Linux/macOS
chmod +x taskw-*
sudo mv taskw-* /usr/local/bin/taskw
# Or add to your local bin directory
mkdir -p ~/bin
mv taskw-* ~/bin/taskw
# Add ~/bin to your PATH in ~/.bashrc or ~/.zshrc
- Verify the installation:
taskw --help
Option 3: Build from Source
For the latest development version or custom builds:
Clone the repository
git clone https://github.com/nkaewam/taskw.git
cd taskw
Build the binary
go build -o taskw main.go
Install globally (optional)
sudo mv taskw /usr/local/bin/
# Or add to your local bin
mv taskw ~/bin/
Verify installation
taskw --help
Development builds may be unstable. Use tagged releases for production projects.
Platform-Specific Notes
macOS
If you get a "developer cannot be verified" error:
- Right-click the
taskw
binary - Select "Open" from the context menu
- Click "Open" in the security dialog
Or use the command line:
xattr -d com.apple.quarantine taskw
Windows
- Use PowerShell or Command Prompt
- Add the
taskw.exe
location to yourPATH
environment variable - Windows Defender may flag the binary initially - this is normal for new executables
Linux
- Most distributions work out of the box
- For older systems, you may need to install additional dependencies
- If using snap/flatpak Go, ensure
$GOPATH/bin
is accessible
Verify Your Installation
Test that Taskw is working correctly:
# Check version
taskw --version
# View help
taskw --help
# Test in a new directory
mkdir test-taskw && cd test-taskw
go mod init example.com/test-taskw
taskw init
You should see Taskw create a taskw.yaml
configuration file.
Installation successful! Taskw is ready to use. Next, try the Quick Start Guide.
Updating Taskw
From Go Install
go install github.com/nkaewam/taskw@latest
From Binary
Download the latest binary from the releases page and replace your existing installation.
Check Current Version
taskw --version
Troubleshooting
Command Not Found
Problem: taskw: command not found
Solutions:
- Go install users: Ensure
$GOPATH/bin
is in your$PATH
- Binary users: Verify the binary location is in your
$PATH
- Check installation: Run
which taskw
(Linux/macOS) orwhere taskw
(Windows)
Permission Denied
Problem: permission denied
when running taskw
Solutions:
- Make the binary executable:
chmod +x taskw
- Install with proper permissions:
sudo mv taskw /usr/local/bin/
- Use a user-owned directory:
~/bin/
instead of/usr/local/bin/
Go Version Issues
Problem: Build errors or compatibility issues
Solutions:
- Update Go to version 1.21 or later: go.dev/doc/install
- Check your Go version:
go version
- Use pre-built binaries if Go update isn't possible
Network Issues
Problem: Can't download with go install
Solutions:
- Check internet connection and proxy settings
- Use
GOPROXY
environment variable:GOPROXY=direct go install github.com/nkaewam/taskw@latest
- Download pre-built binary instead
Next Steps
Now that Taskw is installed:
- Learn the basics → Quick Start Guide
- Configure your project → Configuration Reference
- See examples → Example Projects
- Get help → Troubleshooting Guide
Need help? Join our GitHub Discussions or open an issue.