initialize

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitializeCmd = &cobra.Command{
	Use:   "initialize",
	Short: "Initialize configuration and memory directory",
	Long: "\nCreates default configuration file and memory directory.\n\n" +
		"The initialize command sets up the Agentic Memorizer by creating a default configuration " +
		"file and the memory directory where you'll store files for analysis and indexing.\n\n" +
		"By default, runs an interactive TUI wizard. Use --unattended for scripted setup.\n\n" +
		"After initialization, start the daemon manually with 'memorizer daemon start' " +
		"or set up as a system service for automatic management (recommended for production).\n\n" +
		"By default, configuration and data files are stored in ~/.memorizer/. " +
		"You can customize this location by setting the MEMORIZER_APP_DIR environment variable " +
		"before running initialize.",
	Example: `  # Interactive initialization (TUI wizard)
  memorizer initialize

  # Unattended initialization with environment variable
  memorizer initialize --unattended \
    --use-env-semantic-api-key \
    --start-falkordb-docker \
    --integrations claude-code-hook,claude-code-mcp

  # Unattended with explicit API key and custom database
  memorizer initialize --unattended \
    --semantic-api-key sk-... \
    --graph-database my-project \
    --integrations claude-code-hook

  # Using Gemini as semantic provider
  memorizer initialize --unattended \
    --semantic-provider gemini \
    --use-env-semantic-api-key \
    --start-falkordb-podman

  # Enable embeddings with OpenAI (default provider)
  memorizer initialize --unattended \
    --use-env-semantic-api-key \
    --enable-embeddings \
    --use-env-embeddings-api-key \
    --start-falkordb-docker

  # Enable embeddings with Voyage AI
  memorizer initialize --unattended \
    --use-env-semantic-api-key \
    --enable-embeddings \
    --embeddings-provider voyage \
    --embeddings-model voyage-code-3 \
    --use-env-embeddings-api-key \
    --start-falkordb-docker

  # Force overwrite existing config
  memorizer initialize --force`,
	PreRunE: validateInit,
	RunE:    runInit,
}

Functions

This section is empty.

Types

type StartupInfo added in v0.13.0

type StartupInfo struct {
	InstallChoice int // 0=InstallUser, 1=InstallSystem, 2=InstallSkip
	StartChoice   int // 0=StartNow, 1=StartLater (only relevant for InstallUser)
}

StartupInfo contains information about service-manager setup choices

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL