Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always initialize the version that the CLI is invoked as, instead of just latest or next #25501

Closed
Tracked by #25293
ndelangen opened this issue Jan 8, 2024 · 0 comments · Fixed by #25517
Closed
Tracked by #25293

Comments

@ndelangen
Copy link
Member

ndelangen commented Jan 8, 2024

normal cases:

npx storybook@latest init
npx storybook@next init
npx storybook@8.4.0 init
npx storybook@^8.4.0 init

// with -p
npx -p @storybook/cli@8.4.0 storybook

// with env
FOO=5 npx storybook@8.4.0 storybook

// pnpm
pnpm dlx storybook@^8.4.0 init
pnpm dlx --package @storybook/cli@8.4.0 storybook init

// yarn
yarn dlx storybook@^8.4.0 init
yarn dlx -p @storybook/cli@8.4.0 storybook init

invariant cases:

npx storybook init

edge cases:

node ../../../../mono/storybook/code/lib/cli/bin init
node ../../../../mono/storybook/code/lib/cli/dist/index.js init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant