@shopify/cli-hydrogen 7.1.0 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/commands/hydrogen/build-vite.js +131 -0
  2. package/dist/commands/hydrogen/build.js +6 -15
  3. package/dist/commands/hydrogen/check.js +1 -1
  4. package/dist/commands/hydrogen/codegen.js +3 -3
  5. package/dist/commands/hydrogen/debug/cpu.js +1 -1
  6. package/dist/commands/hydrogen/deploy.js +46 -31
  7. package/dist/commands/hydrogen/deploy.test.js +35 -49
  8. package/dist/commands/hydrogen/dev-vite.js +159 -0
  9. package/dist/commands/hydrogen/dev.js +11 -14
  10. package/dist/commands/hydrogen/env/list.js +1 -1
  11. package/dist/commands/hydrogen/env/pull.js +3 -3
  12. package/dist/commands/hydrogen/env/pull.test.js +2 -0
  13. package/dist/commands/hydrogen/env/push__unstable.js +190 -0
  14. package/dist/commands/hydrogen/env/push__unstable.test.js +383 -0
  15. package/dist/commands/hydrogen/generate/route.js +2 -2
  16. package/dist/commands/hydrogen/init.d.ts +69 -0
  17. package/dist/commands/hydrogen/init.js +5 -5
  18. package/dist/commands/hydrogen/init.test.js +2 -2
  19. package/dist/commands/hydrogen/link.js +2 -2
  20. package/dist/commands/hydrogen/list.js +1 -1
  21. package/dist/commands/hydrogen/login.js +2 -9
  22. package/dist/commands/hydrogen/logout.js +1 -1
  23. package/dist/commands/hydrogen/preview.js +15 -7
  24. package/dist/commands/hydrogen/setup/css.js +3 -3
  25. package/dist/commands/hydrogen/setup/markets.js +4 -4
  26. package/dist/commands/hydrogen/setup/vite.js +209 -0
  27. package/dist/commands/hydrogen/setup.js +8 -6
  28. package/dist/commands/hydrogen/unlink.js +1 -1
  29. package/dist/commands/hydrogen/upgrade.js +5 -3
  30. package/dist/generator-templates/assets/vite/package.json +15 -0
  31. package/dist/generator-templates/assets/vite/vite.config.js +13 -0
  32. package/dist/generator-templates/starter/CHANGELOG.md +49 -0
  33. package/dist/generator-templates/starter/app/components/Search.tsx +12 -7
  34. package/dist/generator-templates/starter/app/root.tsx +1 -2
  35. package/dist/generator-templates/starter/app/routes/api.predictive-search.tsx +8 -15
  36. package/dist/generator-templates/starter/package.json +9 -8
  37. package/dist/generator-templates/starter/public/.gitkeep +0 -0
  38. package/dist/lib/build.js +2 -1
  39. package/dist/lib/codegen.js +8 -3
  40. package/dist/lib/environment-variables.test.js +4 -2
  41. package/dist/lib/flags.js +149 -95
  42. package/dist/lib/graphql/admin/pull-variables.js +1 -0
  43. package/dist/lib/graphql/admin/pull-variables.test.js +7 -1
  44. package/dist/lib/graphql/admin/push-variables.js +35 -0
  45. package/dist/lib/log.js +1 -0
  46. package/dist/lib/mini-oxygen/common.js +2 -1
  47. package/dist/lib/mini-oxygen/node.js +2 -2
  48. package/dist/lib/mini-oxygen/workerd-inspector.js +1 -1
  49. package/dist/lib/mini-oxygen/workerd.js +29 -17
  50. package/dist/lib/onboarding/common.js +0 -3
  51. package/dist/lib/onboarding/local.js +4 -1
  52. package/dist/lib/onboarding/remote.js +16 -11
  53. package/dist/lib/remix-config.js +1 -1
  54. package/dist/lib/request-events.js +3 -3
  55. package/dist/lib/setups/css/assets.js +7 -2
  56. package/dist/lib/template-diff.js +26 -11
  57. package/dist/lib/template-downloader.js +11 -2
  58. package/dist/lib/vite/hydrogen-middleware.js +82 -0
  59. package/dist/lib/vite/mini-oxygen.js +152 -0
  60. package/dist/lib/vite/plugins.d.ts +27 -0
  61. package/dist/lib/vite/plugins.js +139 -0
  62. package/dist/lib/vite/shared.js +10 -0
  63. package/dist/lib/vite/utils.js +55 -0
  64. package/dist/lib/vite/worker-entry.js +1518 -0
  65. package/dist/lib/vite-config.js +45 -0
  66. package/dist/virtual-routes/lib/useDebugNetworkServer.jsx +4 -2
  67. package/dist/virtual-routes/routes/index.jsx +5 -5
  68. package/dist/virtual-routes/routes/subrequest-profiler.jsx +1 -1
  69. package/dist/virtual-routes/virtual-root.jsx +1 -1
  70. package/oclif.manifest.json +1127 -494
  71. package/package.json +36 -11
  72. /package/dist/generator-templates/starter/{public → app/assets}/favicon.svg +0 -0
