Programmatic way to launch Storybook #23128
-
Is there any way to run storybook programmatically? For example: import storybook from "@storybook/api"
storybook({
...some launch options that are usually passed to CLI
}) Many other js projects provide this capability, including webpack, vite and esbuild. I have studied issue #146, but there is no adequate answer to this question. I understand that you can run the storybook cli in nodejs manually in the shell, but it's not very convenient. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not really a public API, but available from storybook/code/lib/core-server/src/build-dev.ts Lines 31 to 33 in 0546301 |
Beta Was this translation helpful? Give feedback.
Not really a public API, but available from
@storybook/core-server
:storybook/code/lib/core-server/src/build-dev.ts
Lines 31 to 33 in 0546301
storybook/code/lib/core-server/src/build-static.ts
Line 44 in 0546301