CLI reference
The repository ships two Node scripts: a doctor that validates the Obsidian CLI, and an installer that stages host packages.
obsidian-cli.mjs#
node scripts/obsidian-cli.mjs doctordoctor is the only subcommand. It checks the installed official Obsidian CLI and reports whether the setup is usable. It never installs Obsidian, changes the CLI setting, or touches a vault.
install.mjs#
node scripts/install.mjs --host <host> --scope <scope> [--project <path>] [--confirm]| Flag | Values | Meaning |
|---|---|---|
--host | claude, codex, agy, opencode, openclaw, hermes, agentskills | Target host to stage. Required. |
--scope | user, project | Install for the user, or stage into a project. Required. |
--project | absolute path | Project root for --scope project. Defaults to the current directory. |
--confirm | — | Apply the plan. Without it the command is a dry run. |
By default every invocation is a dry run: it prints each destination and a content-bound plan and changes nothing. Add --confirm to write the staged package.
An install plan can never escape the selected host root — the installer rejects any plan whose destination would fall outside it.
See Host packaging for what each host receives, and Installation for the per-host paths.