Obsidian CLI: Open, Search, Create or Edit Notes

I am Obsidian user and lover. I’ve made a CLI tool that lets you open, search, create and update notes from the terminal. I originally made it for myself to quickly open or create notes and as a way to learn a new programming language (Go). I think it might be useful to others so I have made it super simple to install and use, all instructions are here: Obsidian CLI.

Once you’ve installed it and set up your vault, you can open an existing note like this

obs open "{file}"

Create note like this:

obs create "{file}" --content "abcde"

Or edit note like this:

obs create "{file}" --content "abcde" --overwrite
obs create "{file}" --content "abcde" --append

Please comment if you have any questions, feedback or suggestions!

7 Likes

This is perfect. It really enables you to hotkey and speed up new note creation to another level.

It would be awesome if you could add view only switch that would be optimized for viewing a single note.

Opens md only. Opens new instance of obsidian. Esc key closes window.

1 Like