Skip to main content

A command-line tool for generating terminal commands using AI

Project description

Cmd Clever

A command-line tool for generating terminal commands using AI.

Installation

pip install cmd-clever

Usage

Command-line Arguments

# Basic usage with a query
cmd-clever 查找大于100MB的日志文件

# Specify API key and base URL
cmd-clever --api-key your-api-key --api-base your-api-base 查找最近修改的文件

# Use a different model ID
cmd-clever --model-id different-model-id 创建一个新的目录并将文件移动到其中

# Disable streaming output
cmd-clever --no-stream 查找包含特定文本的文件

Interactive Mode

If you don't provide a query, Cmd Clever enters interactive mode:

cmd-clever

You can then input your queries one by one and get responses. Type "exit" or "quit" to leave interactive mode.

Environment Variables

Cmd Clever looks for the following environment variables:

  • AGNO_API_KEY: Your API key
  • AGNO_API_BASE: Your API base URL

You can set these in your shell configuration (e.g., .bashrc, .zshrc) to avoid specifying them on each run:

export AGNO_API_KEY="your-api-key"
export AGNO_API_BASE="your-api-base"

Features

  • Accepts queries in Chinese
  • Generates safe and reliable terminal commands
  • Automatically adapts commands for Linux/macOS
  • Warns about potentially dangerous operations
  • Supports command explanations
  • Interactive and one-off query modes

License

MIT

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

cmd_clever-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

cmd_clever-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file cmd_clever-0.1.0.tar.gz.

File metadata

  • Download URL: cmd_clever-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cmd_clever-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a61fb4d58f65ac7036cef8983295c37f4f8e37c07eead3f95a4959a7693dc09
MD5 db6fc90c74c848740f2ea154aef63965
BLAKE2b-256 4e263863519d8b3d9d352d8b6374ebfd5edbfbada9451d726ebbd29e5968f4eb

See more details on using hashes here.

File details

Details for the file cmd_clever-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cmd_clever-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cmd_clever-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c406be11a062f44352c9e52eed6fde92aaa59717d497d5715127a645aecbaa5
MD5 b46ce0d8c48a5c2c6fb9d88358f5de65
BLAKE2b-256 ddc8ab81a4463998c80bdb9a526cc7cb755e6a226d46da553783293348b80607

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