Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MxDkl/pls
CLI to convert natural language to terminal commands
https://github.com/MxDkl/pls
chatgpt cli llm nlp openai terminal
Last synced: 5 days ago
JSON representation
CLI to convert natural language to terminal commands
- Host: GitHub
- URL: https://github.com/MxDkl/pls
- Owner: MxDkl
- License: mit
- Created: 2023-03-12T10:31:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T07:41:15.000Z (6 months ago)
- Last Synced: 2024-08-02T16:05:44.662Z (3 months ago)
- Topics: chatgpt, cli, llm, nlp, openai, terminal
- Language: Shell
- Homepage:
- Size: 4.57 MB
- Stars: 140
- Watchers: 2
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Please CLI
Please is a CLI tool that translates natural language into shell commands.
Installation:
- clone this repo
- add your openai api key to the pls file
- chmod +x pls
- add pls to your pathRequirements:
- jq binary (commandline JSON processor)
- curl binary (commandline HTTP client)
- openai api keyUsage:
```
pls [natural language command]
```
Examples:
```
pls list all files in the current directory
pls list all files in the current directory that contain "foo"
pls make a directory called "foo" with 3 files in it that each have 1000 random words
pls use iptables to forward all traffic from port 80 to port 8501
pls zip all files in the current directory that contain the word "foo" and save to desktop
```Warning:
- be careful when running as root because it is unpredictable and could do anything