Skip to content

Installation

Richard Mwewa edited this page Apr 28, 2023 · 6 revisions

Install from PyPI

searchcode-cli can be installed from pypi using the command:

pip install searchcode

Alternatively:

pip install searchcode-cli

Note

searchcode is a dummy package that installs searchcode-cli

Install from GitHub

pip install git+https://github.com/rly0nheart/searchcpde-cli.git

Build & Install from source

Or if you wish to build searchcode from source, you can follow these steps:

1. Clone the repository

git clone https://github.com/rly0nheart/searchcode-cli

2. Move to searchcode-cli directory

cd searchcode-cli

3. Build the wheel file Before you start building the wheel, you should first install the build package (if you dont already have it)

pip install build

Once the build package is installed, you can now run the following command to start building:

python -m build

4. Installing the wheel When building is complete, you will now run the following command to install the built wheel

Linux

pip install dist/*.whl

Windows

CMD

for %I in (.\dist\*.whl) do pip install "%I"

Powershell

Get-ChildItem .\dist\*.whl | ForEach-Object {pip install $_.FullName}

This will look for a file with the .whl extension in the dist directory and install it

Clone this wiki locally