[PR #2942] [CLOSED] [FEAT] Add init command #21548

Closed
opened 2026-04-19 15:42:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2942
Author: @m4tt72
Created: 3/5/2024
Status: Closed

Base: mainHead: feat/add-init-command


📝 Commits (2)

  • 13e8b59 feat: add init command
  • b7eac66 chore(DOCS): Update documentation to highlight the usage of the 'init' command

📊 Changes

3 files changed (+39 additions, -13 deletions)

View changed files

📝 README.md (+3 -11)
📝 cmd/cmd.go (+34 -0)
📝 docs/import.md (+2 -2)

📄 Description

Inspired by docker init, this command will create a new Modelfile in the current directory.

If the file already exists, it will ask for confirmation before overwriting it.


🔄 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/2942 **Author:** [@m4tt72](https://github.com/m4tt72) **Created:** 3/5/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/add-init-command` --- ### 📝 Commits (2) - [`13e8b59`](https://github.com/ollama/ollama/commit/13e8b59f04624d46ea9b07f15e8f6bfdb7b3dce6) feat: add init command - [`b7eac66`](https://github.com/ollama/ollama/commit/b7eac66f026860dba07e8ceeffaed0945a090750) chore(DOCS): Update documentation to highlight the usage of the 'init' command ### 📊 Changes **3 files changed** (+39 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -11) 📝 `cmd/cmd.go` (+34 -0) 📝 `docs/import.md` (+2 -2) </details> ### 📄 Description Inspired by `docker init`, this command will create a new `Modelfile` in the current directory. If the file already exists, it will ask for confirmation before overwriting it. --- <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-19 15:42:44 -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#21548