You’ll need to use the installer’s executable file along with the /DIR parameter to specify your desired directory. For example, if you’re using windows & ollamasetup.exe and you want to install the software in a folder called ollama on your D: drive, you would enter the following command: ollamasetup.exe /DIR="d:/ollama"
To know all parameters type cd to the directory of ollamasetup and type ollamasetup.exe /help or ollamasetup.exe /?

One thought on “Specify custom location for Ollama CLI”