mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
docs(obsidian-cli): add platform setup notes for WSL and headless Linux
- WSL: use Obsidian.com (Electron console stub) instead of Obsidian.exe, which silently drops stdout/stderr on WSL due to GUI subsystem mismatch - Headless Linux: set DISPLAY to Xvfb display before running commands, otherwise CLI fails with 'unable to find Obsidian' Closes #93, closes #62
This commit is contained in:
@@ -7,6 +7,24 @@ description: Interact with Obsidian vaults using the Obsidian CLI to read, creat
|
||||
|
||||
Use the `obsidian` CLI to interact with a running Obsidian instance. Requires Obsidian to be open.
|
||||
|
||||
## Platform setup
|
||||
|
||||
> [!info] WSL / Windows
|
||||
> When invoking from WSL, point your wrapper at `Obsidian.com` (the Electron console stub), not `Obsidian.exe`. The `.exe` is a GUI-subsystem binary and silently drops stdout/stderr, so subcommands appear to succeed but produce no output:
|
||||
>
|
||||
> ```bash
|
||||
> # ~/bin/obsidian
|
||||
> "/mnt/c/Program Files/Obsidian/Obsidian.com" "$@"
|
||||
> ```
|
||||
|
||||
> [!info] Headless Linux
|
||||
> On Linux without a display (servers, Docker, CI), run Obsidian under Xvfb and set `DISPLAY` to match:
|
||||
>
|
||||
> ```bash
|
||||
> Xvfb :99 -screen 0 1024x768x24 &
|
||||
> DISPLAY=:99 obsidian version
|
||||
> ```
|
||||
|
||||
## Command reference
|
||||
|
||||
Run `obsidian help` to see all available commands. This is always up to date. Full docs: https://help.obsidian.md/cli
|
||||
|
||||
Reference in New Issue
Block a user