Crates.io | openai-client-cli |
lib.rs | openai-client-cli |
version | 0.1.1 |
source | src |
created_at | 2023-11-14 00:19:26.080285 |
updated_at | 2023-11-18 15:52:18.695295 |
description | OpenAI API client CLI |
homepage | |
repository | https://github.com/AsherJingkongChen/openai-client-cli.git |
max_upload_size | |
id | 1034183 |
size | 409,965 |
Authors: Asher Jingkong Chen
Description: OpenAI API client CLI
I like to use CLI (e.g. cURL) to fetch OpenAI's REST API but ...
Not super easy to use! That's why I made this :)
The following guides will help you install the CLI program.
Cargo will install and compile the program on your machine.
cargo install openai-client-cli
[WIP]
git
and change the working directorygit clone --recurse-submodules https://github.com/AsherJingkongChen/openai-client-cli.git
cd openai-client-cli
rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup toolchain install 1.72.0
rustup show
cargo build --release
or:
cargo b -r
target/release
to environment variable $PATH
export PATH='$PATH:target/release'
To add the executable in your environment permanently, you can add the export command to ~/.profile, ~/.bashrc or ~/.zshrc.
The command runs everytime when a shell session is launched.
Check the following manual to learn how to work on the CLI.
Manual review: link
The command to show manual:
openai --help
or:
openai -h