grepai init

CLI reference for grepai init

grepai init

Initialize grepai in the current directory

Synopsis

Initialize grepai by creating a .grepai directory with configuration.

This command will:

  • Create .grepai/config.yaml with default settings
  • Prompt for embedding provider (Ollama or OpenAI)
  • Prompt for storage backend (GOB file or PostgreSQL)
  • Add .grepai/ to .gitignore if present
grepai init [flags]

Options

  -b, --backend string    Storage backend (gob, postgres, or qdrant)
  -h, --help              help for init
  -p, --provider string   Embedding provider (ollama, lmstudio, or openai)
      --yes               Use defaults without prompting

SEE ALSO

  • grepai - Semantic code search CLI
Auto generated by spf13/cobra on 6-Feb-2026