Installation
envGo is a single executable with no runtime dependencies. Installing it means
putting the binary on your PATH.
Don’t have the files yet? Grab them from Download. Otherwise pick the section for your platform below.
macOS — ZIP installer (easiest)
The release archive contains the installer script and the binary:
| Archive | For |
|---|---|
envGo-macOS-AppleSilicon.zip | M-series Macs |
envGo-macOS-Intel.zip | Intel Macs |
Not sure which you have? Run:
uname -marm64 means Apple Silicon; x86_64 means Intel.
Steps
- Extract the ZIP. You get a folder containing
Install_envGo.command, adist/folder with the binary, andREADME.md. - Double-click
Install_envGo.command. It copies the binary to~/.local/bin/envgo, marks it executable, and prints the help output. - If
~/.local/binis not on yourPATH, the script tells you which line to add to~/.zshrc.
macOS — manual install
# Extract the archiveunzip envGo-macOS-AppleSilicon.zip
# Install the binary and make it executablemkdir -p ~/.local/bincp envGo-macOS-AppleSilicon/dist/envgo-darwin-arm64 ~/.local/bin/envgochmod +x ~/.local/bin/envgoFor an Intel Mac, use the Intel archive and
dist/envgo-darwin-amd64.
Add to PATH if it is not there already:
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.zshrcsource ~/.zshrcLinux
# AMD64 (most servers)sudo cp dist/envgo-linux-amd64 /usr/local/bin/envgosudo chmod +x /usr/local/bin/envgo
# ARM64 (Raspberry Pi, Graviton, …)sudo cp dist/envgo-linux-arm64 /usr/local/bin/envgosudo chmod +x /usr/local/bin/envgoOr install into your home directory without sudo:
mkdir -p ~/.local/bincp dist/envgo-linux-amd64 ~/.local/bin/envgochmod +x ~/.local/bin/envgoCheck the architecture first if you are unsure:
uname -m # x86_64 → amd64, aarch64 → arm64Windows
# Copy either# dist\envgo-windows-arm64.exe
mkdir C:\envgocopy dist\envgo-windows-amd64.exe C:\envgo\envgo.exeThen add C:\envgo to your PATH via System Properties → Environment
Variables, and open a new terminal so the change takes effect.
Building from source
Requires Go 1.21 or newer.
git clone <repository>cd <repository>make build # → ./envgoThe Makefile uses CGO_ENABLED=0 and -trimpath -ldflags="-s -w", so the
result is a static, stripped binary. To build every platform into dist/:
make releaseVerify
envgo -v # print the versionenvgo -h # show the flag referenceA successful install prints something like:
____ ___ _ ____ __/ ___| ___ / _ \ '_ \ \ / / | _ / _ \ | __/ | | \ V /| |_| | (_) | \___|_| |_|\_/ \____|\___/ envGo v20260919 — Zero-dependency micro-runtime for HTML/Vanilla JS Secure .env injection — secrets never reach the browser
envGo 20260919Create your first project
mkdir myapp && cd myappenvgo initenvgo run devenvgo init writes .env, .env.example, index.html, .gitignore, and
README.md into the current directory. See
Quick Start for the walkthrough.
Uninstall
envGo is one file — remove it and the install is gone.
# macOS / Linux, user installrm ~/.local/bin/envgo
# Linux, system installsudo rm /usr/local/bin/envgo
# Windowsdel C:\envgo\envgo.exeIf an older release was installed under the previous name, remove that too:
rm -f ~/.local/bin/envbridgeTroubleshooting
| Problem | Fix |
|---|---|
envgo: command not found | The install directory is not on PATH — add it and open a new shell |
bad CPU type in executable | Wrong architecture. Check uname -m and install the matching binary |
Permission denied | chmod +x the binary, or install to a user-writable directory |
| Gatekeeper blocks the binary | Right-click → Open, or xattr -dr com.apple.quarantine <folder> |
cannot execute binary file on Linux | Wrong architecture, or the file was transferred as text — re-copy it |
Next steps
- Quick Start — a working site in five minutes
- CLI Commands — every command and flag
- Local Mode — how
/proxyworks