@shopify/cli-hydrogen 5.0.2 → 5.1.0
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.
- package/dist/commands/hydrogen/build.js +16 -2
- package/dist/commands/hydrogen/codegen-unstable.js +13 -24
- package/dist/commands/hydrogen/dev.js +45 -39
- package/dist/commands/hydrogen/env/list.js +25 -24
- package/dist/commands/hydrogen/env/list.test.js +46 -43
- package/dist/commands/hydrogen/env/pull.js +53 -25
- package/dist/commands/hydrogen/env/pull.test.js +123 -42
- package/dist/commands/hydrogen/generate/route.js +31 -132
- package/dist/commands/hydrogen/generate/route.test.js +34 -126
- package/dist/commands/hydrogen/init.js +46 -127
- package/dist/commands/hydrogen/init.test.js +352 -100
- package/dist/commands/hydrogen/link.js +70 -69
- package/dist/commands/hydrogen/link.test.js +72 -107
- package/dist/commands/hydrogen/list.js +22 -12
- package/dist/commands/hydrogen/list.test.js +51 -48
- package/dist/commands/hydrogen/login.js +31 -0
- package/dist/commands/hydrogen/logout.js +21 -0
- package/dist/commands/hydrogen/setup/css.js +79 -0
- package/dist/commands/hydrogen/setup/markets.js +53 -0
- package/dist/commands/hydrogen/setup.js +133 -0
- package/dist/commands/hydrogen/shortcut.js +2 -45
- package/dist/commands/hydrogen/shortcut.test.js +10 -37
- package/dist/generator-templates/assets/css-modules/package.json +6 -0
- package/dist/generator-templates/assets/postcss/package.json +10 -0
- package/dist/generator-templates/assets/postcss/postcss.config.js +8 -0
- package/dist/generator-templates/assets/tailwind/package.json +13 -0
- package/dist/generator-templates/assets/tailwind/postcss.config.js +10 -0
- package/dist/generator-templates/assets/tailwind/tailwind.config.js +8 -0
- package/dist/generator-templates/assets/tailwind/tailwind.css +3 -0
- package/dist/generator-templates/assets/vanilla-extract/package.json +9 -0
- package/dist/generator-templates/starter/.eslintignore +5 -0
- package/dist/generator-templates/starter/.eslintrc.js +18 -0
- package/dist/generator-templates/starter/.graphqlrc.yml +1 -0
- package/dist/generator-templates/starter/README.md +40 -0
- package/dist/generator-templates/starter/app/components/Aside.tsx +47 -0
- package/dist/generator-templates/starter/app/components/Cart.tsx +340 -0
- package/dist/generator-templates/starter/app/components/Footer.tsx +99 -0
- package/dist/generator-templates/starter/app/components/Header.tsx +178 -0
- package/dist/generator-templates/starter/app/components/Layout.tsx +95 -0
- package/dist/generator-templates/starter/app/components/Search.tsx +480 -0
- package/dist/generator-templates/starter/app/entry.client.tsx +12 -0
- package/dist/generator-templates/starter/app/entry.server.tsx +33 -0
- package/dist/generator-templates/starter/app/root.tsx +270 -0
- package/dist/generator-templates/starter/app/routes/$.tsx +7 -0
- package/dist/generator-templates/{routes → starter/app/routes}/[robots.txt].tsx +47 -69
- package/dist/generator-templates/starter/app/routes/[sitemap.xml].tsx +174 -0
- package/dist/generator-templates/starter/app/routes/_index.tsx +145 -0
- package/dist/generator-templates/starter/app/routes/account.$.tsx +9 -0
- package/dist/generator-templates/starter/app/routes/account.addresses.tsx +563 -0
- package/dist/generator-templates/starter/app/routes/account.orders.$id.tsx +309 -0
- package/dist/generator-templates/starter/app/routes/account.orders._index.tsx +196 -0
- package/dist/generator-templates/starter/app/routes/account.profile.tsx +289 -0
- package/dist/generator-templates/starter/app/routes/account.tsx +203 -0
- package/dist/generator-templates/starter/app/routes/account_.activate.$id.$activationToken.tsx +157 -0
- package/dist/generator-templates/starter/app/routes/account_.login.tsx +143 -0
- package/dist/generator-templates/starter/app/routes/account_.logout.tsx +33 -0
- package/dist/generator-templates/starter/app/routes/account_.recover.tsx +124 -0
- package/dist/generator-templates/starter/app/routes/account_.register.tsx +207 -0
- package/dist/generator-templates/starter/app/routes/account_.reset.$id.$resetToken.tsx +136 -0
- package/dist/generator-templates/starter/app/routes/api.predictive-search.tsx +342 -0
- package/dist/generator-templates/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +88 -0
- package/dist/generator-templates/starter/app/routes/blogs.$blogHandle._index.tsx +162 -0
- package/dist/generator-templates/starter/app/routes/blogs._index.tsx +94 -0
- package/dist/generator-templates/starter/app/routes/cart.tsx +104 -0
- package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +184 -0
- package/dist/generator-templates/starter/app/routes/collections._index.tsx +120 -0
- package/dist/generator-templates/starter/app/routes/pages.$handle.tsx +57 -0
- package/dist/generator-templates/starter/app/routes/policies.$handle.tsx +94 -0
- package/dist/generator-templates/starter/app/routes/policies._index.tsx +63 -0
- package/dist/generator-templates/starter/app/routes/products.$handle.tsx +418 -0
- package/dist/generator-templates/starter/app/routes/search.tsx +168 -0
- package/dist/generator-templates/starter/app/styles/app.css +473 -0
- package/dist/generator-templates/starter/app/styles/reset.css +129 -0
- package/dist/generator-templates/starter/app/utils.ts +46 -0
- package/dist/generator-templates/starter/package.json +43 -0
- package/dist/generator-templates/starter/public/favicon.svg +28 -0
- package/dist/generator-templates/starter/remix.config.js +26 -0
- package/dist/generator-templates/starter/remix.env.d.ts +39 -0
- package/dist/generator-templates/starter/server.ts +253 -0
- package/dist/generator-templates/starter/storefrontapi.generated.d.ts +1906 -0
- package/dist/generator-templates/starter/tsconfig.json +22 -0
- package/dist/lib/auth.js +123 -0
- package/dist/lib/auth.test.js +157 -0
- package/dist/lib/build.js +51 -0
- package/dist/lib/check-version.js +3 -3
- package/dist/lib/check-version.test.js +24 -0
- package/dist/lib/codegen.js +26 -17
- package/dist/lib/environment-variables.js +68 -0
- package/dist/lib/environment-variables.test.js +147 -0
- package/dist/lib/file.js +41 -0
- package/dist/lib/file.test.js +69 -0
- package/dist/lib/flags.js +39 -2
- package/dist/lib/format-code.js +26 -0
- package/dist/lib/gid.js +12 -0
- package/dist/lib/{graphql.test.js → gid.test.js} +1 -1
- package/dist/lib/graphql/admin/client.js +27 -0
- package/dist/lib/graphql/admin/client.test.js +51 -0
- package/dist/lib/graphql/admin/create-storefront.js +13 -15
- package/dist/lib/graphql/admin/create-storefront.test.js +64 -0
- package/dist/lib/graphql/admin/fetch-job.js +6 -15
- package/dist/lib/graphql/admin/link-storefront.js +7 -11
- package/dist/lib/graphql/admin/link-storefront.test.js +38 -0
- package/dist/lib/graphql/admin/list-environments.js +2 -2
- package/dist/lib/graphql/admin/list-environments.test.js +44 -0
- package/dist/lib/graphql/admin/list-storefronts.js +7 -11
- package/dist/lib/graphql/admin/list-storefronts.test.js +44 -0
- package/dist/lib/graphql/admin/pull-variables.js +3 -3
- package/dist/lib/graphql/admin/pull-variables.test.js +37 -0
- package/dist/lib/graphql/business-platform/user-account.js +83 -0
- package/dist/lib/graphql/business-platform/user-account.test.js +80 -0
- package/dist/lib/log.js +185 -9
- package/dist/lib/log.test.js +92 -0
- package/dist/lib/mini-oxygen.js +19 -9
- package/dist/lib/missing-routes.js +0 -2
- package/dist/lib/onboarding/common.js +456 -0
- package/dist/lib/onboarding/index.js +2 -0
- package/dist/lib/onboarding/local.js +229 -0
- package/dist/lib/onboarding/remote.js +89 -0
- package/dist/lib/remix-version-interop.js +5 -5
- package/dist/lib/remix-version-interop.test.js +11 -1
- package/dist/lib/render-errors.js +13 -11
- package/dist/lib/setups/css/assets.js +89 -0
- package/dist/lib/setups/css/css-modules.js +22 -0
- package/dist/lib/setups/css/index.js +44 -0
- package/dist/lib/setups/css/postcss.js +34 -0
- package/dist/lib/setups/css/replacers.js +137 -0
- package/dist/lib/setups/css/tailwind.js +54 -0
- package/dist/lib/setups/css/vanilla-extract.js +22 -0
- package/dist/lib/setups/i18n/domains.test.js +25 -0
- package/dist/lib/setups/i18n/index.js +46 -0
- package/dist/lib/setups/i18n/replacers.js +227 -0
- package/dist/lib/setups/i18n/subdomains.test.js +25 -0
- package/dist/lib/setups/i18n/subfolders.test.js +25 -0
- package/dist/lib/setups/i18n/templates/domains.js +14 -0
- package/dist/lib/setups/i18n/templates/domains.ts +25 -0
- package/dist/lib/setups/i18n/templates/subdomains.js +14 -0
- package/dist/lib/setups/i18n/templates/subdomains.ts +24 -0
- package/dist/lib/setups/i18n/templates/subfolders.js +14 -0
- package/dist/lib/setups/i18n/templates/subfolders.ts +28 -0
- package/dist/lib/setups/routes/generate.js +244 -0
- package/dist/lib/setups/routes/generate.test.js +313 -0
- package/dist/lib/shell.js +52 -5
- package/dist/lib/shell.test.js +42 -16
- package/dist/lib/shopify-config.js +23 -18
- package/dist/lib/shopify-config.test.js +63 -73
- package/dist/lib/template-downloader.js +9 -7
- package/dist/lib/transpile-ts.js +9 -29
- package/dist/virtual-routes/routes/index.jsx +40 -19
- package/oclif.manifest.json +710 -1
- package/package.json +16 -16
- package/dist/commands/hydrogen/build.d.ts +0 -23
- package/dist/commands/hydrogen/check.d.ts +0 -15
- package/dist/commands/hydrogen/codegen-unstable.d.ts +0 -15
- package/dist/commands/hydrogen/dev.d.ts +0 -21
- package/dist/commands/hydrogen/env/list.d.ts +0 -18
- package/dist/commands/hydrogen/env/pull.d.ts +0 -22
- package/dist/commands/hydrogen/g.d.ts +0 -10
- package/dist/commands/hydrogen/generate/route.d.ts +0 -32
- package/dist/commands/hydrogen/generate/route.test.d.ts +0 -1
- package/dist/commands/hydrogen/generate/routes.d.ts +0 -16
- package/dist/commands/hydrogen/init.d.ts +0 -24
- package/dist/commands/hydrogen/init.test.d.ts +0 -1
- package/dist/commands/hydrogen/link.d.ts +0 -23
- package/dist/commands/hydrogen/link.test.d.ts +0 -1
- package/dist/commands/hydrogen/list.d.ts +0 -21
- package/dist/commands/hydrogen/list.test.d.ts +0 -1
- package/dist/commands/hydrogen/preview.d.ts +0 -17
- package/dist/commands/hydrogen/shortcut.d.ts +0 -9
- package/dist/commands/hydrogen/shortcut.test.d.ts +0 -1
- package/dist/commands/hydrogen/unlink.d.ts +0 -16
- package/dist/commands/hydrogen/unlink.test.d.ts +0 -1
- package/dist/create-app.d.ts +0 -1
- package/dist/generator-templates/routes/[sitemap.xml].tsx +0 -235
- package/dist/generator-templates/routes/account/login.tsx +0 -103
- package/dist/generator-templates/routes/account/register.tsx +0 -103
- package/dist/generator-templates/routes/cart.tsx +0 -81
- package/dist/generator-templates/routes/collections/$collectionHandle.tsx +0 -104
- package/dist/generator-templates/routes/collections/index.tsx +0 -102
- package/dist/generator-templates/routes/graphiql.tsx +0 -10
- package/dist/generator-templates/routes/index.tsx +0 -40
- package/dist/generator-templates/routes/pages/$pageHandle.tsx +0 -112
- package/dist/generator-templates/routes/policies/$policyHandle.tsx +0 -140
- package/dist/generator-templates/routes/policies/index.tsx +0 -117
- package/dist/generator-templates/routes/products/$productHandle.tsx +0 -92
- package/dist/hooks/init.d.ts +0 -5
- package/dist/lib/admin-session.d.ts +0 -6
- package/dist/lib/admin-session.js +0 -16
- package/dist/lib/admin-session.test.d.ts +0 -1
- package/dist/lib/admin-session.test.js +0 -27
- package/dist/lib/admin-urls.d.ts +0 -8
- package/dist/lib/check-lockfile.d.ts +0 -3
- package/dist/lib/check-lockfile.test.d.ts +0 -1
- package/dist/lib/check-version.d.ts +0 -16
- package/dist/lib/check-version.test.d.ts +0 -1
- package/dist/lib/codegen.d.ts +0 -26
- package/dist/lib/combined-environment-variables.d.ts +0 -8
- package/dist/lib/combined-environment-variables.js +0 -57
- package/dist/lib/combined-environment-variables.test.d.ts +0 -1
- package/dist/lib/combined-environment-variables.test.js +0 -111
- package/dist/lib/config.d.ts +0 -20
- package/dist/lib/flags.d.ts +0 -27
- package/dist/lib/flags.test.d.ts +0 -1
- package/dist/lib/graphql/admin/create-storefront.d.ts +0 -17
- package/dist/lib/graphql/admin/fetch-job.d.ts +0 -23
- package/dist/lib/graphql/admin/link-storefront.d.ts +0 -14
- package/dist/lib/graphql/admin/list-environments.d.ts +0 -21
- package/dist/lib/graphql/admin/list-storefronts.d.ts +0 -25
- package/dist/lib/graphql/admin/pull-variables.d.ts +0 -21
- package/dist/lib/graphql.d.ts +0 -21
- package/dist/lib/graphql.js +0 -18
- package/dist/lib/graphql.test.d.ts +0 -1
- package/dist/lib/log.d.ts +0 -6
- package/dist/lib/mini-oxygen.d.ts +0 -22
- package/dist/lib/missing-routes.d.ts +0 -8
- package/dist/lib/missing-routes.test.d.ts +0 -1
- package/dist/lib/missing-storefronts.d.ts +0 -5
- package/dist/lib/missing-storefronts.js +0 -18
- package/dist/lib/process.d.ts +0 -6
- package/dist/lib/pull-environment-variables.d.ts +0 -20
- package/dist/lib/pull-environment-variables.js +0 -57
- package/dist/lib/pull-environment-variables.test.d.ts +0 -1
- package/dist/lib/pull-environment-variables.test.js +0 -174
- package/dist/lib/remix-version-interop.d.ts +0 -11
- package/dist/lib/remix-version-interop.test.d.ts +0 -1
- package/dist/lib/render-errors.d.ts +0 -16
- package/dist/lib/shell.d.ts +0 -11
- package/dist/lib/shell.test.d.ts +0 -1
- package/dist/lib/shop.d.ts +0 -7
- package/dist/lib/shop.js +0 -32
- package/dist/lib/shop.test.d.ts +0 -1
- package/dist/lib/shop.test.js +0 -78
- package/dist/lib/shopify-config.d.ts +0 -35
- package/dist/lib/shopify-config.test.d.ts +0 -1
- package/dist/lib/string.d.ts +0 -3
- package/dist/lib/string.test.d.ts +0 -1
- package/dist/lib/template-downloader.d.ts +0 -6
- package/dist/lib/transpile-ts.d.ts +0 -16
- package/dist/lib/user-errors.d.ts +0 -9
- package/dist/lib/user-errors.js +0 -11
- package/dist/lib/virtual-routes.d.ts +0 -7
- package/dist/lib/virtual-routes.test.d.ts +0 -1
- /package/dist/{commands/hydrogen/env/list.test.d.ts → lib/setups/css/common.js} +0 -0
- /package/dist/{commands/hydrogen/env/pull.test.d.ts → lib/setups/i18n/mock-i18n-types.js} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -1 +1,710 @@
|
|
|
1
|
-
{"version":"5.0.2","commands":{"hydrogen:build":{"id":"hydrogen:build","description":"Builds a Hydrogen storefront for production.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"sourcemap":{"name":"sourcemap","type":"boolean","description":"Generate sourcemaps for the build.","allowNo":false},"disable-route-warning":{"name":"disable-route-warning","type":"boolean","description":"Disable warning about missing standard routes.","allowNo":false},"base":{"name":"base","type":"option","hidden":true,"multiple":false},"entry":{"name":"entry","type":"option","hidden":true,"multiple":false},"target":{"name":"target","type":"option","hidden":true,"multiple":false}},"args":[]},"hydrogen:check":{"id":"hydrogen:check","description":"Returns diagnostic information about a Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[{"name":"resource","description":"The resource to check. Currently only 'routes' is supported.","required":true,"options":["routes"]}]},"hydrogen:codegen-unstable":{"id":"hydrogen:codegen-unstable","description":"Generate types for the Storefront API queries found in your project.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"codegen-config-path":{"name":"codegen-config-path","type":"option","description":"Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.","required":false,"multiple":false},"force-sfapi-version":{"name":"force-sfapi-version","type":"option","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>`.","hidden":true,"multiple":false},"watch":{"name":"watch","type":"boolean","description":"Watch the project for changes to update types on file save.","required":false,"allowNo":false}},"args":[]},"hydrogen:dev":{"id":"hydrogen:dev","description":"Runs Hydrogen storefront in an Oxygen worker for development.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"port":{"name":"port","type":"option","description":"Port to run the server on.","multiple":false,"default":3000},"codegen-unstable":{"name":"codegen-unstable","type":"boolean","description":"Generate types for the Storefront API queries found in your project. It updates the types on file save.","required":false,"allowNo":false},"codegen-config-path":{"name":"codegen-config-path","type":"option","description":"Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.","required":false,"multiple":false,"dependsOn":["codegen-unstable"]},"sourcemap":{"name":"sourcemap","type":"boolean","description":"Generate sourcemaps for the build.","allowNo":true},"disable-virtual-routes":{"name":"disable-virtual-routes","type":"boolean","description":"Disable rendering fallback routes when a route file doesn't exist.","allowNo":false},"shop":{"name":"shop","type":"option","char":"s","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).","multiple":false},"debug":{"name":"debug","type":"boolean","description":"Attaches a Node inspector","allowNo":false},"host":{"name":"host","type":"option","hidden":true,"multiple":false},"env-branch":{"name":"env-branch","type":"option","char":"e","description":"Specify an environment's branch name when using remote environment variables.","multiple":false}},"args":[]},"hydrogen:g":{"id":"hydrogen:g","description":"Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.","strict":false,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"hydrogen:init":{"id":"hydrogen:init","description":"Creates a new Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the new Hydrogen storefront.","multiple":false},"language":{"name":"language","type":"option","description":"Sets the template language to use. One of `js` or `ts`.","multiple":false},"template":{"name":"template","type":"option","description":"Sets the template to use. One of `demo-store` or `hello-world`.","multiple":false},"install-deps":{"name":"install-deps","type":"boolean","description":"Auto install dependencies using the active package manager","allowNo":true}},"args":[]},"hydrogen:link":{"id":"hydrogen:link","description":"Link a local project to one of your shop's Hydrogen storefronts.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","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).","multiple":false},"storefront":{"name":"storefront","type":"option","description":"The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")","multiple":false}},"args":[]},"hydrogen:list":{"id":"hydrogen:list","description":"Returns a list of Hydrogen storefronts available on a given shop.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","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).","multiple":false}},"args":[]},"hydrogen:preview":{"id":"hydrogen:preview","description":"Runs a Hydrogen storefront in an Oxygen worker for production.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"port":{"name":"port","type":"option","description":"Port to run the server on.","multiple":false,"default":3000}},"args":[]},"hydrogen:shortcut":{"id":"hydrogen:shortcut","description":"Creates a global `h2` shortcut for the Hydrogen CLI","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{},"args":[]},"hydrogen:unlink":{"id":"hydrogen:unlink","description":"Unlink a local project from a Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[]},"hydrogen:env:list":{"id":"hydrogen:env:list","description":"List the environments on your linked Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","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).","multiple":false}},"args":[]},"hydrogen:env:pull":{"id":"hydrogen:env:pull","description":"Populate your .env with variables from your Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"env-branch":{"name":"env-branch","type":"option","char":"e","description":"Specify an environment's branch name when using remote environment variables.","multiple":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","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).","multiple":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false}},"args":[]},"hydrogen:generate:route":{"id":"hydrogen:generate:route","description":"Generates a standard Shopify route.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"adapter":{"name":"adapter","type":"option","description":"Remix adapter used in the route. The default is `@shopify/remix-oxygen`.","multiple":false},"typescript":{"name":"typescript","type":"boolean","description":"Generate TypeScript files","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[{"name":"route","description":"The route to generate. One of home,page,cart,products,collections,policies,robots,sitemap,account,all.","required":true,"options":["home","page","cart","products","collections","policies","robots","sitemap","account","all"]}]},"hydrogen:generate:routes":{"id":"hydrogen:generate:routes","description":"Generates all supported standard shopify routes.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"adapter":{"name":"adapter","type":"option","description":"Remix adapter used in the route. The default is `@shopify/remix-oxygen`.","multiple":false},"typescript":{"name":"typescript","type":"boolean","description":"Generate TypeScript files","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[]}}}
|
|
1
|
+
{
|
|
2
|
+
"version": "5.1.0",
|
|
3
|
+
"commands": {
|
|
4
|
+
"hydrogen:build": {
|
|
5
|
+
"id": "hydrogen:build",
|
|
6
|
+
"description": "Builds a Hydrogen storefront for production.",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
9
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"flags": {
|
|
13
|
+
"path": {
|
|
14
|
+
"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
|
|
18
|
+
},
|
|
19
|
+
"sourcemap": {
|
|
20
|
+
"name": "sourcemap",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Generate sourcemaps for the build.",
|
|
23
|
+
"allowNo": false
|
|
24
|
+
},
|
|
25
|
+
"disable-route-warning": {
|
|
26
|
+
"name": "disable-route-warning",
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Disable warning about missing standard routes.",
|
|
29
|
+
"allowNo": false
|
|
30
|
+
},
|
|
31
|
+
"codegen-unstable": {
|
|
32
|
+
"name": "codegen-unstable",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Generate types for the Storefront API queries found in your project.",
|
|
35
|
+
"required": false,
|
|
36
|
+
"allowNo": false
|
|
37
|
+
},
|
|
38
|
+
"codegen-config-path": {
|
|
39
|
+
"name": "codegen-config-path",
|
|
40
|
+
"type": "option",
|
|
41
|
+
"description": "Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",
|
|
42
|
+
"required": false,
|
|
43
|
+
"multiple": false,
|
|
44
|
+
"dependsOn": [
|
|
45
|
+
"codegen-unstable"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"base": {
|
|
49
|
+
"name": "base",
|
|
50
|
+
"type": "option",
|
|
51
|
+
"hidden": true,
|
|
52
|
+
"multiple": false
|
|
53
|
+
},
|
|
54
|
+
"entry": {
|
|
55
|
+
"name": "entry",
|
|
56
|
+
"type": "option",
|
|
57
|
+
"hidden": true,
|
|
58
|
+
"multiple": false
|
|
59
|
+
},
|
|
60
|
+
"target": {
|
|
61
|
+
"name": "target",
|
|
62
|
+
"type": "option",
|
|
63
|
+
"hidden": true,
|
|
64
|
+
"multiple": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"args": {}
|
|
68
|
+
},
|
|
69
|
+
"hydrogen:check": {
|
|
70
|
+
"id": "hydrogen:check",
|
|
71
|
+
"description": "Returns diagnostic information about a Hydrogen storefront.",
|
|
72
|
+
"strict": true,
|
|
73
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
74
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
75
|
+
"pluginType": "core",
|
|
76
|
+
"aliases": [],
|
|
77
|
+
"flags": {
|
|
78
|
+
"path": {
|
|
79
|
+
"name": "path",
|
|
80
|
+
"type": "option",
|
|
81
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
82
|
+
"multiple": false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"args": {
|
|
86
|
+
"resource": {
|
|
87
|
+
"name": "resource",
|
|
88
|
+
"description": "The resource to check. Currently only 'routes' is supported.",
|
|
89
|
+
"required": true,
|
|
90
|
+
"options": [
|
|
91
|
+
"routes"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"hydrogen:codegen-unstable": {
|
|
97
|
+
"id": "hydrogen:codegen-unstable",
|
|
98
|
+
"description": "Generate types for the Storefront API queries found in your project.",
|
|
99
|
+
"strict": true,
|
|
100
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
101
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
102
|
+
"pluginType": "core",
|
|
103
|
+
"aliases": [],
|
|
104
|
+
"flags": {
|
|
105
|
+
"path": {
|
|
106
|
+
"name": "path",
|
|
107
|
+
"type": "option",
|
|
108
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
109
|
+
"multiple": false
|
|
110
|
+
},
|
|
111
|
+
"codegen-config-path": {
|
|
112
|
+
"name": "codegen-config-path",
|
|
113
|
+
"type": "option",
|
|
114
|
+
"description": "Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",
|
|
115
|
+
"required": false,
|
|
116
|
+
"multiple": false
|
|
117
|
+
},
|
|
118
|
+
"force-sfapi-version": {
|
|
119
|
+
"name": "force-sfapi-version",
|
|
120
|
+
"type": "option",
|
|
121
|
+
"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>`.",
|
|
122
|
+
"hidden": true,
|
|
123
|
+
"multiple": false
|
|
124
|
+
},
|
|
125
|
+
"watch": {
|
|
126
|
+
"name": "watch",
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"description": "Watch the project for changes to update types on file save.",
|
|
129
|
+
"required": false,
|
|
130
|
+
"allowNo": false
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"args": {}
|
|
134
|
+
},
|
|
135
|
+
"hydrogen:dev": {
|
|
136
|
+
"id": "hydrogen:dev",
|
|
137
|
+
"description": "Runs Hydrogen storefront in an Oxygen worker for development.",
|
|
138
|
+
"strict": true,
|
|
139
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
140
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
141
|
+
"pluginType": "core",
|
|
142
|
+
"aliases": [],
|
|
143
|
+
"flags": {
|
|
144
|
+
"path": {
|
|
145
|
+
"name": "path",
|
|
146
|
+
"type": "option",
|
|
147
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
148
|
+
"multiple": false
|
|
149
|
+
},
|
|
150
|
+
"port": {
|
|
151
|
+
"name": "port",
|
|
152
|
+
"type": "option",
|
|
153
|
+
"description": "Port to run the server on.",
|
|
154
|
+
"multiple": false,
|
|
155
|
+
"default": 3000
|
|
156
|
+
},
|
|
157
|
+
"codegen-unstable": {
|
|
158
|
+
"name": "codegen-unstable",
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"description": "Generate types for the Storefront API queries found in your project. It updates the types on file save.",
|
|
161
|
+
"required": false,
|
|
162
|
+
"allowNo": false
|
|
163
|
+
},
|
|
164
|
+
"codegen-config-path": {
|
|
165
|
+
"name": "codegen-config-path",
|
|
166
|
+
"type": "option",
|
|
167
|
+
"description": "Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",
|
|
168
|
+
"required": false,
|
|
169
|
+
"multiple": false,
|
|
170
|
+
"dependsOn": [
|
|
171
|
+
"codegen-unstable"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"sourcemap": {
|
|
175
|
+
"name": "sourcemap",
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"description": "Generate sourcemaps for the build.",
|
|
178
|
+
"allowNo": true
|
|
179
|
+
},
|
|
180
|
+
"disable-virtual-routes": {
|
|
181
|
+
"name": "disable-virtual-routes",
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"description": "Disable rendering fallback routes when a route file doesn't exist.",
|
|
184
|
+
"allowNo": false
|
|
185
|
+
},
|
|
186
|
+
"debug": {
|
|
187
|
+
"name": "debug",
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"description": "Attaches a Node inspector",
|
|
190
|
+
"allowNo": false
|
|
191
|
+
},
|
|
192
|
+
"host": {
|
|
193
|
+
"name": "host",
|
|
194
|
+
"type": "option",
|
|
195
|
+
"hidden": true,
|
|
196
|
+
"multiple": false
|
|
197
|
+
},
|
|
198
|
+
"env-branch": {
|
|
199
|
+
"name": "env-branch",
|
|
200
|
+
"type": "option",
|
|
201
|
+
"char": "e",
|
|
202
|
+
"description": "Specify an environment's branch name when using remote environment variables.",
|
|
203
|
+
"multiple": false
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"args": {}
|
|
207
|
+
},
|
|
208
|
+
"hydrogen:g": {
|
|
209
|
+
"id": "hydrogen:g",
|
|
210
|
+
"description": "Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.",
|
|
211
|
+
"strict": false,
|
|
212
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
213
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
214
|
+
"pluginType": "core",
|
|
215
|
+
"hidden": true,
|
|
216
|
+
"aliases": [],
|
|
217
|
+
"flags": {},
|
|
218
|
+
"args": {}
|
|
219
|
+
},
|
|
220
|
+
"hydrogen:init": {
|
|
221
|
+
"id": "hydrogen:init",
|
|
222
|
+
"description": "Creates a new Hydrogen storefront.",
|
|
223
|
+
"strict": true,
|
|
224
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
225
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
226
|
+
"pluginType": "core",
|
|
227
|
+
"aliases": [],
|
|
228
|
+
"flags": {
|
|
229
|
+
"force": {
|
|
230
|
+
"name": "force",
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"char": "f",
|
|
233
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
234
|
+
"allowNo": false
|
|
235
|
+
},
|
|
236
|
+
"path": {
|
|
237
|
+
"name": "path",
|
|
238
|
+
"type": "option",
|
|
239
|
+
"description": "The path to the directory of the new Hydrogen storefront.",
|
|
240
|
+
"multiple": false
|
|
241
|
+
},
|
|
242
|
+
"language": {
|
|
243
|
+
"name": "language",
|
|
244
|
+
"type": "option",
|
|
245
|
+
"description": "Sets the template language to use. One of `js` or `ts`.",
|
|
246
|
+
"multiple": false
|
|
247
|
+
},
|
|
248
|
+
"template": {
|
|
249
|
+
"name": "template",
|
|
250
|
+
"type": "option",
|
|
251
|
+
"description": "Sets the template to use. Pass `demo-store` for a fully-featured store template or `hello-world` for a barebones project.",
|
|
252
|
+
"multiple": false
|
|
253
|
+
},
|
|
254
|
+
"install-deps": {
|
|
255
|
+
"name": "install-deps",
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"description": "Auto install dependencies using the active package manager",
|
|
258
|
+
"allowNo": true
|
|
259
|
+
},
|
|
260
|
+
"mock-shop": {
|
|
261
|
+
"name": "mock-shop",
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"description": "Use mock.shop as the data source for the storefront.",
|
|
264
|
+
"allowNo": false
|
|
265
|
+
},
|
|
266
|
+
"styling": {
|
|
267
|
+
"name": "styling",
|
|
268
|
+
"type": "option",
|
|
269
|
+
"description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`.",
|
|
270
|
+
"multiple": false
|
|
271
|
+
},
|
|
272
|
+
"markets": {
|
|
273
|
+
"name": "markets",
|
|
274
|
+
"type": "option",
|
|
275
|
+
"description": "Sets the URL structure to support multiple markets. One of `subfolders`, `domains`, `subdomains`, `none`.",
|
|
276
|
+
"multiple": false
|
|
277
|
+
},
|
|
278
|
+
"shortcut": {
|
|
279
|
+
"name": "shortcut",
|
|
280
|
+
"type": "boolean",
|
|
281
|
+
"description": "Create a shortcut to the Shopify Hydrogen CLI.",
|
|
282
|
+
"allowNo": true
|
|
283
|
+
},
|
|
284
|
+
"routes": {
|
|
285
|
+
"name": "routes",
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"description": "Generate routes for all pages.",
|
|
288
|
+
"hidden": true,
|
|
289
|
+
"allowNo": false
|
|
290
|
+
},
|
|
291
|
+
"git": {
|
|
292
|
+
"name": "git",
|
|
293
|
+
"type": "boolean",
|
|
294
|
+
"description": "Init Git and create initial commits.",
|
|
295
|
+
"allowNo": true
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"args": {}
|
|
299
|
+
},
|
|
300
|
+
"hydrogen:link": {
|
|
301
|
+
"id": "hydrogen:link",
|
|
302
|
+
"description": "Link a local project to one of your shop's Hydrogen storefronts.",
|
|
303
|
+
"strict": true,
|
|
304
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
305
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
306
|
+
"pluginType": "core",
|
|
307
|
+
"aliases": [],
|
|
308
|
+
"flags": {
|
|
309
|
+
"force": {
|
|
310
|
+
"name": "force",
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"char": "f",
|
|
313
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
314
|
+
"allowNo": false
|
|
315
|
+
},
|
|
316
|
+
"path": {
|
|
317
|
+
"name": "path",
|
|
318
|
+
"type": "option",
|
|
319
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
320
|
+
"multiple": false
|
|
321
|
+
},
|
|
322
|
+
"storefront": {
|
|
323
|
+
"name": "storefront",
|
|
324
|
+
"type": "option",
|
|
325
|
+
"description": "The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")",
|
|
326
|
+
"multiple": false
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"args": {}
|
|
330
|
+
},
|
|
331
|
+
"hydrogen:list": {
|
|
332
|
+
"id": "hydrogen:list",
|
|
333
|
+
"description": "Returns a list of Hydrogen storefronts available on a given shop.",
|
|
334
|
+
"strict": true,
|
|
335
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
336
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
337
|
+
"pluginType": "core",
|
|
338
|
+
"aliases": [],
|
|
339
|
+
"flags": {
|
|
340
|
+
"path": {
|
|
341
|
+
"name": "path",
|
|
342
|
+
"type": "option",
|
|
343
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
344
|
+
"multiple": false
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"args": {}
|
|
348
|
+
},
|
|
349
|
+
"hydrogen:login": {
|
|
350
|
+
"id": "hydrogen:login",
|
|
351
|
+
"description": "Login to your Shopify account.",
|
|
352
|
+
"strict": true,
|
|
353
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
354
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
355
|
+
"pluginType": "core",
|
|
356
|
+
"aliases": [],
|
|
357
|
+
"flags": {
|
|
358
|
+
"path": {
|
|
359
|
+
"name": "path",
|
|
360
|
+
"type": "option",
|
|
361
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
362
|
+
"multiple": false
|
|
363
|
+
},
|
|
364
|
+
"shop": {
|
|
365
|
+
"name": "shop",
|
|
366
|
+
"type": "option",
|
|
367
|
+
"char": "s",
|
|
368
|
+
"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).",
|
|
369
|
+
"multiple": false
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"args": {}
|
|
373
|
+
},
|
|
374
|
+
"hydrogen:logout": {
|
|
375
|
+
"id": "hydrogen:logout",
|
|
376
|
+
"description": "Logout of your local session.",
|
|
377
|
+
"strict": true,
|
|
378
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
379
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
380
|
+
"pluginType": "core",
|
|
381
|
+
"aliases": [],
|
|
382
|
+
"flags": {
|
|
383
|
+
"path": {
|
|
384
|
+
"name": "path",
|
|
385
|
+
"type": "option",
|
|
386
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
387
|
+
"multiple": false
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"args": {}
|
|
391
|
+
},
|
|
392
|
+
"hydrogen:preview": {
|
|
393
|
+
"id": "hydrogen:preview",
|
|
394
|
+
"description": "Runs a Hydrogen storefront in an Oxygen worker for production.",
|
|
395
|
+
"strict": true,
|
|
396
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
397
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
398
|
+
"pluginType": "core",
|
|
399
|
+
"aliases": [],
|
|
400
|
+
"flags": {
|
|
401
|
+
"path": {
|
|
402
|
+
"name": "path",
|
|
403
|
+
"type": "option",
|
|
404
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
405
|
+
"multiple": false
|
|
406
|
+
},
|
|
407
|
+
"port": {
|
|
408
|
+
"name": "port",
|
|
409
|
+
"type": "option",
|
|
410
|
+
"description": "Port to run the server on.",
|
|
411
|
+
"multiple": false,
|
|
412
|
+
"default": 3000
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"args": {}
|
|
416
|
+
},
|
|
417
|
+
"hydrogen:setup": {
|
|
418
|
+
"id": "hydrogen:setup",
|
|
419
|
+
"description": "Scaffold routes and core functionality.",
|
|
420
|
+
"strict": true,
|
|
421
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
422
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
423
|
+
"pluginType": "core",
|
|
424
|
+
"aliases": [],
|
|
425
|
+
"flags": {
|
|
426
|
+
"path": {
|
|
427
|
+
"name": "path",
|
|
428
|
+
"type": "option",
|
|
429
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
430
|
+
"multiple": false
|
|
431
|
+
},
|
|
432
|
+
"force": {
|
|
433
|
+
"name": "force",
|
|
434
|
+
"type": "boolean",
|
|
435
|
+
"char": "f",
|
|
436
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
437
|
+
"allowNo": false
|
|
438
|
+
},
|
|
439
|
+
"styling": {
|
|
440
|
+
"name": "styling",
|
|
441
|
+
"type": "option",
|
|
442
|
+
"description": "Sets the styling strategy to use. One of `tailwind`, `css-modules`, `vanilla-extract`, `postcss`.",
|
|
443
|
+
"multiple": false
|
|
444
|
+
},
|
|
445
|
+
"markets": {
|
|
446
|
+
"name": "markets",
|
|
447
|
+
"type": "option",
|
|
448
|
+
"description": "Sets the URL structure to support multiple markets. One of `subfolders`, `domains`, `subdomains`, `none`.",
|
|
449
|
+
"multiple": false
|
|
450
|
+
},
|
|
451
|
+
"shortcut": {
|
|
452
|
+
"name": "shortcut",
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"description": "Create a shortcut to the Shopify Hydrogen CLI.",
|
|
455
|
+
"allowNo": true
|
|
456
|
+
},
|
|
457
|
+
"install-deps": {
|
|
458
|
+
"name": "install-deps",
|
|
459
|
+
"type": "boolean",
|
|
460
|
+
"description": "Auto install dependencies using the active package manager",
|
|
461
|
+
"allowNo": true
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"args": {}
|
|
465
|
+
},
|
|
466
|
+
"hydrogen:shortcut": {
|
|
467
|
+
"id": "hydrogen:shortcut",
|
|
468
|
+
"description": "Creates a global `h2` shortcut for the Hydrogen CLI",
|
|
469
|
+
"strict": true,
|
|
470
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
471
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
472
|
+
"pluginType": "core",
|
|
473
|
+
"aliases": [],
|
|
474
|
+
"flags": {},
|
|
475
|
+
"args": {}
|
|
476
|
+
},
|
|
477
|
+
"hydrogen:unlink": {
|
|
478
|
+
"id": "hydrogen:unlink",
|
|
479
|
+
"description": "Unlink a local project from a Hydrogen storefront.",
|
|
480
|
+
"strict": true,
|
|
481
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
482
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
483
|
+
"pluginType": "core",
|
|
484
|
+
"aliases": [],
|
|
485
|
+
"flags": {
|
|
486
|
+
"path": {
|
|
487
|
+
"name": "path",
|
|
488
|
+
"type": "option",
|
|
489
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
490
|
+
"multiple": false
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"args": {}
|
|
494
|
+
},
|
|
495
|
+
"hydrogen:env:list": {
|
|
496
|
+
"id": "hydrogen:env:list",
|
|
497
|
+
"description": "List the environments on your linked Hydrogen storefront.",
|
|
498
|
+
"strict": true,
|
|
499
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
500
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
501
|
+
"pluginType": "core",
|
|
502
|
+
"aliases": [],
|
|
503
|
+
"flags": {
|
|
504
|
+
"path": {
|
|
505
|
+
"name": "path",
|
|
506
|
+
"type": "option",
|
|
507
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
508
|
+
"multiple": false
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"args": {}
|
|
512
|
+
},
|
|
513
|
+
"hydrogen:env:pull": {
|
|
514
|
+
"id": "hydrogen:env:pull",
|
|
515
|
+
"description": "Populate your .env with variables from your Hydrogen storefront.",
|
|
516
|
+
"strict": true,
|
|
517
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
518
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
519
|
+
"pluginType": "core",
|
|
520
|
+
"aliases": [],
|
|
521
|
+
"flags": {
|
|
522
|
+
"env-branch": {
|
|
523
|
+
"name": "env-branch",
|
|
524
|
+
"type": "option",
|
|
525
|
+
"char": "e",
|
|
526
|
+
"description": "Specify an environment's branch name when using remote environment variables.",
|
|
527
|
+
"multiple": false
|
|
528
|
+
},
|
|
529
|
+
"path": {
|
|
530
|
+
"name": "path",
|
|
531
|
+
"type": "option",
|
|
532
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
533
|
+
"multiple": false
|
|
534
|
+
},
|
|
535
|
+
"force": {
|
|
536
|
+
"name": "force",
|
|
537
|
+
"type": "boolean",
|
|
538
|
+
"char": "f",
|
|
539
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
540
|
+
"allowNo": false
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"args": {}
|
|
544
|
+
},
|
|
545
|
+
"hydrogen:generate:route": {
|
|
546
|
+
"id": "hydrogen:generate:route",
|
|
547
|
+
"description": "Generates a standard Shopify route.",
|
|
548
|
+
"strict": true,
|
|
549
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
550
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
551
|
+
"pluginType": "core",
|
|
552
|
+
"aliases": [],
|
|
553
|
+
"flags": {
|
|
554
|
+
"adapter": {
|
|
555
|
+
"name": "adapter",
|
|
556
|
+
"type": "option",
|
|
557
|
+
"description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
|
|
558
|
+
"multiple": false
|
|
559
|
+
},
|
|
560
|
+
"typescript": {
|
|
561
|
+
"name": "typescript",
|
|
562
|
+
"type": "boolean",
|
|
563
|
+
"description": "Generate TypeScript files",
|
|
564
|
+
"allowNo": false
|
|
565
|
+
},
|
|
566
|
+
"force": {
|
|
567
|
+
"name": "force",
|
|
568
|
+
"type": "boolean",
|
|
569
|
+
"char": "f",
|
|
570
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
571
|
+
"allowNo": false
|
|
572
|
+
},
|
|
573
|
+
"path": {
|
|
574
|
+
"name": "path",
|
|
575
|
+
"type": "option",
|
|
576
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
577
|
+
"multiple": false
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"args": {
|
|
581
|
+
"routeName": {
|
|
582
|
+
"name": "routeName",
|
|
583
|
+
"description": "The route to generate. One of home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,all.",
|
|
584
|
+
"required": true,
|
|
585
|
+
"options": [
|
|
586
|
+
"home",
|
|
587
|
+
"page",
|
|
588
|
+
"cart",
|
|
589
|
+
"products",
|
|
590
|
+
"collections",
|
|
591
|
+
"policies",
|
|
592
|
+
"blogs",
|
|
593
|
+
"account",
|
|
594
|
+
"search",
|
|
595
|
+
"robots",
|
|
596
|
+
"sitemap",
|
|
597
|
+
"all"
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"hydrogen:generate:routes": {
|
|
603
|
+
"id": "hydrogen:generate:routes",
|
|
604
|
+
"description": "Generates all supported standard shopify routes.",
|
|
605
|
+
"strict": true,
|
|
606
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
607
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
608
|
+
"pluginType": "core",
|
|
609
|
+
"aliases": [],
|
|
610
|
+
"flags": {
|
|
611
|
+
"adapter": {
|
|
612
|
+
"name": "adapter",
|
|
613
|
+
"type": "option",
|
|
614
|
+
"description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
|
|
615
|
+
"multiple": false
|
|
616
|
+
},
|
|
617
|
+
"typescript": {
|
|
618
|
+
"name": "typescript",
|
|
619
|
+
"type": "boolean",
|
|
620
|
+
"description": "Generate TypeScript files",
|
|
621
|
+
"allowNo": false
|
|
622
|
+
},
|
|
623
|
+
"force": {
|
|
624
|
+
"name": "force",
|
|
625
|
+
"type": "boolean",
|
|
626
|
+
"char": "f",
|
|
627
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
628
|
+
"allowNo": false
|
|
629
|
+
},
|
|
630
|
+
"path": {
|
|
631
|
+
"name": "path",
|
|
632
|
+
"type": "option",
|
|
633
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
634
|
+
"multiple": false
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"args": {}
|
|
638
|
+
},
|
|
639
|
+
"hydrogen:setup:css": {
|
|
640
|
+
"id": "hydrogen:setup:css",
|
|
641
|
+
"description": "Setup CSS strategies for your project.",
|
|
642
|
+
"strict": true,
|
|
643
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
644
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
645
|
+
"pluginType": "core",
|
|
646
|
+
"aliases": [],
|
|
647
|
+
"flags": {
|
|
648
|
+
"path": {
|
|
649
|
+
"name": "path",
|
|
650
|
+
"type": "option",
|
|
651
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
652
|
+
"multiple": false
|
|
653
|
+
},
|
|
654
|
+
"force": {
|
|
655
|
+
"name": "force",
|
|
656
|
+
"type": "boolean",
|
|
657
|
+
"char": "f",
|
|
658
|
+
"description": "Overwrite the destination directory and files if they already exist.",
|
|
659
|
+
"allowNo": false
|
|
660
|
+
},
|
|
661
|
+
"install-deps": {
|
|
662
|
+
"name": "install-deps",
|
|
663
|
+
"type": "boolean",
|
|
664
|
+
"description": "Auto install dependencies using the active package manager",
|
|
665
|
+
"allowNo": true
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"args": {
|
|
669
|
+
"strategy": {
|
|
670
|
+
"name": "strategy",
|
|
671
|
+
"description": "The CSS strategy to setup. One of tailwind,css-modules,vanilla-extract,postcss",
|
|
672
|
+
"options": [
|
|
673
|
+
"tailwind",
|
|
674
|
+
"css-modules",
|
|
675
|
+
"vanilla-extract",
|
|
676
|
+
"postcss"
|
|
677
|
+
]
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"hydrogen:setup:markets": {
|
|
682
|
+
"id": "hydrogen:setup:markets",
|
|
683
|
+
"description": "Setup support for multiple markets in your project.",
|
|
684
|
+
"strict": true,
|
|
685
|
+
"pluginName": "@shopify/cli-hydrogen",
|
|
686
|
+
"pluginAlias": "@shopify/cli-hydrogen",
|
|
687
|
+
"pluginType": "core",
|
|
688
|
+
"aliases": [],
|
|
689
|
+
"flags": {
|
|
690
|
+
"path": {
|
|
691
|
+
"name": "path",
|
|
692
|
+
"type": "option",
|
|
693
|
+
"description": "The path to the directory of the Hydrogen storefront. The default is the current directory.",
|
|
694
|
+
"multiple": false
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
"args": {
|
|
698
|
+
"strategy": {
|
|
699
|
+
"name": "strategy",
|
|
700
|
+
"description": "The URL structure strategy to setup multiple markets. One of subfolders,domains,subdomains",
|
|
701
|
+
"options": [
|
|
702
|
+
"subfolders",
|
|
703
|
+
"domains",
|
|
704
|
+
"subdomains"
|
|
705
|
+
]
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|