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

Fix CLI flags for init command #516

Merged
merged 6 commits into from
Feb 16, 2023
Merged

Fix CLI flags for init command #516

merged 6 commits into from
Feb 16, 2023

Conversation

frandiox
Copy link
Contributor

The command npm create @shopify/hydrogen@latest --template hello-world --path hydrogen-storefront was not working correctly due to an issue when passing flags to the init command (we were expecting --template=hello-world syntax instead).

This PR fixes the flags and also adds --install-deps and --no-install-deps so that the command can be run without showing any prompt.

@frandiox frandiox requested review from wizardlyhel and a team February 15, 2023 08:38
Copy link
Contributor

@cartogram cartogram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few suggestions, thanks for doing this 👍

packages/cli/src/commands/hydrogen/init.ts Outdated Show resolved Hide resolved
packages/cli/src/commands/hydrogen/init.ts Outdated Show resolved Hide resolved
packages/cli/src/utils/flags.ts Outdated Show resolved Hide resolved
packages/cli/src/commands/hydrogen/init.ts Show resolved Hide resolved
@frandiox frandiox merged commit 061d1e1 into 2023-01 Feb 16, 2023
@frandiox frandiox deleted the fd-cli-flags-fix branch February 16, 2023 09:41
@github-actions github-actions bot mentioned this pull request Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants