Add 6 new command groups and expand existing sections
Adds CSS Snippets, Commands & Hotkeys, Obsidian Bases, History, Workspace & Tabs, and Diff sections to command-reference.md. Expands existing sections with missing commands (search:context, daily:path, random, rename, bookmark add, plugins:restrict, theme management, dev DOM/CSS/CDP tools, restart). Documents all 8 output format options. Updates SKILL.md command table and count to 130+. Bumps version to 1.2.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,25 +55,31 @@ If omitted, the CLI targets the most recently active vault.
|
||||
|
||||
## Command Overview
|
||||
|
||||
The CLI provides **100+ commands** across these groups:
|
||||
The CLI provides **130+ commands** across these groups:
|
||||
|
||||
| Group | Key Commands | Purpose |
|
||||
|---|---|---|
|
||||
| **files** | `read`, `create`, `append`, `prepend`, `move`, `delete`, `files`, `folders`, `file` | Note CRUD and file discovery |
|
||||
| **daily** | `daily`, `daily:read`, `daily:append`, `daily:prepend` | Daily note operations |
|
||||
| **search** | `search` | Full-text vault search with scoping and JSON output |
|
||||
| **files** | `read`, `create`, `append`, `prepend`, `move`, `rename`, `delete`, `files`, `folders`, `file`, `random` | Note CRUD and file discovery |
|
||||
| **daily** | `daily`, `daily:read`, `daily:append`, `daily:prepend`, `daily:path` | Daily note operations |
|
||||
| **search** | `search`, `search:context` | Full-text search; `search:context` returns matching lines |
|
||||
| **properties** | `properties`, `property:read`, `property:set`, `property:remove`, `aliases` | Frontmatter/metadata management |
|
||||
| **tags** | `tags`, `tag` | Tag listing, counts, and filtering |
|
||||
| **tasks** | `tasks`, `task` | Task querying, filtering, and toggling |
|
||||
| **links** | `backlinks`, `links`, `unresolved`, `orphans`, `deadends` | Graph and link analysis |
|
||||
| **bookmarks** | `bookmarks` | Bookmark management |
|
||||
| **bookmarks** | `bookmarks`, `bookmark` | List and add bookmarks |
|
||||
| **templates** | `templates`, `template:read`, `template:insert` | Template listing, rendering, insertion |
|
||||
| **plugins** | `plugins`, `plugin:enable`, `plugin:disable`, `plugin:install`, `plugin:uninstall`, `plugin:reload` | Plugin management |
|
||||
| **plugins** | `plugins`, `plugin`, `plugin:enable`, `plugin:disable`, `plugin:install`, `plugin:uninstall`, `plugins:restrict` | Plugin management |
|
||||
| **sync** | `sync`, `sync:status`, `sync:history`, `sync:read`, `sync:restore`, `sync:deleted` | Obsidian Sync operations |
|
||||
| **themes** | `themes`, `themes versions` | Theme management |
|
||||
| **dev** | `dev:screenshot`, `eval`, `dev:debug`, `dev:console`, `dev:errors` | Developer/debugging tools |
|
||||
| **vault** | `vault`, `vaults`, `version` | Vault info and metadata |
|
||||
| **other** | `outline`, `wordcount`, `recents`, `reload` | Utility commands |
|
||||
| **themes** | `themes`, `theme`, `theme:set`, `theme:install`, `theme:uninstall` | Theme management |
|
||||
| **snippets** | `snippets`, `snippets:enabled`, `snippet:enable`, `snippet:disable` | CSS snippet management |
|
||||
| **commands** | `commands`, `command`, `hotkeys`, `hotkey` | Execute Obsidian commands by ID; inspect hotkeys |
|
||||
| **bases** | `bases`, `base:query`, `base:views`, `base:create` | Obsidian Bases (v1.12+ database feature) |
|
||||
| **history** | `history`, `history:list`, `history:read`, `history:restore` | File version recovery (File Recovery plugin) |
|
||||
| **workspace** | `workspace`, `tabs`, `tab:open` | Workspace layout and tab management |
|
||||
| **diff** | `diff` | Compare local vs sync file versions |
|
||||
| **dev** | `eval`, `dev:screenshot`, `dev:debug`, `dev:console`, `dev:errors`, `dev:css`, `dev:dom`, `devtools` | Developer/debugging tools |
|
||||
| **vault** | `vault`, `vaults`, `version`, `reload`, `restart` | Vault info and app control |
|
||||
| **other** | `outline`, `wordcount`, `recents` | Utility commands |
|
||||
|
||||
## Quick Reference — Most Common Commands
|
||||
|
||||
@@ -200,6 +206,18 @@ obsidian sync:history path="important.md" # Version history
|
||||
obsidian sync:restore path="important.md" version=3 # Rollback
|
||||
```
|
||||
|
||||
### Execute Obsidian Commands
|
||||
|
||||
```bash
|
||||
# Find a command ID, then execute it
|
||||
obsidian commands | grep "graph"
|
||||
obsidian command id="graph:open"
|
||||
|
||||
# Open settings, trigger a plugin action
|
||||
obsidian command id="app:open-settings"
|
||||
obsidian command id="dataview:dataview-force-refresh-views"
|
||||
```
|
||||
|
||||
## Tips
|
||||
|
||||
1. **Paths are vault-relative** — use `folder/note.md`, not absolute filesystem paths.
|
||||
|
||||
Reference in New Issue
Block a user