{"id":4749,"date":"2026-11-19T11:44:51","date_gmt":"2026-11-19T11:44:51","guid":{"rendered":"https:\/\/ifx0.com\/?p=4749"},"modified":"2026-11-19T11:44:54","modified_gmt":"2026-11-19T11:44:54","slug":"ollama-commands","status":"publish","type":"post","link":"https:\/\/ifx0.com\/index.php\/2026\/11\/19\/ollama-commands\/","title":{"rendered":"ollama commands"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Ollama CLI Commands (Run in PowerShell)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These are the commands you type at the normal <code>PS C:\\Users\\kadir&gt;<\/code> prompt to manage models and the Ollama service itself.<a href=\"https:\/\/docs.ollama.com\/cli\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/itsfoss.com\/ollama-commands\/?utm_source=thenextgentechinsider.com&amp;utm_medium=referral&amp;utm_campaign=post_article#1\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td><code>ollama --help<\/code><\/td><td><strong>Shows every available command.<\/strong> This is the best place to start if you are ever unsure.<\/td><\/tr><tr><td><code>ollama list<\/code> (or <code>ollama ls<\/code>)<\/td><td><strong>Lists all models<\/strong> you have downloaded locally.<\/td><\/tr><tr><td><code>ollama pull &lt;model&gt;<\/code><\/td><td><strong>Downloads a model<\/strong> from the Ollama library without running it.<\/td><\/tr><tr><td><code>ollama rm &lt;model&gt;<\/code><\/td><td><strong>Removes a downloaded model<\/strong> to free up disk space.<\/td><\/tr><tr><td><code>ollama ps<\/code><\/td><td><strong>Shows which models are currently running<\/strong> in memory.<\/td><\/tr><tr><td><code>ollama stop &lt;model&gt;<\/code><\/td><td><strong>Stops a running model<\/strong> process.<\/td><\/tr><tr><td><code>ollama show &lt;model&gt;<\/code><\/td><td><strong>Displays detailed information<\/strong> about a specific model (parameters, template, etc.).<\/td><\/tr><tr><td><code>ollama serve<\/code><\/td><td><strong>Starts the Ollama background service<\/strong> as a local API endpoint.<\/td><\/tr><tr><td><code>ollama create -f Modelfile<\/code><\/td><td><strong>Creates a custom model<\/strong> from a <code>Modelfile<\/code> (this is how you would bake in a <code>SYSTEM<\/code> prompt).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">&#x2328;&#xfe0f; In-Chat Slash Commands (Type at the <code>&gt;&gt;&gt;<\/code> Prompt)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once you are inside a conversation (after running <code>ollama run llama3.2<\/code>), these commands control the session itself. They are especially useful for managing context.<a href=\"https:\/\/www.npmjs.com\/package\/@fnet\/ollama-chat\/v\/0.1.7?activeTab=readme#1\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/dl.21ic.com\/download\/j05-1015282.html\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td><strong><code>\/help<\/code><\/strong> (or <code>\/?<\/code>)<\/td><td><strong>Displays the available in-chat commands.<\/strong><\/td><\/tr><tr><td><strong><code>\/clear<\/code><\/strong><\/td><td><strong>Clears the current conversation context.<\/strong> Use this to make the model &#8220;forget&#8221; earlier messages, which is useful when switching topics to save memory and avoid confusion.<\/td><\/tr><tr><td><strong><code>\/bye<\/code><\/strong> (or <code>\/exit<\/code>, <code>\/quit<\/code>)<\/td><td><strong>Exits the chat session<\/strong> and returns you to the PowerShell prompt.<\/td><\/tr><tr><td><strong><code>\/model &lt;name&gt;<\/code><\/strong> (or <code>\/load<\/code>)<\/td><td><strong>Switches to a different model<\/strong> without leaving the current session.<\/td><\/tr><tr><td><strong><code>\/save &lt;name&gt;<\/code><\/strong><\/td><td><strong>Saves your current chat session<\/strong> to a file.<\/td><\/tr><tr><td><strong><code>\/show<\/code><\/strong><\/td><td><strong>Shows the current session information<\/strong> or model details.<\/td><\/tr><tr><td><strong><code>\"\"\"<\/code> (Triple Quotes)<\/strong><\/td><td>While not a slash command, wrapping your text in <code>\"\"\"<\/code> lets you <strong>paste multiline input<\/strong> (like code or a long abstract) directly into the chat.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ollama CLI Commands (Run in PowerShell) These are the commands you type at the normal PS C:\\Users\\kadir&gt; prompt to manage models and the Ollama service itself. Command What it does ollama &#8211;help Shows every available command. This is the best <a href=\"https:\/\/ifx0.com\/index.php\/2026\/11\/19\/ollama-commands\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4749","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/posts\/4749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/comments?post=4749"}],"version-history":[{"count":1,"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/posts\/4749\/revisions"}],"predecessor-version":[{"id":4750,"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/posts\/4749\/revisions\/4750"}],"wp:attachment":[{"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/media?parent=4749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/categories?post=4749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ifx0.com\/index.php\/wp-json\/wp\/v2\/tags?post=4749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}