Install Node.js
Already have Node.js? If you installed it for a previous tutorial, skip this step. Run
node --version in your terminal to check — you should see a version number like v22.x.x.- Windows
- macOS
- Go to nodejs.org
- Click the big green LTS button to download the installer
- Open the downloaded
.msifile - Click Next through all the screens — the default settings are fine
- Click Install, then Finish
How do I know it worked?
How do I know it worked?
Open your terminal and type:You should see a version number like
v22.x.x. If you see an error, try closing and reopening your terminal, then run the command again.Install Gemini CLI
Already have Gemini CLI? If you installed it for a previous tutorial, skip this step. Just run
gemini in your terminal to check it still works.- Choose “Sign in with Google”
- A browser window will open — sign in with your Google account
- Come back to the terminal when it says you’re connected
Free tier: 60 requests per minute, 1,000 requests per day — more than enough for this tutorial and everyday use.
'npm' is not recognised
'npm' is not recognised
This means Node.js isn’t installed correctly. Go back and reinstall Node.js. After reinstalling, close your terminal completely and open a new one before trying again.
Permission denied error
Permission denied error
Windows: Close PowerShell and reopen it by right-clicking and choosing “Run as Administrator”. Then try the install command again.macOS: Add Enter your computer password when prompted (you won’t see characters as you type — that’s normal).
sudo before the command:Install Obsidian and enable the CLI
Already done this? If you installed the Obsidian CLI plugin in a previous tutorial, skip this step. Run
obsidian version in your terminal to check — you should see a version number.- Windows
- macOS
- Go to obsidian.md/download and click Download for Windows
- Run the installer and follow the prompts
- Open Obsidian — if this is your first time, click Create new vault, give it a name (e.g. “My Notes”), and choose where to save it
Already have Obsidian? Make sure you are running version 1.12.4 or later. Go to Settings → General → check the version number at the top. If you need to update, download the latest installer from obsidian.md/download.
- In Obsidian, open Settings (gear icon in the bottom-left)
- Go to General
- Find Command line interface and toggle it on
- Follow the prompt to register the CLI
- Close and reopen your terminal for the changes to take effect
'obsidian' command not found
'obsidian' command not found
Restart your terminal after enabling the CLI — the PATH changes only take effect in new terminal windows.macOS: Check that your If it is missing, add it manually, then restart your terminal.Windows: Make sure you are using the Obsidian 1.12.4+ installer. The installer adds a terminal redirector that allows the CLI to work. If the command still isn’t found, try restarting your computer.
~/.zprofile file contains this line:Obsidian must be running
Obsidian must be running
The CLI connects to the running Obsidian app. Make sure Obsidian is open before running CLI commands. If Obsidian is not running, the first CLI command should launch it automatically — but this may take a few seconds.
I have multiple vaults
I have multiple vaults
By default, the CLI uses the vault in your current terminal directory, or the most recently active vault. To target a specific vault, add
vault=<name> before your command:Install Wispr Flow (optional)
This step is optional. Wispr Flow lets you speak instead of type — handy if you prefer talking over typing. Skip this step if you’d rather type your prompts.
- Sign up at wisprflow.ai/r?CHAN115
- Download and install the app for your operating system
- Configure settings — enable these options for the best experience:
- Experimental > Command Mode — Enable advanced voice commands
- Press Enter Command — Automatically press enter when you say “press enter”
- Bulk Import — Import snippets and dictionary items
What is Wispr Flow?
What is Wispr Flow?
Wispr Flow is a voice-to-text tool that lets you dictate instead of type. It works in any application, including your terminal. Instead of typing a long prompt to Gemini CLI, you can just say it out loud. This is especially useful if you find typing slow or tiring.
Check your vault
Let’s make sure Gemini CLI can talk to your Obsidian vault. Start Gemini CLI:Then say or type this prompt:Gemini CLI should return information about your vault — the number of files, folders, and possibly the vault name and path. If it does, everything is connected.
Copy this command
Say this or copy this prompt
Multiple vaults? If you have more than one vault, Obsidian CLI uses your default vault. You can switch vaults in the Obsidian app settings.
Create sample notes if your vault is empty
If you have a fresh vault with no notes, give Gemini CLI these prompts one at a time. This creates sample notes so the tutorial has material to work with.
Say this or copy this prompt
Say this or copy this prompt
Say this or copy this prompt
Say this or copy this prompt
Say this or copy this prompt
Already have notes? Skip this step. These sample notes are only for people starting with an empty vault so the tutorial has something to work with.
Verify your setup
Node.js installed
Node.js installed
Running
node --version in your terminal shows a version number.Gemini CLI installed and signed in
Gemini CLI installed and signed in
Running
gemini in your terminal starts the AI assistant and shows a prompt where you can type.Obsidian CLI is working
Obsidian CLI is working
Running
obsidian version in your terminal shows a version number.Vault info is visible
Vault info is visible
Asking Gemini CLI about your vault returns file and folder counts.
Wispr Flow installed (optional)
Wispr Flow installed (optional)
You can speak and see text appear in your terminal.
All set? Head to Search, audit, and organise to start exploring your vault.