[GH-ISSUE #5610] /clear - clears the terminal #29265

Closed
opened 2026-04-22 07:58:54 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @dannyoo on GitHub (Jul 10, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5610

Greetings, I love using ollama.

How can we make the /clear command clear the terminal as well?

Thanks

Originally created by @dannyoo on GitHub (Jul 10, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5610 Greetings, I love using ollama. How can we make the /clear command clear the terminal as well? Thanks
GiteaMirror added the feature request label 2026-04-22 07:58:54 -05:00
Author
Owner

@ramtinkermani commented on GitHub (Jul 10, 2024):

For the time being you can use "Command + k" on Mac to clear but would be nice to have that too.
Also /clear is already defined to clear the session context

<!-- gh-comment-id:2221386231 --> @ramtinkermani commented on GitHub (Jul 10, 2024): For the time being you can use "Command + k" on Mac to clear but would be nice to have that too. Also /clear is already defined to clear the session context
Author
Owner

@igorschlum commented on GitHub (Jul 10, 2024):

@ramtinkermani command K is working fine, bug when I type ollama run llama3 and after a prompt, I type /clear it's not working as you said.

/clear
Unknown command '/clear'. Type /? for help
/?
Available Commands:
/set Set session variables
/show Show model information
/load Load a session or model
/save Save your current session
/bye Exit
/?, /help Help for a command
/? shortcuts Help for keyboard shortcuts

Use """ to begin a multi-line message.

<!-- gh-comment-id:2221597794 --> @igorschlum commented on GitHub (Jul 10, 2024): @ramtinkermani command K is working fine, bug when I type ollama run llama3 and after a prompt, I type /clear it's not working as you said. >>> /clear Unknown command '/clear'. Type /? for help >>> /? Available Commands: /set Set session variables /show Show model information /load <model> Load a session or model /save <model> Save your current session /bye Exit /?, /help Help for a command /? shortcuts Help for keyboard shortcuts Use """ to begin a multi-line message.
Author
Owner

@ramtinkermani commented on GitHub (Jul 10, 2024):

@igorschlum
Clear was added in version v0.1.38. Make sure you have a newer version installed:
https://github.com/ollama/ollama/releases/tag/v0.1.38

<!-- gh-comment-id:2221607741 --> @ramtinkermani commented on GitHub (Jul 10, 2024): @igorschlum Clear was added in version v0.1.38. Make sure you have a newer version installed: https://github.com/ollama/ollama/releases/tag/v0.1.38
Author
Owner

@igorschlum commented on GitHub (Jul 10, 2024):

When I launch Ollama and it detects that there's a new version available,
the app prompts me to update. However, even when I click on the "Restart to Update"
option in the menu bar, the CLI version doesn't get updated.

Additionally, when I manually reinstall Ollama by downloading the latest
version from the server, the CLI version still remains outdated (0.1.22),
despite the GUI version being updated to 0.2.1 and I clicked on Install CLI.

<!-- gh-comment-id:2221620063 --> @igorschlum commented on GitHub (Jul 10, 2024): When I launch Ollama and it detects that there's a new version available, the app prompts me to update. However, even when I click on the "Restart to Update" option in the menu bar, the CLI version doesn't get updated. Additionally, when I manually reinstall Ollama by downloading the latest version from the server, the CLI version still remains outdated (0.1.22), despite the GUI version being updated to 0.2.1 and I clicked on Install CLI.
Author
Owner

@ramtinkermani commented on GitHub (Jul 10, 2024):

I think when you update thourgh the UI, it only updates the UI not the CLI. Please download the latest version of the CLI and install it. This should update the CLI.
https://ollama.com/

Make sure the new version is added to your environment:

> ollama --version
ollama version is 0.2.1

(Assuming you're using Mac or Linux) if still you see the old version, make sure the new version is in your path:

$ which ollama
/usr/local/bin/ollama
<!-- gh-comment-id:2221631569 --> @ramtinkermani commented on GitHub (Jul 10, 2024): I think when you update thourgh the UI, it only updates the UI not the CLI. Please download the latest version of the CLI and install it. This should update the CLI. https://ollama.com/ Make sure the new version is added to your environment: ``` > ollama --version ollama version is 0.2.1 ``` (Assuming you're using Mac or Linux) if still you see the old version, make sure the new version is in your path: ``` $ which ollama /usr/local/bin/ollama ```
Author
Owner

@igorschlum commented on GitHub (Jul 10, 2024):

Thank you I updated CLI with

 brew upgrade ollama

But I created an Issue because when I download Ollama.app, launch it and click on Install CLI , it should update the version that is installed on my Mac. If not Ollama should support "ollama update" command, to update both the app and the CLI.

/clear works now.

<!-- gh-comment-id:2221642689 --> @igorschlum commented on GitHub (Jul 10, 2024): Thank you I updated CLI with ```bash brew upgrade ollama ``` But I created an Issue because when I download Ollama.app, launch it and click on Install CLI , it should update the version that is installed on my Mac. If not Ollama should support "ollama update" command, to update both the app and the CLI. /clear works now.
Author
Owner

@bmamatkadyr commented on GitHub (Sep 6, 2024):

For the time being you can use "Command + k" on Mac to clear but would be nice to have that too. Also /clear is already defined to clear the session context

tu sir 🫡

<!-- gh-comment-id:2334371718 --> @bmamatkadyr commented on GitHub (Sep 6, 2024): > For the time being you can use "Command + k" on Mac to clear but would be nice to have that too. Also /clear is already defined to clear the session context tu sir 🫡
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29265