
Grepai Installation
Install or upgrade the GrepAI CLI on macOS, Linux, or Windows and confirm it with `grepai version`.
Overview
grepai-installation is an agent skill for the Build phase that installs or upgrades the GrepAI CLI on macOS, Linux, or Windows and verifies the install with `grepai version`.
Install
npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-installationWhat is this skill?
- Homebrew tap install on macOS with upgrade and uninstall paths
- curl pipe-to-sh installer for Linux/macOS into `/usr/local/bin/`
- PowerShell `irm` installer for Windows
- Optional from-source build requiring Go 1.24+
- Post-install verification via `grepai version`
- 4 installation methods (Homebrew, shell script, PowerShell, from source)
- Go 1.24+ for source builds
Adoption & trust: 457 installs on skills.sh; 17 GitHub stars; 1/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
What problem does it solve?
You want GrepAI in your PATH but are unsure which install script, package manager, or Go build steps match your OS.
Who is it for?
First-time GrepAI setup, reinstalls after OS migration, or upgrading via brew or scripted installers.
Skip if: Configuring GrepAI indexes, auth, or search queries—that belongs in usage skills after install succeeds.
When should I use this skill?
Installing GrepAI for the first time, upgrading an existing installation, building from source, or verifying a successful installation
What do I get? / Deliverables
You end with a working `grepai` binary, verified by version output, ready to hook into agent search workflows.
- Installed grepai binary on PATH
- Successful `grepai version` output
Recommended Skills
Journey fit
Installation belongs in Build because you are adding a local agent-adjacent search tool before wiring it into daily coding workflows. Agent-tooling is the shelf for CLIs that extend what your coding agent can query in the repo.
How it compares
Operator install guide for a CLI—not an MCP server package or hosted SaaS onboarding flow.
Common Questions / FAQ
Who is grepai-installation for?
Solo builders and indie devs setting up GrepAI locally before pairing it with Claude Code, Cursor, or other agents that shell out to CLIs.
When should I use grepai-installation?
During Build/agent-tooling when installing for the first time, upgrading an existing binary, building from source, or verifying that `grepai version` succeeds after setup.
Is grepai-installation safe to install?
Scripts pull from the project’s GitHub URLs; review the Security Audits panel on this Prism page and read `install.sh` or the PowerShell script before piping to shell, especially on shared machines.
SKILL.md
READMESKILL.md - Grepai Installation
# GrepAI Installation This skill covers all methods to install GrepAI on any platform. ## When to Use This Skill - Installing GrepAI for the first time - Upgrading an existing GrepAI installation - Building GrepAI from source - Verifying a successful installation ## Prerequisites - **macOS/Linux:** Terminal access - **Windows:** PowerShell - **From source:** Go 1.24+ installed ## Installation Methods ### Method 1: Homebrew (macOS - Recommended) The easiest way to install on macOS: ```bash # Add the tap and install brew install yoanbernabeu/tap/grepai # Verify installation grepai version ``` **Advantages:** - Automatic updates with `brew upgrade grepai` - Clean uninstall with `brew uninstall grepai` - Manages dependencies automatically ### Method 2: Shell Script (Linux/macOS) Universal installation script: ```bash # Download and run the installer curl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | sh # Verify installation grepai version ``` **What the script does:** 1. Detects your OS and architecture 2. Downloads the appropriate binary 3. Installs to `/usr/local/bin/` 4. Sets executable permissions ### Method 3: PowerShell (Windows) Native Windows installation: ```powershell # Run in PowerShell (Admin recommended) irm https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.ps1 | iex # Verify installation grepai version ``` **Note:** You may need to adjust execution policy: ```powershell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser ``` ### Method 4: Build from Source For developers or custom builds: ```bash # Clone the repository git clone https://github.com/yoanbernabeu/grepai.git cd grepai # Build the binary make build # Install globally sudo mv ./bin/grepai /usr/local/bin/ # Verify installation grepai version ``` **Requirements:** - Go 1.24 or later - Make (optional, can use `go build` directly) ## Verifying Installation After installation, verify everything works: ```bash # Check version grepai version # Output: grepai version 0.24.0 # Check available commands grepai --help ``` ## Updating GrepAI ### Check for Updates ```bash grepai update --check ``` ### Perform Update ```bash # Auto-update (downloads and installs latest) grepai update # Or via Homebrew brew upgrade grepai ``` ## Uninstalling ### Homebrew ```bash brew uninstall grepai ``` ### Manual ```bash # Remove binary sudo rm /usr/local/bin/grepai # Optionally remove config directories rm -rf ~/.grepai ``` ## Next Steps After installation: 1. **Install Ollama** for local embeddings (see `grepai-ollama-setup` skill) 2. **Initialize a project** with `grepai init` 3. **Start indexing** with `grepai watch` ## Common Installation Issues ❌ **Problem:** `command not found: grepai` ✅ **Solution:** Ensure `/usr/local/bin` is in your PATH: ```bash export PATH="$PATH:/usr/local/bin" ``` ❌ **Problem:** Permission denied during installation ✅ **Solution:** Use `sudo` for the installation command or install to a user directory ❌ **Problem:** Homebrew tap not found ✅ **Solution:** Add the tap first: ```bash brew tap yoanbernabeu/tap brew install grepai ``` ## Output Format After successful installation: ``` ✅ GrepAI installed successfully Version: 0.24.0 Location: /usr/local/bin/grepai Next steps: 1. Install Ollama: brew install ollama 2. Initialize project: grepai init 3. Start indexing: grepai watch ```