memories.sh
CLI Reference

memories edit

Edit an existing memory.

memories edit [id] [options]

Edit a memory's content, type, or tags. Opens your default editor for interactive editing, or accepts inline changes via options.

Arguments

ArgumentDescription
idMemory ID to edit (interactive picker if omitted in a TTY)

Options

OptionDescription
-c, --content <content>New content (skips editor)
-t, --tags <tags>New comma-separated tags
--type <type>New memory type: rule, decision, fact, note

Examples

Edit interactively (opens picker, then editor):

memories edit

Edit a specific memory by ID:

memories edit abc123def456

Update content inline:

memories edit abc123def456 --content "Updated rule text"

Change type and tags:

memories edit abc123def456 --type decision --tags "architecture,database"

Behavior

  • If no ID is provided and the terminal is interactive, an arrow-key selection picker is shown
  • If no inline options are given, opens the memory in $EDITOR (falls back to $VISUAL, then vi)
  • Detects unchanged content and skips the update
  • The memory's updated_at timestamp is set on save