Skip to content

Installation

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.

bash
curl -fsSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash

Custom install directory or version

bash
INSTALL_DIR=~/.local/bin VERSION=vX.Y.Z \
  curl -fsSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash
VariableDefaultDescription
INSTALL_DIR/usr/local/binDirectory where the binary is installed
VERSIONlatest releaseSpecific 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
powershell -c "irm https://raw.githubusercontent.com/fulll/github-code-search/main/install.ps1 | iex"

Custom install directory or version

powershell
& { $(irm https://raw.githubusercontent.com/fulll/github-code-search/main/install.ps1) } -Version v1.8.0 -InstallDir C:\tools\gcs\bin
ParameterDefaultDescription
-VersionlatestVersion tag to install (e.g. v1.8.0)
-InstallDir~\.github-code-search\binDirectory where the binary is installed
-NoPathUpdate$falseSkip adding install dir to user PATH
-DownloadWithoutCurl$falseForce 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.0.

bash
git clone https://github.com/fulll/github-code-search
cd github-code-search
bun install
bun run build.ts
# → produces dist/github-code-search

Copy the binary wherever you like:

bash
cp dist/github-code-search ~/.local/bin/

Cross-compilation

The build script accepts any Bun executable target via --target:

bash
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-x64

Verify the installation

bash
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:

bash
github-code-search upgrade

macOS 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:

bash
xattr -d com.apple.quarantine ./github-code-search-darwin-arm64

TIP

This is unnecessary when installing via the curl script above, or when using the upgrade subcommand — both handle it automatically.

Next step

Run your first search

Released under the MIT License.

Released under the MIT License.· Copyright © 2026 fulll