[cli] Option to disable launching storybook after installation #25510
Replies: 4 comments 4 replies
-
I really need this feature |
Beta Was this translation helpful? Give feedback.
-
What I did for my own Storybook automation project is to skip init and instead just install the packages that it normally installs, and then set up the script to run |
Beta Was this translation helpful? Give feedback.
-
You can see here that the dev command only executes when the env variables |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Hello! I'm working on a script that automatically creates a React project with Storybook, and the way to add Storybook to the project is to run
npx storybook@latest init --yes
. Unfortunately, this command always launches storybook after installing, which is not appropriate for a CLI script that is supposed to do other things after installing Storybook.Describe the solution you'd like
Suggest adding an option to the CLI script that will disable launching Storybook automatically, e.g.
npx storybook@latest init --no-launch
Describe alternatives you've considered
Another option I considered is to import
@storybook/cli
package as an npm dependency in the script, and use its API to install Storybook without launching it afterwards. Unfortunately, the package doesn't provide a public API for that, and generally doesn't look like it's supposed to be used this way.Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions