Skip to content

obx search

The obx search command allows you to perform full-text searches across your Obsidian vault. It’s optimized for speed and provides output formats suitable for both human reading and scripting.

Terminal window
obx search <query> [flags] [vault_path]

Or, if an active vault is configured:

Terminal window
obx search "machine learning"
FlagShorthandDescriptionDefault
--limit-lMaximum number of results to return10
--dir-dRestrict search to a specific directory inside the vault
Terminal window
obx search "meeting notes"

Output:

Found 3 results:
- meetings/2023-10-25.md
- meetings/2023-10-26.md
- projects/website-redesign.md

To limit your search to a specific folder (e.g., projects):

Terminal window
obx search "TODO" -d projects

To get only the top 5 matches:

Terminal window
obx search "API key" -l 5