Anything you can do in Obsidian you can do from the command line.Obsidian CLI is now available in 1.12 (early access).