Skip to content

First-party source

Desktop command contract: Obsidian CLI, retrieved 2026-08-29 EDT. See the dated source ledger.

Publish

Fresh

Manage Obsidian Publish from inside the desktop app: site info, change status, add, remove, and open files on the published site. To publish without the desktop app, use Headless Publish and the standalone ob command.

Commands for Obsidian Publish.

publish:site

Show publish site info (slug, URL).

publish:list

List published files.

bash
total              # return published file count

publish:status

List publish changes.

bash
total              # return change count
new                # show new files only
changed            # show changed files only
deleted            # show deleted files only

publish:add

Publish a file or all changed files (default: active file).

bash
file=<name>        # file name
path=<path>        # file path

changed            # publish all changed files

publish:remove

Unpublish a file (default: active file).

bash
file=<name>        # file name
path=<path>        # file path

publish:open

Open file on published site (default: active file).

bash
file=<name>        # file name
path=<path>        # file path

See also

Unofficial SOP mirror. Built for terminal-driven and agentic Obsidian workflows.