@@ -1,834 +1,1334 @@
1
1
  {
2
- "version": "7.1.0",
3
2
  "commands": {
4
- "hydrogen:build": {
5
- "id": "hydrogen:build",
3
+ "hydrogen:build-vite": {
4
+ "aliases": [],
5
+ "args": {},
6
6
  "description": "Builds a Hydrogen storefront for production.",
7
- "strict": true,
8
- "pluginName": "@shopify/cli-hydrogen",
7
+ "flags": {
8
+ "path": {
9
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
10
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
11
+ "name": "path",
12
+ "hasDynamicHelp": false,
13
+ "multiple": false,
14
+ "type": "option"
15
+ },
16
+ "entry": {
17
+ "description": "Entry file for the worker. Defaults to `./server`.",
18
+ "env": "SHOPIFY_HYDROGEN_FLAG_ENTRY",
19
+ "name": "entry",
20
+ "hasDynamicHelp": false,
21
+ "multiple": false,
22
+ "type": "option"
23
+ },
24
+ "sourcemap": {
25
+ "description": "Controls whether sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",
26
+ "env": "SHOPIFY_HYDROGEN_FLAG_SOURCEMAP",
27
+ "name": "sourcemap",
28
+ "allowNo": true,
29
+ "type": "boolean"
30
+ },
31
+ "lockfile-check": {
32
+ "description": "Checks that there is exactly one valid lockfile in the project. Defaults to `true`. Deactivate with `--no-lockfile-check`.",
33
+ "env": "SHOPIFY_HYDROGEN_FLAG_LOCKFILE_CHECK",
34
+ "name": "lockfile-check",
35
+ "allowNo": true,
36
+ "type": "boolean"
37
+ },
38
+ "disable-route-warning": {
39
+ "description": "Disables any warnings about missing standard routes.",
40
+ "env": "SHOPIFY_HYDROGEN_FLAG_DISABLE_ROUTE_WARNING",
41
+ "name": "disable-route-warning",
42
+ "allowNo": false,
43
+ "type": "boolean"
44
+ },
45
+ "codegen": {
46
+ "description": "Automatically generates GraphQL types for your project’s Storefront API queries.",
47
+ "name": "codegen",
48
+ "required": false,
49
+ "allowNo": false,
50
+ "type": "boolean"
51
+ },
52
+ "codegen-config-path": {
53
+ "dependsOn": [
54
+ "codegen"
55
+ ],
56
+ "description": "Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.",
57
+ "name": "codegen-config-path",
58
+ "required": false,
59
+ "hasDynamicHelp": false,
60
+ "multiple": false,
61
+ "type": "option"
62
+ },
63
+ "diff": {
64
+ "description": "Applies the current files on top of Hydrogen's starter template in a temporary directory.",
65
+ "hidden": true,
66
+ "name": "diff",
67
+ "required": false,
68
+ "allowNo": false,
69
+ "type": "boolean"
70
+ }
71
+ },
72
+ "hasDynamicHelp": false,
73
+ "hiddenAliases": [],
74
+ "id": "hydrogen:build-vite",
9
75
  "pluginAlias": "@shopify/cli-hydrogen",
76
+ "pluginName": "@shopify/cli-hydrogen",
10
77
  "pluginType": "core",
78
+ "strict": true,
79
+ "isESM": true,
80
+ "relativePath": [
81
+ "dist",
82
+ "commands",
83
+ "hydrogen",
84
+ "build-vite.js"
85
+ ]
86
+ },
87
+ "hydrogen:build": {
11
88
  "aliases": [],
89
+ "args": {},
90
+ "description": "Builds a Hydrogen storefront for production.",
12
91
  "flags": {
13
92
  "path": {
93
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
94
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
14
95
  "name": "path",
15
- "type": "option",
16
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
17
- "multiple": false
96
+ "hasDynamicHelp": false,
97
+ "multiple": false,
98
+ "type": "option"
18
99
  },
19
100
  "sourcemap": {
101
+ "description": "Controls whether sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",
102
+ "env": "SHOPIFY_HYDROGEN_FLAG_SOURCEMAP",
20
103
  "name": "sourcemap",
21
- "type": "boolean",
22
- "description": "Controls whether sourcemaps are generated. Default to true, use `--no-sourcemaps` to disable.",
23
- "allowNo": true
104
+ "allowNo": true,
105
+ "type": "boolean"
24
106
  },
25
107
  "bundle-stats": {
26
- "name": "bundle-stats",
27
- "type": "boolean",
28
108
  "description": "Show a bundle size summary after building. Defaults to true, use `--no-bundle-stats` to disable.",
29
- "allowNo": true
109
+ "name": "bundle-stats",
110
+ "allowNo": true,
111
+ "type": "boolean"
30
112
  },
31
113
  "lockfile-check": {
114
+ "description": "Checks that there is exactly one valid lockfile in the project. Defaults to `true`. Deactivate with `--no-lockfile-check`.",
115
+ "env": "SHOPIFY_HYDROGEN_FLAG_LOCKFILE_CHECK",
32
116
  "name": "lockfile-check",
33
- "type": "boolean",
34
- "description": "Checks that there is exactly 1 valid lockfile in the project. Defaults to true, use `--no-lockfile-check` to disable.",
35
- "allowNo": true
117
+ "allowNo": true,
118
+ "type": "boolean"
36
119
  },
37
120
  "disable-route-warning": {
121
+ "description": "Disables any warnings about missing standard routes.",
122
+ "env": "SHOPIFY_HYDROGEN_FLAG_DISABLE_ROUTE_WARNING",
38
123
  "name": "disable-route-warning",
39
- "type": "boolean",
40
- "description": "Disable warning about missing standard routes.",
41
- "allowNo": false
124
+ "allowNo": false,
125
+ "type": "boolean"
42
126
  },
43
127
  "codegen": {
128
+ "description": "Automatically generates GraphQL types for your project’s Storefront API queries.",
44
129
  "name": "codegen",
45
- "type": "boolean",
46
- "description": "Generate types for the Storefront API queries found in your project.",
47
130
  "required": false,
48
- "allowNo": false
131
+ "allowNo": false,
132
+ "type": "boolean"
49
133
  },
50
134
  "codegen-config-path": {
135
+ "dependsOn": [
136
+ "codegen"
137
+ ],
138
+ "description": "Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.",
51
139
  "name": "codegen-config-path",
52
- "type": "option",
53
- "description": "Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",
54
140
  "required": false,
141
+ "hasDynamicHelp": false,
55
142
  "multiple": false,
56
- "dependsOn": [
57
- "codegen"
58
- ]
143
+ "type": "option"
59
144
  },
60
145
  "diff": {
61
- "name": "diff",
62
- "type": "boolean",
63
146
  "description": "Applies the current files on top of Hydrogen's starter template in a temporary directory.",
147
+ "hidden": true,
148
+ "name": "diff",
64
149
  "required": false,
65
- "allowNo": false
150
+ "allowNo": false,
151
+ "type": "boolean"
66
152
  }
67
153
  },
68
- "args": {}
69
- },
70
- "hydrogen:check": {
71
- "id": "hydrogen:check",
72
- "description": "Returns diagnostic information about a Hydrogen storefront.",
73
- "strict": true,
74
- "pluginName": "@shopify/cli-hydrogen",
154
+ "hasDynamicHelp": false,
155
+ "hiddenAliases": [],
156
+ "id": "hydrogen:build",
75
157
  "pluginAlias": "@shopify/cli-hydrogen",
158
+ "pluginName": "@shopify/cli-hydrogen",
76
159
  "pluginType": "core",
160
+ "strict": true,
161
+ "isESM": true,
162
+ "relativePath": [
163
+ "dist",
164
+ "commands",
165
+ "hydrogen",
166
+ "build.js"
167
+ ]
168
+ },
169
+ "hydrogen:check": {
77
170
  "aliases": [],
78
- "flags": {
79
- "path": {
80
- "name": "path",
81
- "type": "option",
82
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
83
- "multiple": false
84
- }
85
- },
86
171
  "args": {
87
172
  "resource": {
88
- "name": "resource",
89
173
  "description": "The resource to check. Currently only 'routes' is supported.",
90
- "required": true,
174
+ "name": "resource",
91
175
  "options": [
92
176
  "routes"
93
- ]
177
+ ],
178
+ "required": true
94
179
  }
95
- }
96
- },
97
- "hydrogen:codegen": {
98
- "id": "hydrogen:codegen",
99
- "description": "Generate types for the Storefront API queries found in your project.",
100
- "strict": true,
101
- "pluginName": "@shopify/cli-hydrogen",
180
+ },
181
+ "description": "Returns diagnostic information about a Hydrogen storefront.",
182
+ "flags": {
183
+ "path": {
184
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
185
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
186
+ "name": "path",
187
+ "hasDynamicHelp": false,
188
+ "multiple": false,
189
+ "type": "option"
190
+ }
191
+ },
192
+ "hasDynamicHelp": false,
193
+ "hiddenAliases": [],
194
+ "id": "hydrogen:check",
102
195
  "pluginAlias": "@shopify/cli-hydrogen",
196
+ "pluginName": "@shopify/cli-hydrogen",
103
197
  "pluginType": "core",
198
+ "strict": true,
199
+ "isESM": true,
200
+ "relativePath": [
201
+ "dist",
202
+ "commands",
203
+ "hydrogen",
204
+ "check.js"
205
+ ]
206
+ },
207
+ "hydrogen:codegen": {
104
208
  "aliases": [],
209
+ "args": {},
210
+ "description": "Generate types for the Storefront API queries found in your project.",
105
211
  "flags": {
106
212
  "path": {
213
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
214
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
107
215
  "name": "path",
108
- "type": "option",
109
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
110
- "multiple": false
216
+ "hasDynamicHelp": false,
217
+ "multiple": false,
218
+ "type": "option"
111
219
  },
112
220
  "codegen-config-path": {
113
- "name": "codegen-config-path",
114
- "type": "option",
115
221
  "description": "Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",
222
+ "name": "codegen-config-path",
116
223
  "required": false,
117
- "multiple": false
224
+ "hasDynamicHelp": false,
225
+ "multiple": false,
226
+ "type": "option"
118
227
  },
119
228
  "force-sfapi-version": {
120
- "name": "force-sfapi-version",
121
- "type": "option",
122
229
  "description": "Force generating Storefront API types for a specific version instead of using the one provided in Hydrogen. A token can also be provided with this format: `<version>:<token>`.",
123
230
  "hidden": true,
124
- "multiple": false
231
+ "name": "force-sfapi-version",
232
+ "hasDynamicHelp": false,
233
+ "multiple": false,
234
+ "type": "option"
125
235
  },
126
236
  "watch": {
127
- "name": "watch",
128
- "type": "boolean",
129
237
  "description": "Watch the project for changes to update types on file save.",
238
+ "name": "watch",
130
239
  "required": false,
131
- "allowNo": false
240
+ "allowNo": false,
241
+ "type": "boolean"
132
242
  }
133
243
  },
134
- "args": {}
135
- },
136
- "hydrogen:deploy": {
137
- "id": "hydrogen:deploy",
138
- "description": "Builds and deploys a Hydrogen storefront to Oxygen.",
139
- "strict": true,
140
- "pluginName": "@shopify/cli-hydrogen",
244
+ "hasDynamicHelp": false,
245
+ "hiddenAliases": [],
246
+ "id": "hydrogen:codegen",
141
247
  "pluginAlias": "@shopify/cli-hydrogen",
248
+ "pluginName": "@shopify/cli-hydrogen",
142
249
  "pluginType": "core",
250
+ "strict": true,
251
+ "isESM": true,
252
+ "relativePath": [
253
+ "dist",
254
+ "commands",
255
+ "hydrogen",
256
+ "codegen.js"
257
+ ]
258
+ },
259
+ "hydrogen:deploy": {
143
260
  "aliases": [],
261
+ "args": {},
262
+ "description": "Builds and deploys a Hydrogen storefront to Oxygen.",
144
263
  "flags": {
145
264
  "env-branch": {
146
- "name": "env-branch",
147
- "type": "option",
148
265
  "description": "Environment branch (tag) for environment to deploy to.",
266
+ "name": "env-branch",
149
267
  "required": false,
150
- "multiple": false
268
+ "hasDynamicHelp": false,
269
+ "multiple": false,
270
+ "type": "option"
151
271
  },
152
272
  "env-file": {
153
- "name": "env-file",
154
- "type": "option",
155
273
  "description": "Path to an environment file to override existing environment variables for the deployment.",
274
+ "name": "env-file",
156
275
  "required": false,
157
- "multiple": false
276
+ "hasDynamicHelp": false,
277
+ "multiple": false,
278
+ "type": "option"
158
279
  },
159
280
  "preview": {
160
- "name": "preview",
161
- "type": "boolean",
162
281
  "description": "Deploys to the Preview environment. Overrides --env-branch and Git metadata.",
282
+ "name": "preview",
163
283
  "required": false,
164
- "allowNo": false
284
+ "allowNo": false,
285
+ "type": "boolean"
165
286
  },
166
287
  "force": {
167
- "name": "force",
168
- "type": "boolean",
169
288
  "char": "f",
170
289
  "description": "Forces a deployment to proceed if there are uncommited changes in its Git repository.",
290
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
291
+ "name": "force",
171
292
  "required": false,
172
- "allowNo": false
293
+ "allowNo": false,
294
+ "type": "boolean"
173
295
  },
174
296
  "no-verify": {
175
- "name": "no-verify",
176
- "type": "boolean",
177
297
  "description": "Skip the routability verification step after deployment.",
298
+ "name": "no-verify",
178
299
  "required": false,
179
- "allowNo": false
300
+ "allowNo": false,
301
+ "type": "boolean"
180
302
  },
181
303
  "auth-bypass-token": {
182
- "name": "auth-bypass-token",
183
- "type": "boolean",
184
304
  "description": "Generate an authentication bypass token, which can be used to perform end-to-end tests against the deployment.",
305
+ "name": "auth-bypass-token",
185
306
  "required": false,
186
- "allowNo": false
307
+ "allowNo": false,
308
+ "type": "boolean"
187
309
  },
188
310
  "build-command": {
189
- "name": "build-command",
190
- "type": "option",
191
311
  "description": "Specify a build command to run before deploying. If not specified, `shopify hydrogen build` will be used.",
312
+ "name": "build-command",
192
313
  "required": false,
193
- "multiple": false
314
+ "hasDynamicHelp": false,
315
+ "multiple": false,
316
+ "type": "option"
194
317
  },
195
318
  "lockfile-check": {
319
+ "description": "Checks that there is exactly one valid lockfile in the project. Defaults to `true`. Deactivate with `--no-lockfile-check`.",
320
+ "env": "SHOPIFY_HYDROGEN_FLAG_LOCKFILE_CHECK",
196
321
  "name": "lockfile-check",
197
- "type": "boolean",
198
- "description": "Checks that there is exactly 1 valid lockfile in the project. Defaults to true, use `--no-lockfile-check` to disable.",
199
- "allowNo": true
322
+ "allowNo": true,
323
+ "type": "boolean"
200
324
  },
201
325
  "path": {
326
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
327
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
202
328
  "name": "path",
203
- "type": "option",
204
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
205
- "multiple": false
329
+ "hasDynamicHelp": false,
330
+ "multiple": false,
331
+ "type": "option"
206
332
  },
207
333
  "shop": {
208
- "name": "shop",
209
- "type": "option",
210
334
  "char": "s",
211
335
  "description": "Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).",
212
- "multiple": false
336
+ "env": "SHOPIFY_SHOP",
337
+ "name": "shop",
338
+ "hasDynamicHelp": false,
339
+ "multiple": false,
340
+ "type": "option"
213
341
  },
214
342
  "json-output": {
215
- "name": "json-output",
216
- "type": "boolean",
217
343
  "description": "Create a JSON file containing the deployment details in CI environments. Defaults to true, use `--no-json-output` to disable.",
344
+ "name": "json-output",
218
345
  "required": false,
219
- "allowNo": true
346
+ "allowNo": true,
347
+ "type": "boolean"
220
348
  },
221
349
  "token": {
222
- "name": "token",
223
- "type": "option",
224
350
  "char": "t",
225
351
  "description": "Oxygen deployment token. Defaults to the linked storefront's token if available.",
352
+ "env": "SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN",
353
+ "name": "token",
226
354
  "required": false,
227
- "multiple": false
355
+ "hasDynamicHelp": false,
356
+ "multiple": false,
357
+ "type": "option"
228
358
  },
229
359
  "metadata-description": {
230
- "name": "metadata-description",
231
- "type": "option",
232
360
  "description": "Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommited changes.",
361
+ "env": "SHOPIFY_HYDROGEN_FLAG_METADATA_DESCRIPTION",
362
+ "name": "metadata-description",
233
363
  "required": false,
234
- "multiple": false
364
+ "hasDynamicHelp": false,
365
+ "multiple": false,
366
+ "type": "option"
235
367
  },
236
368
  "metadata-url": {
237
- "name": "metadata-url",
238
- "type": "option",
369
+ "env": "SHOPIFY_HYDROGEN_FLAG_METADATA_URL",
239
370
  "hidden": true,
371
+ "name": "metadata-url",
240
372
  "required": false,
241
- "multiple": false
373
+ "hasDynamicHelp": false,
374
+ "multiple": false,
375
+ "type": "option"
242
376
  },
243
377
  "metadata-user": {
244
- "name": "metadata-user",
245
- "type": "option",
246
378
  "description": "User that initiated the deployment. Will be saved and displayed in the Shopify admin",
379
+ "env": "SHOPIFY_HYDROGEN_FLAG_METADATA_USER",
380
+ "name": "metadata-user",
247
381
  "required": false,
248
- "multiple": false
382
+ "hasDynamicHelp": false,
383
+ "multiple": false,
384
+ "type": "option"
249
385
  },
250
386
  "metadata-version": {
387
+ "env": "SHOPIFY_HYDROGEN_FLAG_METADATA_VERSION",
388
+ "hidden": true,
251
389
  "name": "metadata-version",
252
- "type": "option",
390
+ "required": false,
391
+ "hasDynamicHelp": false,
392
+ "multiple": false,
393
+ "type": "option"
394
+ },
395
+ "diff": {
396
+ "description": "Applies the current files on top of Hydrogen's starter template in a temporary directory.",
253
397
  "hidden": true,
398
+ "name": "diff",
254
399
  "required": false,
255
- "multiple": false
400
+ "allowNo": false,
401
+ "type": "boolean"
256
402
  }
257
403
  },
258
- "args": {}
404
+ "hasDynamicHelp": false,
405
+ "hiddenAliases": [],
406
+ "id": "hydrogen:deploy",
407
+ "pluginAlias": "@shopify/cli-hydrogen",
408
+ "pluginName": "@shopify/cli-hydrogen",
409
+ "pluginType": "core",
410
+ "strict": true,
411
+ "isESM": true,
412
+ "relativePath": [
413
+ "dist",
414
+ "commands",
415
+ "hydrogen",
416
+ "deploy.js"
417
+ ]
259
418
  },
260
- "hydrogen:dev": {
261
- "id": "hydrogen:dev",
419
+ "hydrogen:dev-vite": {
420
+ "aliases": [],
421
+ "args": {},
262
422
  "description": "Runs Hydrogen storefront in an Oxygen worker for development.",
263
- "strict": true,
264
- "pluginName": "@shopify/cli-hydrogen",
423
+ "flags": {
424
+ "path": {
425
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
426
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
427
+ "name": "path",
428
+ "hasDynamicHelp": false,
429
+ "multiple": false,
430
+ "type": "option"
431
+ },
432
+ "entry": {
433
+ "description": "Entry file for the worker. Defaults to `./server`.",
434
+ "env": "SHOPIFY_HYDROGEN_FLAG_ENTRY",
435
+ "name": "entry",
436
+ "hasDynamicHelp": false,
437
+ "multiple": false,
438
+ "type": "option"
439
+ },
440
+ "port": {
441
+ "description": "The port to run the server on. Defaults to 3000.",
442
+ "env": "SHOPIFY_HYDROGEN_FLAG_PORT",
443
+ "name": "port",
444
+ "required": false,
445
+ "hasDynamicHelp": false,
446
+ "multiple": false,
447
+ "type": "option"
448
+ },
449
+ "codegen": {
450
+ "description": "Automatically generates GraphQL types for your project’s Storefront API queries.",
451
+ "name": "codegen",
452
+ "required": false,
453
+ "allowNo": false,
454
+ "type": "boolean"
455
+ },
456
+ "codegen-config-path": {
457
+ "dependsOn": [
458
+ "codegen"
459
+ ],
460
+ "description": "Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.",
461
+ "name": "codegen-config-path",
462
+ "required": false,
463
+ "hasDynamicHelp": false,
464
+ "multiple": false,
465
+ "type": "option"
466
+ },
467
+ "disable-virtual-routes": {
468
+ "description": "Disable rendering fallback routes when a route file doesn't exist.",
469
+ "env": "SHOPIFY_HYDROGEN_FLAG_DISABLE_VIRTUAL_ROUTES",
470
+ "name": "disable-virtual-routes",
471
+ "allowNo": false,
472
+ "type": "boolean"
473
+ },
474
+ "debug": {
475
+ "description": "Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.",
476
+ "env": "SHOPIFY_HYDROGEN_FLAG_DEBUG",
477
+ "name": "debug",
478
+ "allowNo": false,
479
+ "type": "boolean"
480
+ },
481
+ "inspector-port": {
482
+ "description": "The port where the inspector is available. Defaults to 9229.",
483
+ "env": "SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT",
484
+ "name": "inspector-port",
485
+ "default": 9229,
486
+ "hasDynamicHelp": false,
487
+ "multiple": false,
488
+ "type": "option"
489
+ },
490
+ "host": {
491
+ "description": "Expose the server to the network",
492
+ "name": "host",
493
+ "required": false,
494
+ "allowNo": false,
495
+ "type": "boolean"
496
+ },
497
+ "env-branch": {
498
+ "char": "e",
499
+ "description": "Specifies the environment to pull variables from using its Git branch name.",
500
+ "env": "SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH",
501
+ "name": "env-branch",
502
+ "hasDynamicHelp": false,
503
+ "multiple": false,
504
+ "type": "option"
505
+ },
506
+ "disable-version-check": {
507
+ "description": "Skip the version check when running `hydrogen dev`",
508
+ "name": "disable-version-check",
509
+ "required": false,
510
+ "allowNo": false,
511
+ "type": "boolean"
512
+ },
513
+ "diff": {
514
+ "description": "Applies the current files on top of Hydrogen's starter template in a temporary directory.",
515
+ "hidden": true,
516
+ "name": "diff",
517
+ "required": false,
518
+ "allowNo": false,
519
+ "type": "boolean"
520
+ }
521
+ },
522
+ "hasDynamicHelp": false,
523
+ "hiddenAliases": [],
524
+ "id": "hydrogen:dev-vite",
265
525
  "pluginAlias": "@shopify/cli-hydrogen",
526
+ "pluginName": "@shopify/cli-hydrogen",
266
527
  "pluginType": "core",
528
+ "strict": true,
529
+ "isESM": true,
530
+ "relativePath": [
531
+ "dist",
532
+ "commands",
533
+ "hydrogen",
534
+ "dev-vite.js"
535
+ ]
536
+ },
537
+ "hydrogen:dev": {
267
538
  "aliases": [],
539
+ "args": {},
540
+ "description": "Runs Hydrogen storefront in an Oxygen worker for development.",
268
541
  "flags": {
269
542
  "path": {
543
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
544
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
270
545
  "name": "path",
271
- "type": "option",
272
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
273
- "multiple": false
546
+ "hasDynamicHelp": false,
547
+ "multiple": false,
548
+ "type": "option"
274
549
  },
275
550
  "port": {
551
+ "description": "The port to run the server on. Defaults to 3000.",
552
+ "env": "SHOPIFY_HYDROGEN_FLAG_PORT",
276
553
  "name": "port",
277
- "type": "option",
278
- "description": "Port to run the server on.",
554
+ "default": 3000,
555
+ "hasDynamicHelp": false,
279
556
  "multiple": false,
280
- "default": 3000
557
+ "type": "option"
281
558
  },
282
559
  "worker": {
560
+ "hidden": true,
283
561
  "name": "worker",
284
- "type": "boolean",
285
- "hidden": true
562
+ "type": "boolean"
286
563
  },
287
564
  "legacy-runtime": {
565
+ "description": "Runs the app in a Node.js sandbox instead of an Oxygen worker.",
566
+ "env": "SHOPIFY_HYDROGEN_FLAG_WORKER",
288
567
  "name": "legacy-runtime",
289
- "type": "boolean",
290
- "description": "Run the app in a Node.js sandbox instead of an Oxygen worker.",
291
- "allowNo": false
568
+ "allowNo": false,
569
+ "type": "boolean"
292
570
  },
293
571
  "codegen": {
572
+ "description": "Automatically generates GraphQL types for your project’s Storefront API queries.",
294
573
  "name": "codegen",
295
- "type": "boolean",
296
- "description": "Generate types for the Storefront API queries found in your project. It updates the types on file save.",
297
574
  "required": false,
298
- "allowNo": false
575
+ "allowNo": false,
576
+ "type": "boolean"
299
577
  },
300
578
  "codegen-config-path": {
579
+ "dependsOn": [
580
+ "codegen"
581
+ ],
582
+ "description": "Specifies a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if this file exists.",
301
583
  "name": "codegen-config-path",
302
- "type": "option",
303
- "description": "Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",
304
584
  "required": false,
585
+ "hasDynamicHelp": false,
305
586
  "multiple": false,
306
- "dependsOn": [
307
- "codegen"
308
- ]
587
+ "type": "option"
309
588
  },
310
589
  "sourcemap": {
590
+ "description": "Controls whether sourcemaps are generated. Default to `true`. Deactivate `--no-sourcemaps`.",
591
+ "env": "SHOPIFY_HYDROGEN_FLAG_SOURCEMAP",
311
592
  "name": "sourcemap",
312
- "type": "boolean",
313
- "description": "Generate sourcemaps for the build.",
314
- "allowNo": true
593
+ "allowNo": true,
594
+ "type": "boolean"
315
595
  },
316
596
  "disable-virtual-routes": {
317
- "name": "disable-virtual-routes",
318
- "type": "boolean",
319
597
  "description": "Disable rendering fallback routes when a route file doesn't exist.",
320
- "allowNo": false
598
+ "env": "SHOPIFY_HYDROGEN_FLAG_DISABLE_VIRTUAL_ROUTES",
599
+ "name": "disable-virtual-routes",
600
+ "allowNo": false,
601
+ "type": "boolean"
321
602
  },
322
603
  "debug": {
604
+ "description": "Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.",
605
+ "env": "SHOPIFY_HYDROGEN_FLAG_DEBUG",
323
606
  "name": "debug",
324
- "type": "boolean",
325
- "description": "Enables inspector connections with a debugger.",
326
- "allowNo": false
607
+ "allowNo": false,
608
+ "type": "boolean"
327
609
  },
328
610
  "inspector-port": {
611
+ "description": "The port where the inspector is available. Defaults to 9229.",
612
+ "env": "SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT",
329
613
  "name": "inspector-port",
330
- "type": "option",
331
- "description": "Port where the inspector will be available.",
614
+ "default": 9229,
615
+ "hasDynamicHelp": false,
332
616
  "multiple": false,
333
- "default": 9229
617
+ "type": "option"
334
618
  },
335
619
  "env-branch": {
336
- "name": "env-branch",
337
- "type": "option",
338
620
  "char": "e",
339
- "description": "Specify an environment's branch name when using remote environment variables.",
340
- "multiple": false
621
+ "description": "Specifies the environment to pull variables from using its Git branch name.",
622
+ "env": "SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH",
623
+ "name": "env-branch",
624
+ "hasDynamicHelp": false,
625
+ "multiple": false,
626
+ "type": "option"
341
627
  },
342
628
  "disable-version-check": {
343
- "name": "disable-version-check",
344
- "type": "boolean",
345
629
  "description": "Skip the version check when running `hydrogen dev`",
630
+ "name": "disable-version-check",
346
631
  "required": false,
347
- "allowNo": false
632
+ "allowNo": false,
633
+ "type": "boolean"
348
634
  },
349
635
  "diff": {
350
- "name": "diff",
351
- "type": "boolean",
352
636
  "description": "Applies the current files on top of Hydrogen's starter template in a temporary directory.",
637
+ "hidden": true,
638
+ "name": "diff",
353
639
  "required": false,
354
- "allowNo": false
640
+ "allowNo": false,
641
+ "type": "boolean"
355
642
  }
356
643
  },
357
- "args": {}
644
+ "hasDynamicHelp": false,
645
+ "hiddenAliases": [],
646
+ "id": "hydrogen:dev",
647
+ "pluginAlias": "@shopify/cli-hydrogen",
648
+ "pluginName": "@shopify/cli-hydrogen",
649
+ "pluginType": "core",
650
+ "strict": true,
651
+ "isESM": true,
652
+ "relativePath": [
653
+ "dist",
654
+ "commands",
655
+ "hydrogen",
656
+ "dev.js"
657
+ ]
358
658
  },
359
659
  "hydrogen:g": {
360
- "id": "hydrogen:g",
660
+ "aliases": [],
661
+ "args": {},
361
662
  "description": "Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.",
362
- "strict": false,
363
- "pluginName": "@shopify/cli-hydrogen",
364
- "pluginAlias": "@shopify/cli-hydrogen",
365
- "pluginType": "core",
663
+ "flags": {},
664
+ "hasDynamicHelp": false,
366
665
  "hidden": true,
367
- "aliases": [],
368
- "flags": {},
369
- "args": {}
370
- },
371
- "hydrogen:init": {
372
- "id": "hydrogen:init",
373
- "description": "Creates a new Hydrogen storefront.",
374
- "strict": true,
375
- "pluginName": "@shopify/cli-hydrogen",
666
+ "hiddenAliases": [],
667
+ "id": "hydrogen:g",
376
668
  "pluginAlias": "@shopify/cli-hydrogen",
669
+ "pluginName": "@shopify/cli-hydrogen",
377
670
  "pluginType": "core",
671
+ "strict": false,
672
+ "isESM": true,
673
+ "relativePath": [
674
+ "dist",
675
+ "commands",
676
+ "hydrogen",
677
+ "g.js"
678
+ ]
679
+ },
680
+ "hydrogen:init": {
378
681
  "aliases": [],
682
+ "args": {},
683
+ "description": "Creates a new Hydrogen storefront.",
379
684
  "flags": {
380
685
  "force": {
381
- "name": "force",
382
- "type": "boolean",
383
686
  "char": "f",
384
- "description": "Overwrite the destination directory and files if they already exist.",
385
- "allowNo": false
687
+ "description": "Overwrites the destination directory and files if they already exist.",
688
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
689
+ "name": "force",
690
+ "allowNo": false,
691
+ "type": "boolean"
386
692
  },
387
693
  "path": {
388
- "name": "path",
389
- "type": "option",
390
694
  "description": "The path to the directory of the new Hydrogen storefront.",
391
- "multiple": false
695
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
696
+ "name": "path",
697
+ "hasDynamicHelp": false,
698
+ "multiple": false,
699
+ "type": "option"
392
700
  },
393
701
  "language": {
394
- "name": "language",
395
- "type": "option",
396
702
  "description": "Sets the template language to use. One of `js` or `ts`.",
397
- "multiple": false
703
+ "env": "SHOPIFY_HYDROGEN_FLAG_LANGUAGE",
704
+ "name": "language",
705
+ "hasDynamicHelp": false,
706
+ "multiple": false,
707
+ "type": "option"
398
708
  },
399
709
  "template": {
400
- "name": "template",
401
- "type": "option",
402
710
  "description": "Scaffolds project based on an existing template or example from the Hydrogen repository.",
403
- "multiple": false
711
+ "env": "SHOPIFY_HYDROGEN_FLAG_TEMPLATE",
712
+ "name": "template",
713
+ "hasDynamicHelp": false,
714
+ "multiple": false,
715
+ "type": "option"
404
716
  },
405
717
  "install-deps": {
718
+ "description": "Auto installs dependencies using the active package manager.",
719
+ "env": "SHOPIFY_HYDROGEN_FLAG_INSTALL_DEPS",
406
720
  "name": "install-deps",
407
- "type": "boolean",
408
- "description": "Auto install dependencies using the active package manager",
409
- "allowNo": true
721
+ "allowNo": true,
722
+ "type": "boolean"
410
723
  },
411
724
  "mock-shop": {
412
- "name": "mock-shop",
413
- "type": "boolean",
414
725
  "description": "Use mock.shop as the data source for the storefront.",
415
- "allowNo": false
726
+ "env": "SHOPIFY_HYDROGEN_FLAG_MOCK_DATA",
727
+ "name": "mock-shop",
728
+ "allowNo": false,
729
+ "type": "boolean"
416
730
  },
417
731
  "styling": {
418
- "name": "styling",
419
- "type": "option",
420
732
  "description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`, `none`.",
421
- "multiple": false
733
+ "env": "SHOPIFY_HYDROGEN_FLAG_STYLING",
734
+ "name": "styling",
735
+ "hasDynamicHelp": false,
736
+ "multiple": false,
737
+ "type": "option"
422
738
  },
423
739
  "markets": {
740
+ "description": "Sets the URL structure to support multiple markets. Must be one of: `subfolders`, `domains`, `subdomains`, `none`. Example: `--markets subfolders`.",
741
+ "env": "SHOPIFY_HYDROGEN_FLAG_I18N",
424
742
  "name": "markets",
425
- "type": "option",
426
- "description": "Sets the URL structure to support multiple markets. One of `subfolders`, `domains`, `subdomains`, `none`.",
427
- "multiple": false
743
+ "hasDynamicHelp": false,
744
+ "multiple": false,
745
+ "type": "option"
428
746
  },
429
747
  "shortcut": {
748
+ "description": "Creates a global h2 shortcut for Shopify CLI using shell aliases. Deactivate with `--no-shortcut`.",
749
+ "env": "SHOPIFY_HYDROGEN_FLAG_SHORTCUT",
430
750
  "name": "shortcut",
431
- "type": "boolean",
432
- "description": "Create a shortcut to the Shopify Hydrogen CLI.",
433
- "allowNo": true
751
+ "allowNo": true,
752
+ "type": "boolean"
434
753
  },
435
754
  "routes": {
436
- "name": "routes",
437
- "type": "boolean",
438
755
  "description": "Generate routes for all pages.",
756
+ "env": "SHOPIFY_HYDROGEN_FLAG_ROUTES",
439
757
  "hidden": true,
440
- "allowNo": true
758
+ "name": "routes",
759
+ "allowNo": true,
760
+ "type": "boolean"
441
761
  },
442
762
  "git": {
443
- "name": "git",
444
- "type": "boolean",
445
763
  "description": "Init Git and create initial commits.",
446
- "allowNo": true
764
+ "env": "SHOPIFY_HYDROGEN_FLAG_GIT",
765
+ "name": "git",
766
+ "allowNo": true,
767
+ "type": "boolean"
447
768
  }
448
769
  },
449
- "args": {}
450
- },
451
- "hydrogen:link": {
452
- "id": "hydrogen:link",
453
- "description": "Link a local project to one of your shop's Hydrogen storefronts.",
454
- "strict": true,
455
- "pluginName": "@shopify/cli-hydrogen",
770
+ "hasDynamicHelp": false,
771
+ "hiddenAliases": [],
772
+ "id": "hydrogen:init",
456
773
  "pluginAlias": "@shopify/cli-hydrogen",
774
+ "pluginName": "@shopify/cli-hydrogen",
457
775
  "pluginType": "core",
776
+ "strict": true,
777
+ "isESM": true,
778
+ "relativePath": [
779
+ "dist",
780
+ "commands",
781
+ "hydrogen",
782
+ "init.js"
783
+ ]
784
+ },
785
+ "hydrogen:link": {
458
786
  "aliases": [],
787
+ "args": {},
788
+ "description": "Link a local project to one of your shop's Hydrogen storefronts.",
459
789
  "flags": {
460
790
  "force": {
461
- "name": "force",
462
- "type": "boolean",
463
791
  "char": "f",
464
- "description": "Overwrite the destination directory and files if they already exist.",
465
- "allowNo": false
792
+ "description": "Overwrites the destination directory and files if they already exist.",
793
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
794
+ "name": "force",
795
+ "allowNo": false,
796
+ "type": "boolean"
466
797
  },
467
798
  "path": {
799
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
800
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
468
801
  "name": "path",
469
- "type": "option",
470
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
471
- "multiple": false
802
+ "hasDynamicHelp": false,
803
+ "multiple": false,
804
+ "type": "option"
472
805
  },
473
806
  "storefront": {
474
- "name": "storefront",
475
- "type": "option",
476
807
  "description": "The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")",
477
- "multiple": false
808
+ "env": "SHOPIFY_HYDROGEN_STOREFRONT",
809
+ "name": "storefront",
810
+ "hasDynamicHelp": false,
811
+ "multiple": false,
812
+ "type": "option"
478
813
  }
479
814
  },
480
- "args": {}
481
- },
482
- "hydrogen:list": {
483
- "id": "hydrogen:list",
484
- "description": "Returns a list of Hydrogen storefronts available on a given shop.",
485
- "strict": true,
486
- "pluginName": "@shopify/cli-hydrogen",
815
+ "hasDynamicHelp": false,
816
+ "hiddenAliases": [],
817
+ "id": "hydrogen:link",
487
818
  "pluginAlias": "@shopify/cli-hydrogen",
819
+ "pluginName": "@shopify/cli-hydrogen",
488
820
  "pluginType": "core",
821
+ "strict": true,
822
+ "isESM": true,
823
+ "relativePath": [
824
+ "dist",
825
+ "commands",
826
+ "hydrogen",
827
+ "link.js"
828
+ ]
829
+ },
830
+ "hydrogen:list": {
489
831
  "aliases": [],
832
+ "args": {},
833
+ "description": "Returns a list of Hydrogen storefronts available on a given shop.",
490
834
  "flags": {
491
835
  "path": {
836
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
837
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
492
838
  "name": "path",
493
- "type": "option",
494
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
495
- "multiple": false
839
+ "hasDynamicHelp": false,
840
+ "multiple": false,
841
+ "type": "option"
496
842
  }
497
843
  },
498
- "args": {}
499
- },
500
- "hydrogen:login": {
501
- "id": "hydrogen:login",
502
- "description": "Login to your Shopify account.",
503
- "strict": true,
504
- "pluginName": "@shopify/cli-hydrogen",
844
+ "hasDynamicHelp": false,
845
+ "hiddenAliases": [],
846
+ "id": "hydrogen:list",
505
847
  "pluginAlias": "@shopify/cli-hydrogen",
848
+ "pluginName": "@shopify/cli-hydrogen",
506
849
  "pluginType": "core",
850
+ "strict": true,
851
+ "isESM": true,
852
+ "relativePath": [
853
+ "dist",
854
+ "commands",
855
+ "hydrogen",
856
+ "list.js"
857
+ ]
858
+ },
859
+ "hydrogen:login": {
507
860
  "aliases": [],
861
+ "args": {},
862
+ "description": "Login to your Shopify account.",
508
863
  "flags": {
509
864
  "path": {
865
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
866
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
510
867
  "name": "path",
511
- "type": "option",
512
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
513
- "multiple": false
868
+ "hasDynamicHelp": false,
869
+ "multiple": false,
870
+ "type": "option"
514
871
  },
515
872
  "shop": {
516
- "name": "shop",
517
- "type": "option",
518
873
  "char": "s",
519
874
  "description": "Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).",
520
- "multiple": false
875
+ "env": "SHOPIFY_SHOP",
876
+ "name": "shop",
877
+ "hasDynamicHelp": false,
878
+ "multiple": false,
879
+ "type": "option"
521
880
  }
522
881
  },
523
- "args": {}
524
- },
525
- "hydrogen:logout": {
526
- "id": "hydrogen:logout",
527
- "description": "Logout of your local session.",
528
- "strict": true,
529
- "pluginName": "@shopify/cli-hydrogen",
882
+ "hasDynamicHelp": false,
883
+ "hiddenAliases": [],
884
+ "id": "hydrogen:login",
530
885
  "pluginAlias": "@shopify/cli-hydrogen",
886
+ "pluginName": "@shopify/cli-hydrogen",
531
887
  "pluginType": "core",
888
+ "strict": true,
889
+ "isESM": true,
890
+ "relativePath": [
891
+ "dist",
892
+ "commands",
893
+ "hydrogen",
894
+ "login.js"
895
+ ]
896
+ },
897
+ "hydrogen:logout": {
532
898
  "aliases": [],
899
+ "args": {},
900
+ "description": "Logout of your local session.",
533
901
  "flags": {
534
902
  "path": {
903
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
904
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
535
905
  "name": "path",
536
- "type": "option",
537
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
538
- "multiple": false
906
+ "hasDynamicHelp": false,
907
+ "multiple": false,
908
+ "type": "option"
539
909
  }
540
910
  },
541
- "args": {}
542
- },
543
- "hydrogen:preview": {
544
- "id": "hydrogen:preview",
545
- "description": "Runs a Hydrogen storefront in an Oxygen worker for production.",
546
- "strict": true,
547
- "pluginName": "@shopify/cli-hydrogen",
911
+ "hasDynamicHelp": false,
912
+ "hiddenAliases": [],
913
+ "id": "hydrogen:logout",
548
914
  "pluginAlias": "@shopify/cli-hydrogen",
915
+ "pluginName": "@shopify/cli-hydrogen",
549
916
  "pluginType": "core",
917
+ "strict": true,
918
+ "isESM": true,
919
+ "relativePath": [
920
+ "dist",
921
+ "commands",
922
+ "hydrogen",
923
+ "logout.js"
924
+ ]
925
+ },
926
+ "hydrogen:preview": {
550
927
  "aliases": [],
928
+ "args": {},
929
+ "description": "Runs a Hydrogen storefront in an Oxygen worker for production.",
551
930
  "flags": {
552
931
  "path": {
932
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
933
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
553
934
  "name": "path",
554
- "type": "option",
555
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
556
- "multiple": false
935
+ "hasDynamicHelp": false,
936
+ "multiple": false,
937
+ "type": "option"
557
938
  },
558
939
  "port": {
940
+ "description": "The port to run the server on. Defaults to 3000.",
941
+ "env": "SHOPIFY_HYDROGEN_FLAG_PORT",
559
942
  "name": "port",
560
- "type": "option",
561
- "description": "Port to run the server on.",
943
+ "default": 3000,
944
+ "hasDynamicHelp": false,
562
945
  "multiple": false,
563
- "default": 3000
946
+ "type": "option"
564
947
  },
565
948
  "worker": {
949
+ "hidden": true,
566
950
  "name": "worker",
567
- "type": "boolean",
568
- "hidden": true
951
+ "type": "boolean"
569
952
  },
570
953
  "legacy-runtime": {
954
+ "description": "Runs the app in a Node.js sandbox instead of an Oxygen worker.",
955
+ "env": "SHOPIFY_HYDROGEN_FLAG_WORKER",
571
956
  "name": "legacy-runtime",
572
- "type": "boolean",
573
- "description": "Run the app in a Node.js sandbox instead of an Oxygen worker.",
574
- "allowNo": false
957
+ "allowNo": false,
958
+ "type": "boolean"
575
959
  },
576
960
  "env-branch": {
577
- "name": "env-branch",
578
- "type": "option",
579
961
  "char": "e",
580
- "description": "Specify an environment's branch name when using remote environment variables.",
581
- "multiple": false
962
+ "description": "Specifies the environment to pull variables from using its Git branch name.",
963
+ "env": "SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH",
964
+ "name": "env-branch",
965
+ "hasDynamicHelp": false,
966
+ "multiple": false,
967
+ "type": "option"
582
968
  },
583
969
  "inspector-port": {
970
+ "description": "The port where the inspector is available. Defaults to 9229.",
971
+ "env": "SHOPIFY_HYDROGEN_FLAG_INSPECTOR_PORT",
584
972
  "name": "inspector-port",
585
- "type": "option",
586
- "description": "Port where the inspector will be available.",
973
+ "default": 9229,
974
+ "hasDynamicHelp": false,
587
975
  "multiple": false,
588
- "default": 9229
976
+ "type": "option"
589
977
  },
590
978
  "debug": {
979
+ "description": "Enables inspector connections to the server with a debugger such as Visual Studio Code or Chrome DevTools.",
980
+ "env": "SHOPIFY_HYDROGEN_FLAG_DEBUG",
591
981
  "name": "debug",
592
- "type": "boolean",
593
- "description": "Enables inspector connections with a debugger.",
594
- "allowNo": false
982
+ "allowNo": false,
983
+ "type": "boolean"
595
984
  }
596
985
  },
597
- "args": {}
598
- },
599
- "hydrogen:setup": {
600
- "id": "hydrogen:setup",
601
- "description": "Scaffold routes and core functionality.",
602
- "strict": true,
603
- "pluginName": "@shopify/cli-hydrogen",
986
+ "hasDynamicHelp": false,
987
+ "hiddenAliases": [],
988
+ "id": "hydrogen:preview",
604
989
  "pluginAlias": "@shopify/cli-hydrogen",
990
+ "pluginName": "@shopify/cli-hydrogen",
605
991
  "pluginType": "core",
992
+ "strict": true,
993
+ "isESM": true,
994
+ "relativePath": [
995
+ "dist",
996
+ "commands",
997
+ "hydrogen",
998
+ "preview.js"
999
+ ]
1000
+ },
1001
+ "hydrogen:setup": {
606
1002
  "aliases": [],
1003
+ "args": {},
1004
+ "description": "Scaffold routes and core functionality.",
607
1005
  "flags": {
608
1006
  "path": {
1007
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1008
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
609
1009
  "name": "path",
610
- "type": "option",
611
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
612
- "multiple": false
1010
+ "hasDynamicHelp": false,
1011
+ "multiple": false,
1012
+ "type": "option"
613
1013
  },
614
1014
  "force": {
615
- "name": "force",
616
- "type": "boolean",
617
1015
  "char": "f",
618
- "description": "Overwrite the destination directory and files if they already exist.",
619
- "allowNo": false
1016
+ "description": "Overwrites the destination directory and files if they already exist.",
1017
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
1018
+ "name": "force",
1019
+ "allowNo": false,
1020
+ "type": "boolean"
620
1021
  },
621
1022
  "styling": {
622
- "name": "styling",
623
- "type": "option",
624
1023
  "description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`, `none`.",
625
- "multiple": false
1024
+ "env": "SHOPIFY_HYDROGEN_FLAG_STYLING",
1025
+ "name": "styling",
1026
+ "hasDynamicHelp": false,
1027
+ "multiple": false,
1028
+ "type": "option"
626
1029
  },
627
1030
  "markets": {
1031
+ "description": "Sets the URL structure to support multiple markets. Must be one of: `subfolders`, `domains`, `subdomains`, `none`. Example: `--markets subfolders`.",
1032
+ "env": "SHOPIFY_HYDROGEN_FLAG_I18N",
628
1033
  "name": "markets",
629
- "type": "option",
630
- "description": "Sets the URL structure to support multiple markets. One of `subfolders`, `domains`, `subdomains`, `none`.",
631
- "multiple": false
1034
+ "hasDynamicHelp": false,
1035
+ "multiple": false,
1036
+ "type": "option"
632
1037
  },
633
1038
  "shortcut": {
1039
+ "description": "Creates a global h2 shortcut for Shopify CLI using shell aliases. Deactivate with `--no-shortcut`.",
1040
+ "env": "SHOPIFY_HYDROGEN_FLAG_SHORTCUT",
634
1041
  "name": "shortcut",
635
- "type": "boolean",
636
- "description": "Create a shortcut to the Shopify Hydrogen CLI.",
637
- "allowNo": true
1042
+ "allowNo": true,
1043
+ "type": "boolean"
638
1044
  },
639
1045
  "install-deps": {
1046
+ "description": "Auto installs dependencies using the active package manager.",
1047
+ "env": "SHOPIFY_HYDROGEN_FLAG_INSTALL_DEPS",
640
1048
  "name": "install-deps",
641
- "type": "boolean",
642
- "description": "Auto install dependencies using the active package manager",
643
- "allowNo": true
1049
+ "allowNo": true,
1050
+ "type": "boolean"
644
1051
  }
645
1052
  },
646
- "args": {}
1053
+ "hasDynamicHelp": false,
1054
+ "hiddenAliases": [],
1055
+ "id": "hydrogen:setup",
1056
+ "pluginAlias": "@shopify/cli-hydrogen",
1057
+ "pluginName": "@shopify/cli-hydrogen",
1058
+ "pluginType": "core",
1059
+ "strict": true,
1060
+ "isESM": true,
1061
+ "relativePath": [
1062
+ "dist",
1063
+ "commands",
1064
+ "hydrogen",
1065
+ "setup.js"
1066
+ ]
647
1067
  },
648
1068
  "hydrogen:shortcut": {
649
- "id": "hydrogen:shortcut",
1069
+ "aliases": [],
1070
+ "args": {},
650
1071
  "description": "Creates a global `h2` shortcut for the Hydrogen CLI",
651
- "strict": true,
652
- "pluginName": "@shopify/cli-hydrogen",
1072
+ "flags": {},
1073
+ "hasDynamicHelp": false,
1074
+ "hiddenAliases": [],
1075
+ "id": "hydrogen:shortcut",
653
1076
  "pluginAlias": "@shopify/cli-hydrogen",
1077
+ "pluginName": "@shopify/cli-hydrogen",
654
1078
  "pluginType": "core",
655
- "aliases": [],
656
- "flags": {},
657
- "args": {}
1079
+ "strict": true,
1080
+ "isESM": true,
1081
+ "relativePath": [
1082
+ "dist",
1083
+ "commands",
1084
+ "hydrogen",
1085
+ "shortcut.js"
1086
+ ]
658
1087
  },
659
1088
  "hydrogen:unlink": {
660
- "id": "hydrogen:unlink",
661
- "description": "Unlink a local project from a Hydrogen storefront.",
662
- "strict": true,
663
- "pluginName": "@shopify/cli-hydrogen",
664
- "pluginAlias": "@shopify/cli-hydrogen",
665
- "pluginType": "core",
666
1089
  "aliases": [],
1090
+ "args": {},
1091
+ "description": "Unlink a local project from a Hydrogen storefront.",
667
1092
  "flags": {
668
1093
  "path": {
1094
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1095
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
669
1096
  "name": "path",
670
- "type": "option",
671
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
672
- "multiple": false
1097
+ "hasDynamicHelp": false,
1098
+ "multiple": false,
1099
+ "type": "option"
673
1100
  }
674
1101
  },
675
- "args": {}
676
- },
677
- "hydrogen:upgrade": {
678
- "id": "hydrogen:upgrade",
679
- "description": "Upgrade Remix and Hydrogen npm dependencies.",
680
- "strict": true,
681
- "pluginName": "@shopify/cli-hydrogen",
1102
+ "hasDynamicHelp": false,
1103
+ "hiddenAliases": [],
1104
+ "id": "hydrogen:unlink",
682
1105
  "pluginAlias": "@shopify/cli-hydrogen",
1106
+ "pluginName": "@shopify/cli-hydrogen",
683
1107
  "pluginType": "core",
1108
+ "strict": true,
1109
+ "isESM": true,
1110
+ "relativePath": [
1111
+ "dist",
1112
+ "commands",
1113
+ "hydrogen",
1114
+ "unlink.js"
1115
+ ]
1116
+ },
1117
+ "hydrogen:upgrade": {
684
1118
  "aliases": [],
1119
+ "args": {},
1120
+ "description": "Upgrade Remix and Hydrogen npm dependencies.",
685
1121
  "flags": {
686
1122
  "path": {
1123
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1124
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
687
1125
  "name": "path",
688
- "type": "option",
689
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
690
- "multiple": false
1126
+ "hasDynamicHelp": false,
1127
+ "multiple": false,
1128
+ "type": "option"
691
1129
  },
692
1130
  "version": {
693
- "name": "version",
694
- "type": "option",
695
1131
  "char": "v",
696
1132
  "description": "A target hydrogen version to update to",
1133
+ "name": "version",
697
1134
  "required": false,
698
- "multiple": false
1135
+ "hasDynamicHelp": false,
1136
+ "multiple": false,
1137
+ "type": "option"
699
1138
  },
700
1139
  "force": {
701
- "name": "force",
702
- "type": "boolean",
703
1140
  "char": "f",
704
1141
  "description": "Ignore warnings and force the upgrade to the target version",
705
- "allowNo": false
1142
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
1143
+ "name": "force",
1144
+ "allowNo": false,
1145
+ "type": "boolean"
706
1146
  }
707
1147
  },
708
- "args": {}
709
- },
710
- "hydrogen:debug:cpu": {
711
- "id": "hydrogen:debug:cpu",
712
- "description": "Builds and profiles the server startup time the app.",
713
- "strict": true,
714
- "pluginName": "@shopify/cli-hydrogen",
1148
+ "hasDynamicHelp": false,
1149
+ "hiddenAliases": [],
1150
+ "id": "hydrogen:upgrade",
715
1151
  "pluginAlias": "@shopify/cli-hydrogen",
1152
+ "pluginName": "@shopify/cli-hydrogen",
716
1153
  "pluginType": "core",
1154
+ "strict": true,
1155
+ "isESM": true,
1156
+ "relativePath": [
1157
+ "dist",
1158
+ "commands",
1159
+ "hydrogen",
1160
+ "upgrade.js"
1161
+ ]
1162
+ },
1163
+ "hydrogen:debug:cpu": {
717
1164
  "aliases": [],
1165
+ "args": {},
1166
+ "description": "Builds and profiles the server startup time the app.",
718
1167
  "flags": {
719
1168
  "path": {
1169
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1170
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
720
1171
  "name": "path",
721
- "type": "option",
722
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
723
- "multiple": false
1172
+ "hasDynamicHelp": false,
1173
+ "multiple": false,
1174
+ "type": "option"
724
1175
  },
725
1176
  "output": {
726
- "name": "output",
727
- "type": "option",
728
1177
  "description": "Specify a path to generate the profile file. Defaults to \"startup.cpuprofile\".",
1178
+ "name": "output",
729
1179
  "required": false,
1180
+ "default": "startup.cpuprofile",
1181
+ "hasDynamicHelp": false,
730
1182
  "multiple": false,
731
- "default": "startup.cpuprofile"
1183
+ "type": "option"
732
1184
  }
733
1185
  },
734
- "args": {}
735
- },
736
- "hydrogen:env:list": {
737
- "id": "hydrogen:env:list",
738
- "description": "List the environments on your linked Hydrogen storefront.",
739
- "strict": true,
740
- "pluginName": "@shopify/cli-hydrogen",
1186
+ "hasDynamicHelp": false,
1187
+ "hiddenAliases": [],
1188
+ "id": "hydrogen:debug:cpu",
741
1189
  "pluginAlias": "@shopify/cli-hydrogen",
1190
+ "pluginName": "@shopify/cli-hydrogen",
742
1191
  "pluginType": "core",
1192
+ "strict": true,
1193
+ "isESM": true,
1194
+ "relativePath": [
1195
+ "dist",
1196
+ "commands",
1197
+ "hydrogen",
1198
+ "debug",
1199
+ "cpu.js"
1200
+ ]
1201
+ },
1202
+ "hydrogen:env:list": {
743
1203
  "aliases": [],
1204
+ "args": {},
1205
+ "description": "List the environments on your linked Hydrogen storefront.",
744
1206
  "flags": {
745
1207
  "path": {
1208
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1209
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
746
1210
  "name": "path",
747
- "type": "option",
748
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
749
- "multiple": false
1211
+ "hasDynamicHelp": false,
1212
+ "multiple": false,
1213
+ "type": "option"
750
1214
  }
751
1215
  },
752
- "args": {}
753
- },
754
- "hydrogen:env:pull": {
755
- "id": "hydrogen:env:pull",
756
- "description": "Populate your .env with variables from your Hydrogen storefront.",
757
- "strict": true,
758
- "pluginName": "@shopify/cli-hydrogen",
1216
+ "hasDynamicHelp": false,
1217
+ "hiddenAliases": [],
1218
+ "id": "hydrogen:env:list",
759
1219
  "pluginAlias": "@shopify/cli-hydrogen",
1220
+ "pluginName": "@shopify/cli-hydrogen",
760
1221
  "pluginType": "core",
1222
+ "strict": true,
1223
+ "isESM": true,
1224
+ "relativePath": [
1225
+ "dist",
1226
+ "commands",
1227
+ "hydrogen",
1228
+ "env",
1229
+ "list.js"
1230
+ ]
1231
+ },
1232
+ "hydrogen:env:pull": {
761
1233
  "aliases": [],
1234
+ "args": {},
1235
+ "description": "Populate your .env with variables from your Hydrogen storefront.",
762
1236
  "flags": {
763
1237
  "env-branch": {
764
- "name": "env-branch",
765
- "type": "option",
766
1238
  "char": "e",
767
- "description": "Specify an environment's branch name when using remote environment variables.",
768
- "multiple": false
1239
+ "description": "Specifies the environment to pull variables from using its Git branch name.",
1240
+ "env": "SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH",
1241
+ "name": "env-branch",
1242
+ "hasDynamicHelp": false,
1243
+ "multiple": false,
1244
+ "type": "option"
769
1245
  },
770
1246
  "path": {
1247
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1248
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
771
1249
  "name": "path",
772
- "type": "option",
773
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
774
- "multiple": false
1250
+ "hasDynamicHelp": false,
1251
+ "multiple": false,
1252
+ "type": "option"
775
1253
  },
776
1254
  "force": {
777
- "name": "force",
778
- "type": "boolean",
779
1255
  "char": "f",
780
- "description": "Overwrite the destination directory and files if they already exist.",
781
- "allowNo": false
1256
+ "description": "Overwrites the destination directory and files if they already exist.",
1257
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
1258
+ "name": "force",
1259
+ "allowNo": false,
1260
+ "type": "boolean"
782
1261
  }
783
1262
  },
784
- "args": {}
785
- },
786
- "hydrogen:generate:route": {
787
- "id": "hydrogen:generate:route",
788
- "description": "Generates a standard Shopify route.",
789
- "strict": true,
790
- "pluginName": "@shopify/cli-hydrogen",
1263
+ "hasDynamicHelp": false,
1264
+ "hiddenAliases": [],
1265
+ "id": "hydrogen:env:pull",
791
1266
  "pluginAlias": "@shopify/cli-hydrogen",
1267
+ "pluginName": "@shopify/cli-hydrogen",
792
1268
  "pluginType": "core",
1269
+ "strict": true,
1270
+ "isESM": true,
1271
+ "relativePath": [
1272
+ "dist",
1273
+ "commands",
1274
+ "hydrogen",
1275
+ "env",
1276
+ "pull.js"
1277
+ ]
1278
+ },
1279
+ "hydrogen:env:push__unstable": {
793
1280
  "aliases": [],
1281
+ "args": {},
1282
+ "description": "Push environment variables from the local .env file to your linked Hydrogen storefront.",
794
1283
  "flags": {
795
- "adapter": {
796
- "name": "adapter",
797
- "type": "option",
798
- "description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
799
- "multiple": false
800
- },
801
- "typescript": {
802
- "name": "typescript",
803
- "type": "boolean",
804
- "description": "Generate TypeScript files",
805
- "allowNo": false
806
- },
807
- "locale-param": {
808
- "name": "locale-param",
809
- "type": "option",
810
- "description": "The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).",
811
- "multiple": false
1284
+ "env": {
1285
+ "description": "Specifies an environment's name when using remote environment variables.",
1286
+ "env": "SHOPIFY_HYDROGEN_ENVIRONMENT_NAME",
1287
+ "name": "env",
1288
+ "hasDynamicHelp": false,
1289
+ "multiple": false,
1290
+ "type": "option"
812
1291
  },
813
- "force": {
814
- "name": "force",
815
- "type": "boolean",
816
- "char": "f",
817
- "description": "Overwrite the destination directory and files if they already exist.",
818
- "allowNo": false
1292
+ "env-file": {
1293
+ "description": "Specify the environment variable file name. Default value is '.env'.",
1294
+ "env": "SHOPIFY_HYDROGEN_ENVIRONMENT_FILENAME",
1295
+ "name": "env-file",
1296
+ "hasDynamicHelp": false,
1297
+ "multiple": false,
1298
+ "type": "option"
819
1299
  },
820
1300
  "path": {
1301
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1302
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
821
1303
  "name": "path",
822
- "type": "option",
823
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
824
- "multiple": false
1304
+ "hasDynamicHelp": false,
1305
+ "multiple": false,
1306
+ "type": "option"
825
1307
  }
826
1308
  },
1309
+ "hasDynamicHelp": false,
1310
+ "hidden": true,
1311
+ "hiddenAliases": [],
1312
+ "id": "hydrogen:env:push__unstable",
1313
+ "pluginAlias": "@shopify/cli-hydrogen",
1314
+ "pluginName": "@shopify/cli-hydrogen",
1315
+ "pluginType": "core",
1316
+ "strict": true,
1317
+ "isESM": true,
1318
+ "relativePath": [
1319
+ "dist",
1320
+ "commands",
1321
+ "hydrogen",
1322
+ "env",
1323
+ "push__unstable.js"
1324
+ ]
1325
+ },
1326
+ "hydrogen:generate:route": {
1327
+ "aliases": [],
827
1328
  "args": {
828
1329
  "routeName": {
829
- "name": "routeName",
830
1330
  "description": "The route to generate. One of home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,all.",
831
- "required": true,
1331
+ "name": "routeName",
832
1332
  "options": [
833
1333
  "home",
834
1334
  "page",
@@ -842,86 +1342,135 @@
842
1342
  "robots",
843
1343
  "sitemap",
844
1344
  "all"
845
- ]
1345
+ ],
1346
+ "required": true
846
1347
  }
847
- }
848
- },
849
- "hydrogen:generate:routes": {
850
- "id": "hydrogen:generate:routes",
851
- "description": "Generates all supported standard shopify routes.",
852
- "strict": true,
853
- "pluginName": "@shopify/cli-hydrogen",
854
- "pluginAlias": "@shopify/cli-hydrogen",
855
- "pluginType": "core",
856
- "aliases": [],
1348
+ },
1349
+ "description": "Generates a standard Shopify route.",
857
1350
  "flags": {
858
1351
  "adapter": {
859
- "name": "adapter",
860
- "type": "option",
861
1352
  "description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
862
- "multiple": false
1353
+ "env": "SHOPIFY_HYDROGEN_FLAG_ADAPTER",
1354
+ "name": "adapter",
1355
+ "hasDynamicHelp": false,
1356
+ "multiple": false,
1357
+ "type": "option"
863
1358
  },
864
1359
  "typescript": {
865
- "name": "typescript",
866
- "type": "boolean",
867
1360
  "description": "Generate TypeScript files",
868
- "allowNo": false
1361
+ "env": "SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT",
1362
+ "name": "typescript",
1363
+ "allowNo": false,
1364
+ "type": "boolean"
869
1365
  },
870
1366
  "locale-param": {
871
- "name": "locale-param",
872
- "type": "option",
873
1367
  "description": "The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).",
874
- "multiple": false
1368
+ "env": "SHOPIFY_HYDROGEN_FLAG_ADAPTER",
1369
+ "name": "locale-param",
1370
+ "hasDynamicHelp": false,
1371
+ "multiple": false,
1372
+ "type": "option"
875
1373
  },
876
1374
  "force": {
877
- "name": "force",
878
- "type": "boolean",
879
1375
  "char": "f",
880
- "description": "Overwrite the destination directory and files if they already exist.",
881
- "allowNo": false
1376
+ "description": "Overwrites the destination directory and files if they already exist.",
1377
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
1378
+ "name": "force",
1379
+ "allowNo": false,
1380
+ "type": "boolean"
882
1381
  },
883
1382
  "path": {
1383
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1384
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
884
1385
  "name": "path",
885
- "type": "option",
886
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
887
- "multiple": false
1386
+ "hasDynamicHelp": false,
1387
+ "multiple": false,
1388
+ "type": "option"
888
1389
  }
889
1390
  },
890
- "args": {}
891
- },
892
- "hydrogen:setup:css": {
893
- "id": "hydrogen:setup:css",
894
- "description": "Setup CSS strategies for your project.",
895
- "strict": true,
896
- "pluginName": "@shopify/cli-hydrogen",
1391
+ "hasDynamicHelp": false,
1392
+ "hiddenAliases": [],
1393
+ "id": "hydrogen:generate:route",
897
1394
  "pluginAlias": "@shopify/cli-hydrogen",
1395
+ "pluginName": "@shopify/cli-hydrogen",
898
1396
  "pluginType": "core",
1397
+ "strict": true,
1398
+ "isESM": true,
1399
+ "relativePath": [
1400
+ "dist",
1401
+ "commands",
1402
+ "hydrogen",
1403
+ "generate",
1404
+ "route.js"
1405
+ ]
1406
+ },
1407
+ "hydrogen:generate:routes": {
899
1408
  "aliases": [],
1409
+ "args": {},
1410
+ "description": "Generates all supported standard shopify routes.",
900
1411
  "flags": {
901
- "path": {
902
- "name": "path",
903
- "type": "option",
904
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
905
- "multiple": false
1412
+ "adapter": {
1413
+ "description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
1414
+ "env": "SHOPIFY_HYDROGEN_FLAG_ADAPTER",
1415
+ "name": "adapter",
1416
+ "hasDynamicHelp": false,
1417
+ "multiple": false,
1418
+ "type": "option"
1419
+ },
1420
+ "typescript": {
1421
+ "description": "Generate TypeScript files",
1422
+ "env": "SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT",
1423
+ "name": "typescript",
1424
+ "allowNo": false,
1425
+ "type": "boolean"
1426
+ },
1427
+ "locale-param": {
1428
+ "description": "The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).",
1429
+ "env": "SHOPIFY_HYDROGEN_FLAG_ADAPTER",
1430
+ "name": "locale-param",
1431
+ "hasDynamicHelp": false,
1432
+ "multiple": false,
1433
+ "type": "option"
906
1434
  },
907
1435
  "force": {
908
- "name": "force",
909
- "type": "boolean",
910
1436
  "char": "f",
911
- "description": "Overwrite the destination directory and files if they already exist.",
912
- "allowNo": false
1437
+ "description": "Overwrites the destination directory and files if they already exist.",
1438
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
1439
+ "name": "force",
1440
+ "allowNo": false,
1441
+ "type": "boolean"
913
1442
  },
914
- "install-deps": {
915
- "name": "install-deps",
916
- "type": "boolean",
917
- "description": "Auto install dependencies using the active package manager",
918
- "allowNo": true
1443
+ "path": {
1444
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1445
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
1446
+ "name": "path",
1447
+ "hasDynamicHelp": false,
1448
+ "multiple": false,
1449
+ "type": "option"
919
1450
  }
920
1451
  },
1452
+ "hasDynamicHelp": false,
1453
+ "hiddenAliases": [],
1454
+ "id": "hydrogen:generate:routes",
1455
+ "pluginAlias": "@shopify/cli-hydrogen",
1456
+ "pluginName": "@shopify/cli-hydrogen",
1457
+ "pluginType": "core",
1458
+ "strict": true,
1459
+ "isESM": true,
1460
+ "relativePath": [
1461
+ "dist",
1462
+ "commands",
1463
+ "hydrogen",
1464
+ "generate",
1465
+ "routes.js"
1466
+ ]
1467
+ },
1468
+ "hydrogen:setup:css": {
1469
+ "aliases": [],
921
1470
  "args": {
922
1471
  "strategy": {
923
- "name": "strategy",
924
1472
  "description": "The CSS strategy to setup. One of tailwind,css-modules,vanilla-extract,postcss",
1473
+ "name": "strategy",
925
1474
  "options": [
926
1475
  "tailwind",
927
1476
  "css-modules",
@@ -929,35 +1478,119 @@
929
1478
  "postcss"
930
1479
  ]
931
1480
  }
932
- }
933
- },
934
- "hydrogen:setup:markets": {
935
- "id": "hydrogen:setup:markets",
936
- "description": "Setup support for multiple markets in your project.",
937
- "strict": true,
938
- "pluginName": "@shopify/cli-hydrogen",
939
- "pluginAlias": "@shopify/cli-hydrogen",
940
- "pluginType": "core",
941
- "aliases": [],
1481
+ },
1482
+ "description": "Setup CSS strategies for your project.",
942
1483
  "flags": {
943
1484
  "path": {
1485
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1486
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
944
1487
  "name": "path",
945
- "type": "option",
946
- "description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
947
- "multiple": false
1488
+ "hasDynamicHelp": false,
1489
+ "multiple": false,
1490
+ "type": "option"
1491
+ },
1492
+ "force": {
1493
+ "char": "f",
1494
+ "description": "Overwrites the destination directory and files if they already exist.",
1495
+ "env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
1496
+ "name": "force",
1497
+ "allowNo": false,
1498
+ "type": "boolean"
1499
+ },
1500
+ "install-deps": {
1501
+ "description": "Auto installs dependencies using the active package manager.",
1502
+ "env": "SHOPIFY_HYDROGEN_FLAG_INSTALL_DEPS",
1503
+ "name": "install-deps",
1504
+ "allowNo": true,
1505
+ "type": "boolean"
948
1506
  }
949
1507
  },
1508
+ "hasDynamicHelp": false,
1509
+ "hiddenAliases": [],
1510
+ "id": "hydrogen:setup:css",
1511
+ "pluginAlias": "@shopify/cli-hydrogen",
1512
+ "pluginName": "@shopify/cli-hydrogen",
1513
+ "pluginType": "core",
1514
+ "strict": true,
1515
+ "isESM": true,
1516
+ "relativePath": [
1517
+ "dist",
1518
+ "commands",
1519
+ "hydrogen",
1520
+ "setup",
1521
+ "css.js"
1522
+ ]
1523
+ },
1524
+ "hydrogen:setup:markets": {
1525
+ "aliases": [],
950
1526
  "args": {
951
1527
  "strategy": {
952
- "name": "strategy",
953
1528
  "description": "The URL structure strategy to setup multiple markets. One of subfolders,domains,subdomains",
1529
+ "name": "strategy",
954
1530
  "options": [
955
1531
  "subfolders",
956
1532
  "domains",
957
1533
  "subdomains"
958
1534
  ]
959
1535
  }
960
- }
1536
+ },
1537
+ "description": "Setup support for multiple markets in your project.",
1538
+ "flags": {
1539
+ "path": {
1540
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1541
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
1542
+ "name": "path",
1543
+ "hasDynamicHelp": false,
1544
+ "multiple": false,
1545
+ "type": "option"
1546
+ }
1547
+ },
1548
+ "hasDynamicHelp": false,
1549
+ "hiddenAliases": [],
1550
+ "id": "hydrogen:setup:markets",
1551
+ "pluginAlias": "@shopify/cli-hydrogen",
1552
+ "pluginName": "@shopify/cli-hydrogen",
1553
+ "pluginType": "core",
1554
+ "strict": true,
1555
+ "isESM": true,
1556
+ "relativePath": [
1557
+ "dist",
1558
+ "commands",
1559
+ "hydrogen",
1560
+ "setup",
1561
+ "markets.js"
1562
+ ]
1563
+ },
1564
+ "hydrogen:setup:vite": {
1565
+ "aliases": [],
1566
+ "args": {},
1567
+ "description": "EXPERIMENTAL: Upgrades the project to use Vite.",
1568
+ "flags": {
1569
+ "path": {
1570
+ "description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
1571
+ "env": "SHOPIFY_HYDROGEN_FLAG_PATH",
1572
+ "name": "path",
1573
+ "hasDynamicHelp": false,
1574
+ "multiple": false,
1575
+ "type": "option"
1576
+ }
1577
+ },
1578
+ "hasDynamicHelp": false,
1579
+ "hiddenAliases": [],
1580
+ "id": "hydrogen:setup:vite",
1581
+ "pluginAlias": "@shopify/cli-hydrogen",
1582
+ "pluginName": "@shopify/cli-hydrogen",
1583
+ "pluginType": "core",
1584
+ "strict": true,
1585
+ "isESM": true,
1586
+ "relativePath": [
1587
+ "dist",
1588
+ "commands",
1589
+ "hydrogen",
1590
+ "setup",
1591
+ "vite.js"
1592
+ ]
961
1593
  }
962
- }
1594
+ },
1595
+ "version": "7.1.2"
963
1596
  }