Skip to main content

Terminal assistant generating accurate shell commands

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

how_cli_assist-1.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

how_cli_assist-1.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file how_cli_assist-1.0.1.tar.gz.

File metadata

  • Download URL: how_cli_assist-1.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for how_cli_assist-1.0.1.tar.gz
Algorithm Hash digest
SHA256 85bc36eacfc0d4f1b77239557230048ea9b899dd272765941c679554f03f512d
MD5 54fddc427fead06286ca4451c356a332
BLAKE2b-256 54474d70069c3a72c3b29f4771ac8d91f02af4b21381cb1c25d3a2b7bd0ac7ac

See more details on using hashes here.

File details

Details for the file how_cli_assist-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: how_cli_assist-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for how_cli_assist-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8251f2a5fe4ba8c7b8f34d4a05d8c4644f4e12da6d891073d9cc1a91974f02a2
MD5 c445af5a0d2e47422297c6318bb2defb
BLAKE2b-256 d028d99c88d13f2151734c4dcd921f48f1a3127c56b60423604f904d4aa6ae61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page