| name | obsidian |
| description | Manage your Obsidian vault from the terminal. Search notes, create entries, link knowledge, and query your second brain. |
| version | 1.0.0 |
| author | joyboy257 |
| license | MIT |
| prerequisites | {"env_vars":["OBSIDIAN_VAULT_PATH"]} |
| metadata | {"hermes":{"tags":["obsidian","notes","knowledge-base","markdown"]}} |
obsidian
Access your Obsidian vault without opening the app.
Setup
- Set your vault path:
export OBSIDIAN_VAULT_PATH="$HOME/notes/vault"
- Enable the Obsidian REST API plugin:
- Settings → Community Plugins → Enable "REST API"
- Note the local URL (default:
http://localhost:27123)
Install
pip install obsidian-cli
Usage
ls "$OBSIDIAN_VAULT_PATH" | grep -i "query"
cat > "$OBSIDIAN_VAULT_PATH/daily/$(date +%Y-%m-%d).md" << 'EOF'
EOF
cat "$OBSIDIAN_VAULT_PATH/notes/topic.md"
grep -r "concept" "$OBSIDIAN_VAULT_PATH" --include="*.md" -l
Using the REST API
curl "http://localhost:27123/vault/?vault=my-vault"
curl "http://localhost:27123/vault/note.md?vault=my-vault"
Daily Notes Workflow
TODAY=$(date +%Y-%m-%d)
PATH="$OBSIDIAN_VAULT_PATH/daily/$TODAY.md"
if [ ! -f "$PATH" ]; then
echo "# $TODAY" > "$PATH"
fi
cat "$PATH"