index
pkm indexpkm index --scope projectpkm index --scope globalpkm index --scope allindex performs a full rebuild. It scans Markdown files, parses frontmatter, extracts links, resolves references, and repopulates SQLite.
When To Run It
Section titled “When To Run It”Run pkm index after:
- Creating notes
- Editing notes outside pkm
- Moving or renaming files
- Pulling Markdown changes from git
What It Skips
Section titled “What It Skips”Hidden and internal directories are skipped, including .pkm/, .git/, and editor config directories.
Source Of Truth
Section titled “Source Of Truth”The index can always be rebuilt. Commit Markdown files and type definitions, not .pkm/.index/.