You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/obsidian-cli/SKILL.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Use the `obsidian` CLI to interact with a running Obsidian instance. Requires Ob
9
9
10
10
## Command reference
11
11
12
-
Run `obsidian help` to see all available commands. This is always up to date. Full docs: https://help.obsidian.md/cli
12
+
Run `obsidian help` to see all available commands. Use `obsidian help <command>` (or `obsidian <command> --help`) for detailed help on a specific command. Full docs: https://help.obsidian.md/cli
For multiline content use `\n` for newline and `\t` for tab.
29
29
30
30
## File targeting
31
31
32
-
Many commands accept `file` or `path` to target a file. Without either, the active file is used.
32
+
Many commands accept `file` or `path` to target a file. Without either:
33
+
-**Content commands** (`read`, `outline`, `append`, `rename`, etc.) default to the active file.
34
+
-**List/aggregation commands** (`aliases`, `properties`, `tags`, `tasks`) default to vault-wide; use the `active` flag to scope them to the active file.
33
35
34
36
-`file=<name>` — resolves like a wikilink (name only, no path or extension needed)
35
37
-`path=<path>` — exact path from vault root, e.g. `folder/note.md`
38
+
-`active` — scope list/aggregation commands to the active file
Use `--copy` on any command to copy output to clipboard. Use `silent` to prevent files from opening. Use `total` on list commands to get a count.
68
+
Commands default to **silent operation** — files are not opened in Obsidian unless you add the `open` flag. Use `--copy` on any command to copy output to clipboard. Use `total` on list commands to get a count.
0 commit comments