• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI to convert natural language to terminal commands

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 path

Requirements:

  • jq binary (commandline JSON processor)
  • curl binary (commandline HTTP client)
  • openai api key

Usage:

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