Skip to content

CLI Installation

The Code Search CLI provides powerful command-line access to search, replace, and manage repositories.

Code Search CLI terminal output Code Search CLI terminal output
Terminal window
brew install techquestsdev/tap/code-search
Terminal window
# Apple Silicon (M1/M2/M3)
curl -L https://github.com/techquestsdev/code-search/releases/latest/download/code-search_Darwin_arm64.tar.gz | tar xz
sudo mv code-search /usr/local/bin/
# Intel
curl -L https://github.com/techquestsdev/code-search/releases/latest/download/code-search_Darwin_x86_64.tar.gz | tar xz
sudo mv code-search /usr/local/bin/

Check that the CLI is installed correctly:

Terminal window
code-search --version
# code-search version 1.0.0
code-search --help

Enable command-line completions for your shell:

Terminal window
# Add to ~/.bashrc
source <(code-search completion bash)