Installation
Linux / macOS via curl (recommended)
The install script auto-detects your OS (Linux, macOS, Windows via MINGW/MSYS/Cygwin) and architecture (x64, arm64) and downloads the right pre-compiled binary from the latest release to /usr/local/bin.
curl -fsSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bashCustom install directory or version
INSTALL_DIR=~/.local/bin VERSION=vX.Y.Z \
curl -fsSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash| Variable | Default | Description |
|---|---|---|
INSTALL_DIR | /usr/local/bin | Directory where the binary is installed |
VERSION | latest release | Specific version tag to install (e.g. v1.1.0) |
Windows via PowerShell
A native PowerShell script is available for Windows 10 (1809+) and later.
powershell -c "irm https://raw.githubusercontent.com/fulll/github-code-search/main/install.ps1 | iex"Custom install directory or version
& { $(irm https://raw.githubusercontent.com/fulll/github-code-search/main/install.ps1) } -Version v1.8.0 -InstallDir C:\tools\gcs\bin| Parameter | Default | Description |
|---|---|---|
-Version | latest | Version tag to install (e.g. v1.8.0) |
-InstallDir | ~\.github-code-search\bin | Directory where the binary is installed |
-NoPathUpdate | $false | Skip adding install dir to user PATH |
-DownloadWithoutCurl | $false | Force Invoke-RestMethod instead of curl.exe |
TIP
The script automatically adds the install directory to your user PATH. New terminal windows will pick it up immediately.
From source
Requires Bun ≥ 1.4.4. CI/CD and documentation workflows use the version pinned in .bun-version. Pre-compiled binaries do not require Bun.
git clone https://github.com/fulll/github-code-search
cd github-code-search
bun install
bun run build.ts
# → produces dist/github-code-searchFor development, use Bun's native formatter and TypeScript checker:
bun run format # bun fmt . (writes formatted files)
bun run format:check # bun fmt --check . (read-only verification)
bun run typecheck # bun check (strict TypeScript checking)bun run lint is retained as a compatibility alias for typecheck. Type checking does not replace general-purpose lint rules; the former standalone oxlint rules are intentionally no longer enforced. Formatting options are configured in bunfig.toml, and no standalone formatter or linter dependency is needed.
Copy the binary wherever you like:
cp dist/github-code-search ~/.local/bin/Cross-compilation
The build script accepts any Bun executable target via --target:
bun run build.ts --target=bun-linux-x64
bun run build.ts --target=bun-linux-x64-baseline
bun run build.ts --target=bun-linux-arm64
bun run build.ts --target=bun-darwin-x64
bun run build.ts --target=bun-darwin-arm64
bun run build.ts --target=bun-windows-x64Verify the installation
github-code-search --version
# → X.Y.Z (abc1234 · darwin/arm64)The version string includes the commit SHA, OS and architecture — useful for bug reports.
Upgrade
Once installed, you can upgrade to the latest release with a single command:
github-code-search upgrademacOS Gatekeeper
If you download the binary directly from the releases page in a browser (Chrome, Safari…), macOS marks it with a quarantine flag and Gatekeeper will block it on first launch.
Remove the quarantine attribute once after downloading:
xattr -d com.apple.quarantine ./github-code-search-darwin-arm64TIP
This is unnecessary when installing via the curl script above, or when using the upgrade subcommand — both handle it automatically.