nyekis-search

Crates.ionyekis-search
lib.rsnyekis-search
version1.0.1
created_at2025-11-06 03:53:17.111221+00
updated_at2025-11-06 07:23:22.745112+00
descriptionA terminal-based search tool using Google Search API.
homepage
repositoryhttps://github.com/Nekidev/search
max_upload_size
id1919039
size267,745
Rafael Bradley (Nekidev)

documentation

README

Demo

Nyeki's CLI Search

Welcome to Nyeki's CLI Search! It's a small tool for searching Google from your terminal.

Searching is quite simple:

search "Stack Overflow"

That's it! Read below to learn how to get it set up and running, it has some API setup steps you must follow:

Installation

cargo install nyekis-search

Note that you must have cargo installed for that. Otherwise, check this repository's releases for downloadable binaries.

Google API Setup

Before being able to search stuff, you'll have to set up a Google API key and create a programmable search engine from the Google console.

Head over to this Google Cloud Console page to create an API key. If you don't have any Google Cloud project, create one. Grab the generated API key, you may want to store it in an .env file as GOOGLE_API_KEY=.

Once that's done, you'll need to create a programmable search engine. Head over to this Google Cloud Console page to create a new programmable search engine (only set a name, leave the rest options as they are by default). Once created, you'll be shown a success message and given a script tag for JavaScript, which will look something like this:

<script async src="https://cse.google.com/cse.js?cx=bc4ce04df5518cb73"></script>
<div class="gcse-search"></div>

Note the ?cx={CX} query parameter in that tag? Copy it and save it in that .env file as GOOGLE_CX=.

Your .env file will end up looking something like this:

GOOGLE_API_KEY=blahblahblah
GOOGLE_CX=bc4ce04df5518cb73

[!NOTE] To persist this .env across your system, move the .env to ~/.config/nyekis-search/.env.

Running Nyeki's CLI Search

That's it! Once those two environment variables are set, you can run

search "Best food from Japan"

it'll load results and show you a list of options to select. Enjoy!

Advanced Usage

There's little advanced usage right now. The only argument you may be interested in is the --safe flag which toggles on safe search. For example:

search "Best food from Japan" --safe
Commit count: 0

cargo fmt