Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngsilverman/nli
Turn your thoughts into shell commands with ease using this user-friendly tool powered by GPT-3.
https://github.com/ngsilverman/nli
artificial-intelligence automation cli command-line gpt-3 language-model natural-language-processing nlp shell terminal
Last synced: about 2 months ago
JSON representation
Turn your thoughts into shell commands with ease using this user-friendly tool powered by GPT-3.
- Host: GitHub
- URL: https://github.com/ngsilverman/nli
- Owner: ngsilverman
- Created: 2023-02-09T14:35:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T03:21:46.000Z (about 2 years ago)
- Last Synced: 2024-10-27T19:57:16.556Z (4 months ago)
- Topics: artificial-intelligence, automation, cli, command-line, gpt-3, language-model, natural-language-processing, nlp, shell, terminal
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Natural Language Interface (NLI)
NLI is a tool that converts natural language into shell commands. With NLI, you can express your desired actions in plain language, and the tool will generate the corresponding shell commands for you. This approach can make it quicker and easier to execute tasks in the terminal, especially when compared to manual command typing. NLI is powered by GPT-3, a state-of-the-art language model developed by OpenAI.
## Installation
If you're using a Mac with an arm64 processor you can download the executable directly from [releases](https://github.com/ngsilverman/nli/releases).
Otherwise, to install from the source:
```bash
> pyinstaller nli.py
> ln -s dist/nli/nli /usr/local/bin/nli
```## Usage
```bash
> nli [make a wish]
```## Example
```
> nli recursively change the user to apple in the current folder but only for files owned by the user bananafind . -user banana -exec chown apple {} \;
Run, explain or abort? [r/e/a] (a): e
• find: searches for files in the current directory and its subdirectories
• .: the current directory
• -user banana: searches for files owned by the user "banana"
• -exec: executes a command on the files found
• chown: changes the owner of the file
• apple: the new owner of the file
• {}: placeholder for the file found
• \;: terminates the commandRun or abort? [r/a] (a):
```