Skip to content

Add env pull yes confirmation flag#3833

Closed
gonzaloriestra wants to merge 1 commit into
gdt-hydrogen-deploy-yesfrom
gdt-hydrogen-env-pull-yes
Closed

Add env pull yes confirmation flag#3833
gonzaloriestra wants to merge 1 commit into
gdt-hydrogen-deploy-yesfrom
gdt-hydrogen-env-pull-yes

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes https://github.com/shop/issues-develop/issues/22877

shopify hydrogen env pull only had --force for skipping local .env merge confirmation, which was unclear for agent confirmation flows.

WHAT is this pull request doing?

Adds --yes to hydrogen env pull as an explicit confirmation flag for writing local environment changes.

HOW to test your changes?

Use a linked Hydrogen project with an existing local .env file:

shopify hydrogen env list --path ./my-hydrogen-app
shopify hydrogen env pull --path ./my-hydrogen-app --env preview --yes

The pull command should update the local env file without the merge confirmation prompt.

Post-merge steps

None.

gonzaloriestra commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@shopify

shopify Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your gdt-hydrogen-env-pull-yes branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment July 3, 202612:12 PM

Learn more about Hydrogen's GitHub integration.

Add --yes to hydrogen env pull as an explicit agent-friendly bypass for the existing .env merge confirmation.\n\nThe existing --force behavior remains intact, and both flags now skip only the prompt shown when a local env file exists and would change. Pulling into a missing file, no-change detection, missing storefront handling, and secret-variable warnings are unchanged.\n\nTests cover the new --yes path alongside the existing --force behavior. The Oclif manifest and changeset are updated for the new flag.\n\nCloses shop/issues-develop#22877
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-env-pull-yes branch from f64cea7 to 56f192c Compare July 3, 2026 12:10
@gonzaloriestra gonzaloriestra force-pushed the gdt-hydrogen-deploy-yes branch from 328151f to 13f091b Compare July 3, 2026 12:10
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.

1 participant