Overview
Thememory init command initializes a new memory vault in your memory home directory. This creates the necessary directory structure for storing memories.
Syntax
Description
This command creates the vault directory at$MEMORY_HOME/vault (or ~/.memory/vault if MEMORY_HOME is not set). The vault is where all your project memories are stored.
If the directory already exists, the command will succeed silently.
Examples
Initialize a new vault
Initialize with custom MEMORY_HOME
What Gets Created
The command creates:- The memory home directory (if it doesn’t exist)
- A
vault/subdirectory where memories are stored
Related Commands
memory config- View memory home location and configurationmemory config set-home- Set a persistent memory home pathmemory save- Save your first memory after initialization
You only need to run
memory init once. If you’re using memory config set-home or the MEMORY_HOME environment variable, the directories will be created automatically.