|0.1.1||Nov 18, 2023|
|0.1.0||Nov 14, 2023|
#53 in Multimedia
69 downloads per month
OpenAI Client CLI
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.
Install via Cargo (1st option)
Cargo will install and compile the program on your machine.
cargo install openai-client-cli
Install via Homebrew (2nd option)
Install from git and build from source codes (3rd option)
- Copy the source code with
gitand change the working directory
git clone --recurse-submodules https://github.com/AsherJingkongChen/openai-client-cli.git cd openai-client-cli
- Install Rust toolchain manager:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install Rust toolchain (at least 1.72.0)
rustup toolchain install 1.72.0 rustup show
- Build in release mode
cargo build --release
cargo b -r
- Add the directory
target/releaseto environment variable
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: