Repository navigation
ChatGPT CLI v1.7.1
We're excited to announce the release of ChatGPT CLI v1.7.1! This version introduces a highly-requested feature that enhances how you interact with ChatGPT using prompt files. Additionally, this update includes several minor improvements and bug fixes to ensure a smoother experience.
🚀 New Feature: --prompt Flag
Provide Rich Context with Prompt Files
With the new --prompt flag, you can now use a file to provide detailed context for your conversations with ChatGPT. This feature allows for greater flexibility and ease when working with complex prompts or reusable context across different conversations.
How to use the --prompt flag:
- Pass the path to your prompt file using the
--promptflag:chatgpt --prompt path/to/your/prompt.md "Your follow-up question here" - This will read the contents of
prompt.mdand use it as the initial context for the conversation.
Example:
- A practical use case could be piping the output of a
git diffcommand and using a prompt to guide the response:git diff | chatgpt --prompt ../prompts/write_pull-request.md
Check Out Our Prompt Repository
For a variety of ready-to-use prompts, visit our prompts repository. These examples can serve as great starting points or inspiration for your own custom prompts!
🛠 Improvements & Bug Fixes
- Enhanced command-line parsing to ensure better compatibility and user experience.
- Minor adjustments to error handling and debug output for improved usability.
- Updated documentation and help commands to reflect the new features.
How to Update
Using Homebrew (macOS)
brew upgrade chatgpt-cliDirect Download
For a quick and easy installation without compiling, you can directly download the pre-built binary for your operating system and architecture.