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

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.0.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.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: how_cli_assist-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 fd9e1d667d4f605e5609b8574111359c71e565636f222b8e0168e2e85be06caf
MD5 0fb69a82b39a438019e5e16b3411f601
BLAKE2b-256 47568c246d79eb24e473fddc5206ad9a1e7bdc2fb1f083a560e8434b42a8ab13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: how_cli_assist-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fa48077c4e98e81a2431398e3011b0eaa1a639077d95db73a58414e94bc42c
MD5 8c20c1d1abf322d92901fb8054f65353
BLAKE2b-256 8892de4c18dd40b3792afd052f0c27f9a6def1d4787c3abbc3e84995c81a213c

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