Command Reference
All commands are available under the pkm binary.
| Command | Purpose |
|---|---|
pkm init | Create library internals and seed default types |
pkm capture | Save a quick fleeting note |
pkm save | Save a structured note from a template |
pkm index | Rebuild the SQLite index from Markdown |
pkm search | Search indexed notes |
pkm backlinks | Query incoming and outgoing links |
pkm heat | Compute and show related notes |
pkm moc | Generate a Map of Content |
pkm type | Manage note types and templates |
Most commands accept --scope:
--scope global--scope project--scope allWrite commands use global or project. Read commands can usually search all discovered libraries when --scope is omitted.
Rebuild Before Discovery
Section titled “Rebuild Before Discovery”If notes changed outside pkm, run:
pkm indexThen search, backlinks, and heat operate on fresh data.