Skip to main content

🧞‍♂️ Shell Genie

Your wishes are my commands.

Shell Genie is a command-line tool that lets you interact with the terminal in plain English. You ask the genie what you want to do and it will generate the command for you.

Installation

The recommended way to install is using pipx:

  1. Install Python 3.10 or higher.
  2. Install pipx.
  3. Install Shell Genie: pipx install shell-genie

Alternatively, you can install it using pip:

  1. Install Python 3.10 or higher.
  2. Install Shell Genie: pip install shell-genie

How to use

  1. First, you need to initialize the tool by running the following command:

    shell-genie init
    

    This will prompt you to select a backend (either openai-gpt3 or free-genie) and provide any additional information that is required (e.g. your own OpenAI API key for openai-gpt3).

    The free-genie backend is free to use. I'm hosting, but as you can imagine I'm not a big corporation with unlimited money, so there's no guarantee that it will be available at all times. My goal is to generate a dataset of commands to fine-tune a model later on (this is mentioned during the initialization process).

  2. Once you have initialized the tool, you can start asking the genie what you want to do. For example, you may ask it to find all the json files in the current directory that are larger than 1MB:

    shell-genie ask "find all json files in the current directory that are larger than 1MB"
    

    You'll see an output similar to this:

    Command: find . -name "*.json" -size +1M
    Do you want to run this command? [y/n]:
    

    If you have questions about how the command works, you can ask the genie to explain it:

    shell-genie ask "find all json files in the current directory that are larger than 1MB" --explain
    

    And you'll see an output similar to this:

    Command: find . -name "*.json" -size +1M
    Description: This command will search the current directory for all... (shortened for brevity)
    Do you want to run the command? [y/n]:
    
  3. Run the command if you want to. If you're using free-genie, and you want to help improve the tool, you can provide feedback after you've run the command.

Examples

Here's a short video showing how to use the tool:

asciicast

Download files

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

Source Distribution

shell_genie-0.2.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

shell_genie-0.2.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file shell_genie-0.2.1.tar.gz.

File metadata

  • Download URL: shell_genie-0.2.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.4 Darwin/22.1.0

File hashes

Hashes for shell_genie-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8bfc2665aa6d66fa1d42b10293841c0986656191e65a47cdf1b9fe029a6f7b71
MD5 75b227b8ba74b8a50d9cdc5c49af297d
BLAKE2b-256 ee135120e7d0f78fbc86b2f8c8b8845058ef73738f6cc1c07d510fd4874fd2b8

See more details on using hashes here.

File details

Details for the file shell_genie-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: shell_genie-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.4 Darwin/22.1.0

File hashes

Hashes for shell_genie-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad579d2ddf513ab7e92d313583ca72c6fdbae6f75ed610aa70898b5a8e14d41e
MD5 2e76271df70c3e3e88b2a3c4ceaef952
BLAKE2b-256 5f29f360f4f107cae2cf6a869c19672a88fa8263d92d5612a18dce53462cf332

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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