Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m1guelpf/plz-cli
Copilot for your terminal
https://github.com/m1guelpf/plz-cli
Last synced: 6 days ago
JSON representation
Copilot for your terminal
- Host: GitHub
- URL: https://github.com/m1guelpf/plz-cli
- Owner: m1guelpf
- License: mit
- Created: 2022-12-14T02:01:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T00:42:38.000Z (about 1 year ago)
- Last Synced: 2024-10-29T15:40:49.900Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 1,585
- Watchers: 9
- Forks: 78
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - m1guelpf/plz-cli - Copilot for your terminal (Rust)
- awesome-ccamel - m1guelpf/plz-cli - Copilot for your terminal (Rust)
- awesome-ChatGPT-repositories - plz-cli - Copilot for your terminal (CLIs)
- awesome-repositories - m1guelpf/plz-cli - Copilot for your terminal (Rust)
README
# Copilot, for your terminal
A CLI tool that generates shell scripts from a human readable description.
## Installation
You can install `plz` by running the following command in your terminal.
```
curl -fsSL https://raw.githubusercontent.com/m1guelpf/plz-cli/main/install.sh | sh -
```### Homebrew
You can also install `plz` using [Homebrew](https://brew.sh/).
```sh
$ brew install plz-cli
```You may need to close and reopen your terminal after installation. Alternatively, you can download the binary corresponding to your OS from the [latest release](https://github.com/m1guelpf/plz-cli/releases/latest).
## Usage
`plz` uses [GPT-3](https://beta.openai.com/). To use it, you'll need to grab an API key from [your dashboard](https://beta.openai.com/), and save it to `OPENAI_API_KEY` as follows (you can also save it in your bash/zsh profile for persistance between sessions).
```bash
export OPENAI_API_KEY='sk-XXXXXXXX'
```Once you have configured your environment, run `plz` followed by whatever it is that you want to do (`plz show me all options for the plz cli`).
To get a full overview of all available options, run `plz --help`
```sh
$ plz --help
Generates bash scripts from the command lineUsage: plz [OPTIONS]
Arguments:
Description of the command to executeOptions:
-y, --force Run the generated program without asking for confirmation
-h, --help Print help information
-V, --version Print version information
```## Develop
Make sure you have the latest version of rust installed (use [rustup](https://rustup.rs/)). Then, you can build the project by running `cargo build`, and run it with `cargo run`.
## License
This project is open-sourced under the MIT license. See [the License file](LICENSE) for more information.