Complete Ollama Command Guide

1. Service Management

2. Start, Stop, and Restart Service

3. Interactive Chat Sessions

4. Quick Questions Without Chat Sessions

5. Model Management

6. Advanced Usage

7. Troubleshooting Guide

8. Quick Reference

9. Common Workflows

💡 Pro Tips

  1. Model Selection Strategy:
    • Use ai/phi for quick facts, definitions, and simple tasks
    • Use llama for creative writing, analysis, and complex reasoning
    • Use coder for anything programming-related
  2. Performance Optimization:
    • Restart service weekly: ollama-restart
    • Monitor space usage monthly
    • Remove models you haven't used in 3+ months
  3. Efficient Usage:
    • Use one-time questions for single queries
    • Use interactive sessions for ongoing conversations
    • Exit chat sessions when done to free memory
  4. Troubleshooting First Steps:
    • Always try ollama-restart first
    • Check ollama ps to see what's running
    • Verify service status with brew services list | grep ollama

This guide covers everything you need to effectively use Ollama for AI assistance. Keep it bookmarked for quick reference!