Skip to main content

How CLI

How CLI is a terminal-based assistant that generates precise shell commands for any task you ask. Powered by Google Gemini’s generative AI, it provides context-aware, executable shell commands tailored to your current environment.


Features

  • Generate exact shell commands based on your current working directory, OS, and available tools.
  • Context-aware: considers files, git repositories, shell type, and installed tools.
  • Command history logging for easy reference.
  • Clipboard support: copies generated commands automatically.
  • Typewriter effect for visually appealing output (optional).
  • Configurable Google Gemini API key.
  • Handles API errors, content blocks, and timeouts gracefully.

Installation

Using pip:

pip install how-cli-assist

Quick Start

Open your terminal and try:

# Examples:
how to create a Python virtual environment
> python -m venv env

how to list all files modified in the last 7 days
> find . -type f -mtime -7

# Show your previous questions and commands
how --history

# Set or update your Google Gemini API key
how --api-key YOUR_GEMINI_API_KEY_HERE

Options

--silent : Suppress spinner and typewriter effect.

--type : Show output with typewriter effect.

--history : Display previous questions and generated commands.

--help : Show help message and exit.

--api-key <API_KEY> : Set or replace your Google Gemini API key.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for how-cli-assist 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for how-cli-assist 1.0.1
File Size Uploaded
how_cli_assist-1.0.1.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for how-cli-assist 1.0.1
File Interpreter ABI Platform
how_cli_assist-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / how_cli_assist-1.0.1.tar.gz

Download URL how_cli_assist-1.0.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
85bc36eacfc0d4f1b77239557230048ea9b899dd272765941c679554f03f512d
BLAKE2b-256 checksum
How to use checksums
54474d70069c3a72c3b29f4771ac8d91f02af4b21381cb1c25d3a2b7bd0ac7ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / how_cli_assist-1.0.1-py3-none-any.whl

Download URL how_cli_assist-1.0.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8251f2a5fe4ba8c7b8f34d4a05d8c4644f4e12da6d891073d9cc1a91974f02a2
BLAKE2b-256 checksum
How to use checksums
d028d99c88d13f2151734c4dcd921f48f1a3127c56b60423604f904d4aa6ae61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page