[PR #6938] [CLOSED] add CLI completion for commands #12263

Closed
opened 2026-04-12 23:53:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6938
Author: @pranitbauva1997
Created: 9/24/2024
Status: Closed

Base: mainHead: feature/auto-completion-cli


📝 Commits (1)

  • 9864038 add CLI completion for commands

📊 Changes

1 file changed (+66 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+66 -0)

📄 Description

For example, ollama ru<TAB> should complete it to ollama run

TODO: ollama run gemma2:<TAB> should show all options for parameters. Currently, I have to visit the ollama.com/library to verify. I need help with this as I can easily find a list of all models. If I have the list, I can finish this as well. Please help.

I also need help in figuring out how to include running commands like source <(ollama completion bash) (or fish, etc) during the install process for different OSes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/6938 **Author:** [@pranitbauva1997](https://github.com/pranitbauva1997) **Created:** 9/24/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/auto-completion-cli` --- ### 📝 Commits (1) - [`9864038`](https://github.com/ollama/ollama/commit/986403875054e6b687f9df006256e7d9ed045f08) add CLI completion for commands ### 📊 Changes **1 file changed** (+66 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+66 -0) </details> ### 📄 Description For example, `ollama ru<TAB>` should complete it to `ollama run` TODO: `ollama run gemma2:<TAB>` should show all options for parameters. Currently, I have to visit the ollama.com/library to verify. I need help with this as I can easily find a list of all models. If I have the list, I can finish this as well. Please help. I also need help in figuring out how to include running commands like `source <(ollama completion bash)` (or fish, etc) during the install process for different OSes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:53:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#12263