Skip to content

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

Closed

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions