Prerequisites
Before installing Kosh, ensure you have:Go 1.23+
Kosh uses Go generics and modern standard library features.
Git
For version control and theme installation.
Install Kosh
- Go Install (Recommended)
- Build from Source
The simplest way to install Kosh is via This installs the
go install:kosh binary to your $GOPATH/bin directory.Ensure
$GOPATH/bin is in your $PATH. Add this to your shell profile:Verify Installation
Confirm Kosh is installed correctly:If you see version information, installation was successful!
Platform-Specific Setup
macOS
macOS
Linux
Linux
Windows
Windows
Install Go via winget
Verify Go installation
Install Kosh
Add to PATH (usually automatic)
Ifkosh command not found, add %USERPROFILE%\go\bin to your PATH:- Press
Win + Xand select System - Click Advanced system settings
- Click Environment Variables
- Edit Path and add:
C:\Users\YourName\go\bin
Update Kosh
To update to the latest version:The
@latest flag ensures you get the most recent release.Uninstall Kosh
To remove Kosh from your system:Command Reference
Once installed, Kosh provides these commands:| Command | Description |
|---|---|
kosh init [name] | Initialize a new site |
kosh new <title> | Create a new blog post |
kosh build | Build the static site |
kosh serve | Start preview server |
kosh serve --dev | Dev mode with live reload |
kosh clean | Clean output directory |
kosh clean --cache | Clean cache for full rebuild |
kosh cache stats | Show cache statistics |
kosh version | Show version info |
Troubleshooting
Command not found: kosh
Command not found: kosh
Problem: Shell can’t find the
kosh binary.Solution: Add $GOPATH/bin to your PATH:Go version too old
Go version too old
Problem: Kosh requires Go 1.23+Solution: Update Go to the latest version:
Permission denied
Permission denied
Problem: Installation fails with permission errors.Solution: Don’t use
sudo with go install. Instead, ensure proper ownership:Next Steps
Quick Start Guide
Build your first site in 5 minutes.
Configuration
Learn about kosh.yaml configuration.