diff --git a/docs/docs/02-quick-start/01-installation.md b/docs/docs/02-quick-start/01-installation.md index 7a2d20e7..aeab6987 100644 --- a/docs/docs/02-quick-start/01-installation.md +++ b/docs/docs/02-quick-start/01-installation.md @@ -2,12 +2,21 @@ ## go install -With Go 1.23 or greater installed, run: +With Go 1.24 or greater installed, run: ```bash go install github.com/a-h/templ/cmd/templ@latest ``` +To install templ locally in your project, run: + +```bash +go get -tool github.com/a-h/templ/cmd/templ@latest +``` +:::info +Since Go 1.24 the [tool directive](https://tip.golang.org/doc/modules/managing-dependencies#tools) has been added. +::: + ## GitHub binaries Download the latest release from https://github.com/a-h/templ/releases/latest