Skip to content

hoard add

The hoard add command adds data sources without running the full wizard.

Usage

Terminal window
hoard add <path> [options]
hoard add --obsidian <path>
hoard add --notion <path>
hoard add --inbox <path>

Options

OptionDescription
--obsidian <path>Add path as Obsidian vault
--notion <path>Add path as Notion export
--inbox <path>Set agent inbox folder

Examples

Add a Folder

Terminal window
hoard add ~/Documents/Notes

Adds the folder to local_files connector and syncs.

Add Obsidian Vault

Terminal window
hoard add --obsidian ~/Obsidian

Configures the Obsidian connector and syncs.

Add Notion Export

Terminal window
hoard add --notion ~/Downloads/notion-export

Adds a Notion workspace export directory.

Set Agent Inbox

Terminal window
hoard add --inbox ~/.hoard/inbox

Enables the inbox connector and sets the drop folder.

Behavior

Local Files

When adding a path without flags:

  1. Checks if path looks like a Notion export (prompts to confirm)
  2. Adds path to connectors.local_files.paths
  3. Runs sync

Obsidian

When using --obsidian:

  1. Sets connectors.obsidian.vault_path
  2. Enables Obsidian connector
  3. Runs sync

Notion Export

When using --notion:

  1. Sets connectors.notion_export.export_path
  2. Enables Notion connector
  3. Runs sync

Inbox

When using --inbox:

  1. Sets connectors.inbox.path
  2. Enables Inbox connector
  3. Creates the folder if it does not exist
  4. Runs sync

Output

Terminal window
$ hoard add ~/Documents/Notes
Updated config at ~/.hoard/config.yaml
Syncing local_files...
Entities: 42, Chunks: 156, Tombstoned: 0, Errors: 0

Detection

hoard add detects Notion exports automatically:

PatternAuto-Detection
*.zip with “notion” in namePrompts for --notion confirmation
Folder with .html/.md/.csv Notion structurePrompts for --notion confirmation
Regular folderAdds to local_files

Configuration Changes

After running, check your config:

Terminal window
cat ~/.hoard/config.yaml

Example result:

connectors:
local_files:
enabled: true
paths:
- ~/Documents/Notes # Added
- ~/Documents/Work # Existing
obsidian:
enabled: true
vault_path: ~/Obsidian # Added with --obsidian
inbox:
enabled: true
path: ~/.hoard/inbox # Added with --inbox

See Also