Skip to content

Commit 52ece7d

Browse files
committed
docs(spec): regenerate the kernel/cli-extension reference page
Regenerated with `pnpm --filter @objectstack/spec gen:docs` after a spec build; the page lifts the module TSDoc, so only step 2 moves. Claude-Session: https://claude.ai/code/session_01UtnxvdiN376GF3sgXwAw4d Co-authored-by: Claude <noreply@anthropic.com>
1 parent a178c1e commit 52ece7d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎content/docs/references/kernel/cli-extension.mdx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ built-in plugin system.
1717

1818
1. **Declare** — Plugin's `package.json` includes an `oclif` config section
1919
declaring its commands directory and any topics.
20-
2. **Discover** — The main CLI (`@objectstack/cli`) lists the plugin in its
21-
`oclif.plugins` array, or users install it via `os plugins install <pkg>`.
20+
2. **Discover** — oclif loads a plugin that the CLI's own `package.json`
21+
lists in both `oclif.plugins` and `dependencies`. `@objectstack/cli`
22+
lists none and ships no plugin manager, so `os plugins` is not a
23+
command. To add a plugin's commands to `os`, build an `os` distribution:
24+
a package whose own `package.json` lists the plugin in both places.
2225
3. **Load** — oclif automatically discovers and registers all Command classes
2326
exported from the plugin's commands directory.
2427

0 commit comments

Comments
 (0)