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
The .exe is a console application — do not start it by double-clicking,
because the console window closes the instant the process exits. Open a terminal
and use envgo run dev instead.
Option 1 — PowerShell installer (recommended)
The installer detects AMD64/ARM64, verifies the SHA-256 entry in SHA256SUMS,
installs the binary to %LOCALAPPDATA%\Programs\envGo, and adds that directory
to your user PATH — all without admin rights.
# On default Windows the "Restricted" policy blocks scripts and you will see# "cannot be loaded because running scripts is disabled". The# -ExecutionPolicy Bypass flag fixes that for this one run only:powershell -NoProfile -ExecutionPolicy Bypass -File .\Install_envGo.ps1 -Architecture amd64Verify the installer and binary against
SHA256SUMSbefore running them. SmartScreen may warn on first run because the binary is not code-signed — choose More info → Run anyway.
Option 2 — Manual install
# 1. Place the binary (pick the one matching your CPU — most PCs use amd64):# dist\envgo-windows-amd64.exe -> AMD64 (Intel/AMD)# dist\envgo-windows-arm64.exe -> ARM64 (Surface Pro X, etc.)mkdir C:\envgocopy $env:USERPROFILE\Downloads\envgo-windows-amd64.exe C:\envgo\envgo.exeThen add C:\envgo to your PATH. Use either method below.
Method A — PowerShell (no admin rights):
# Run once in a new PowerShell window:[Environment]::SetEnvironmentVariable( 'Path', [Environment]::GetEnvironmentVariable('Path', 'User') + ';C:\envgo', 'User')Method B — Windows GUI (visual):
- Press Win + R, type
sysdm.cpl, press Enter. - Advanced tab → Environment Variables….
- Under User variables select Path → Edit….
- New → type
C:\envgo→ OK to close every dialog. - Open a new PowerShell window.
PATH changes only apply to terminals opened after the edit. Reopen the terminal if
envgois not recognized.
Open a new terminal, then verify:
envgo -vBuilding 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 v1.0.10 — Zero-dependency micro-runtime for HTML/Vanilla JS Secure .env injection — secrets never reach the browser
envGo v1.0.10Create 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> |
| SmartScreen blocks the binary | Choose More info → Run anyway |
cannot execute binary file on Linux | Wrong architecture, or the file was transferred as text — re-copy it |
cannot be loaded because running scripts is disabled on Windows | Run the installer with powershell -NoProfile -ExecutionPolicy Bypass -File .\Install_envGo.ps1 — Restricted (default) blocks all scripts |
Next steps
- Quick Start — a working site in five minutes
- CLI Commands — every command and flag
- Local Mode — how
/proxyworks