Skip to content

ChatGPT CLI v1.7.1

Choose a tag to compare

@kardolus kardolus released this 10 Oct 13:26
· 308 commits to main since this release

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 --prompt flag:
    chatgpt --prompt path/to/your/prompt.md "Your follow-up question here"
  • This will read the contents of prompt.md and use it as the initial context for the conversation.

Example:

  • A practical use case could be piping the output of a git diff command 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-cli

Direct Download

For a quick and easy installation without compiling, you can directly download the pre-built binary for your operating system and architecture.