TL;DR
Several GitHub repositories offer CLI tools for Obsidian to automate note creation, searching, and metadata management directly from the terminal.
Top Obsidian CLI Repositories
-
obsidian-cli: A comprehensive Rust-based tool that allows you to create notes, move files, and append content to specific sections from your shell.
-
obsidian-remote-cli: This tool interfaces with the Local REST API plugin, enabling you to trigger Obsidian commands and retrieve note content remotely.
-
obsidian-export: A specialized Rust tool designed to export Obsidian vaults into standard Markdown (converting Wikilinks to standard links), which is ideal for GitHub Actions or static site generators like Quartz.
-
obsidian-tools: A Python library and CLI for programmatically interacting with your vault, focusing on metadata extraction and vault statistics.
Scripts & Automation Tools
-
obsidian-utilities: A collection of Bash scripts for bulk processing notes and managing YAML frontmatter.
-
obsidian-scripts: JavaScript snippets designed for the Templater or QuickAdd plugins that can also be adapted for Node.js environments.
-
obsidian-git: While primarily a plugin, the underlying logic is often used in custom scripts to automate “Vault-to-GitHub” synchronization on a schedule.
Key CLI Use Cases
-
Note Creation: Quickly pipe terminal output into a new daily note or log file.
-
Vault Maintenance: Use
greporsedvia CLI tools to find and replace text across thousands of files faster than the built-in search. -
CI/CD Integration: Automatically update your Quartz or Hugo sites by running export scripts whenever you push to GitHub.