Skip to content

index

Terminal window
pkm index
pkm index --scope project
pkm index --scope global
pkm index --scope all

index performs a full rebuild. It scans Markdown files, parses frontmatter, extracts links, resolves references, and repopulates SQLite.

Run pkm index after:

  • Creating notes
  • Editing notes outside pkm
  • Moving or renaming files
  • Pulling Markdown changes from git

Hidden and internal directories are skipped, including .pkm/, .git/, and editor config directories.

The index can always be rebuilt. Commit Markdown files and type definitions, not .pkm/.index/.