Skip to content

Adds in SHOPIFY_CLI_ENV=development variable to dev.yml#3447

Merged
andguy95 merged 1 commit intomainfrom
an-adds-in-shopfiy-cli-dev-env
Feb 12, 2026
Merged

Adds in SHOPIFY_CLI_ENV=development variable to dev.yml#3447
andguy95 merged 1 commit intomainfrom
an-adds-in-shopfiy-cli-dev-env

Conversation

@andguy95
Copy link
Collaborator

@andguy95 andguy95 commented Feb 5, 2026

WHY are these changes introduced?

In the latest version of the Shopify/cli the custom-oclif-loader.ts that detects if we are in this monorepo and in development has a new isDevelopment() check to do the custom cli plugin loader that looks for a SHOPIFY_CLI_ENV=development.

Without it, the custom-oclif-loader.ts will not be able to load the cli from the monorepo as it won't see we are in dev mod.

WHAT is this pull request doing?

Adds in SHOPIFY_CLI_ENV=development to env: in dev.yml.

HOW to test your changes?

  1. Go to dev.ts in hydrogen/packages/cli/src/commands/hydrogen/dev.ts
  2. Make arbitrary update to the run()
  3. In the cli project run npm run build
  4. In the template/skeleton project run npx shopify hydrogen dev
    • To test locally i created an alias shopify-dev pointing to a locally built version of the Shopiy/cli
# Create the following file in ~/bin/shopify:#!/usr/bin/env node

process.env.SHOPIFY_RUBY_BINDIR = "/opt/rubies/3.1.2/bin"
process.env.SHOPIFY_HOMEBREW_FORMULA = "shopify-cli"

import("/Users/<your-user>/src/github.com/Shopify/cli/packages/cli/bin/run.js")

alias shopify-dev='/Users/$USER/bin/shopify'

NOTE: This is required for the latest version of Shopify/cli so by adding this its not going to do anything. However, this will be applicable when we get this https://github.com/Shopify/cli/pull/6827 merged and Shopify/cli packages bumped in the monorepo

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

@andguy95 andguy95 requested a review from a team as a code owner February 5, 2026 21:16
@andguy95 andguy95 merged commit 130e6ea into main Feb 12, 2026
14 checks passed
@andguy95 andguy95 deleted the an-adds-in-shopfiy-cli-dev-env branch February 12, 2026 17:58
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.

2 participants