|
7854 | 7854 | "strict": true, |
7855 | 7855 | "summary": "Renames an existing theme." |
7856 | 7856 | }, |
7857 | | - "theme:serve": { |
7858 | | - "aliases": [ |
7859 | | - ], |
7860 | | - "args": { |
7861 | | - }, |
7862 | | - "customPluginName": "@shopify/theme", |
7863 | | - "description": "\n Uploads the current theme as the specified theme, or a \"development theme\" (https://shopify.dev/docs/themes/tools/cli#development-themes), to a store so you can preview it.\n\nThis command returns the following information:\n\n- A link to your development theme at http://127.0.0.1:9292. This URL can hot reload local changes to CSS and sections, or refresh the entire page when a file changes, enabling you to preview changes in real time using the store's data.\n\n You can specify a different network interface and port using `--host` and `--port`.\n\n- A link to the \"editor\" (https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.\n\n- A \"preview link\" (https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.\n\nIf you already have a development theme for your current environment, then this command replaces the development theme with your local theme. You can override this using the `--theme-editor-sync` flag.\n\n> Note: You can't preview checkout customizations using http://127.0.0.1:9292.\n\nDevelopment themes are deleted when you run `shopify auth logout`. If you need a preview link that can be used after you log out, then you should \"share\" (https://shopify.dev/docs/api/shopify-cli/theme/theme-share) your theme or \"push\" (https://shopify.dev/docs/api/shopify-cli/theme/theme-push) to an unpublished theme on your store.\n\nYou can run this command only in a directory that matches the \"default Shopify theme folder structure\" (https://shopify.dev/docs/themes/tools/cli#directory-structure).", |
7864 | | - "descriptionWithMarkdown": "\n Uploads the current theme as the specified theme, or a [development theme](https://shopify.dev/docs/themes/tools/cli#development-themes), to a store so you can preview it.\n\nThis command returns the following information:\n\n- A link to your development theme at http://127.0.0.1:9292. This URL can hot reload local changes to CSS and sections, or refresh the entire page when a file changes, enabling you to preview changes in real time using the store's data.\n\n You can specify a different network interface and port using `--host` and `--port`.\n\n- A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.\n\n- A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.\n\nIf you already have a development theme for your current environment, then this command replaces the development theme with your local theme. You can override this using the `--theme-editor-sync` flag.\n\n> Note: You can't preview checkout customizations using http://127.0.0.1:9292.\n\nDevelopment themes are deleted when you run `shopify auth logout`. If you need a preview link that can be used after you log out, then you should [share](https://shopify.dev/docs/api/shopify-cli/theme/theme-share) your theme or [push](https://shopify.dev/docs/api/shopify-cli/theme/theme-push) to an unpublished theme on your store.\n\nYou can run this command only in a directory that matches the [default Shopify theme folder structure](https://shopify.dev/docs/themes/tools/cli#directory-structure).", |
7865 | | - "flags": { |
7866 | | - "allow-live": { |
7867 | | - "allowNo": false, |
7868 | | - "char": "a", |
7869 | | - "description": "Allow development on a live theme.", |
7870 | | - "env": "SHOPIFY_FLAG_ALLOW_LIVE", |
7871 | | - "name": "allow-live", |
7872 | | - "type": "boolean" |
7873 | | - }, |
7874 | | - "environment": { |
7875 | | - "char": "e", |
7876 | | - "description": "The environment to apply to the current command.", |
7877 | | - "env": "SHOPIFY_FLAG_ENVIRONMENT", |
7878 | | - "hasDynamicHelp": false, |
7879 | | - "multiple": true, |
7880 | | - "name": "environment", |
7881 | | - "type": "option" |
7882 | | - }, |
7883 | | - "error-overlay": { |
7884 | | - "default": "default", |
7885 | | - "description": "Controls the visibility of the error overlay when an theme asset upload fails:\n- silent Prevents the error overlay from appearing.\n- default Displays the error overlay.\n ", |
7886 | | - "env": "SHOPIFY_FLAG_ERROR_OVERLAY", |
7887 | | - "hasDynamicHelp": false, |
7888 | | - "multiple": false, |
7889 | | - "name": "error-overlay", |
7890 | | - "options": [ |
7891 | | - "silent", |
7892 | | - "default" |
7893 | | - ], |
7894 | | - "type": "option" |
7895 | | - }, |
7896 | | - "force": { |
7897 | | - "allowNo": false, |
7898 | | - "char": "f", |
7899 | | - "description": "Proceed without confirmation, if current directory does not seem to be theme directory.", |
7900 | | - "env": "SHOPIFY_FLAG_FORCE", |
7901 | | - "hidden": true, |
7902 | | - "name": "force", |
7903 | | - "type": "boolean" |
7904 | | - }, |
7905 | | - "host": { |
7906 | | - "description": "Set which network interface the web server listens on. The default value is 127.0.0.1.", |
7907 | | - "env": "SHOPIFY_FLAG_HOST", |
7908 | | - "hasDynamicHelp": false, |
7909 | | - "multiple": false, |
7910 | | - "name": "host", |
7911 | | - "type": "option" |
7912 | | - }, |
7913 | | - "ignore": { |
7914 | | - "char": "x", |
7915 | | - "description": "Skip hot reloading any files that match the specified pattern.", |
7916 | | - "env": "SHOPIFY_FLAG_IGNORE", |
7917 | | - "hasDynamicHelp": false, |
7918 | | - "multiple": true, |
7919 | | - "name": "ignore", |
7920 | | - "type": "option" |
7921 | | - }, |
7922 | | - "listing": { |
7923 | | - "description": "The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.", |
7924 | | - "env": "SHOPIFY_FLAG_LISTING", |
7925 | | - "hasDynamicHelp": false, |
7926 | | - "multiple": false, |
7927 | | - "name": "listing", |
7928 | | - "type": "option" |
7929 | | - }, |
7930 | | - "live-reload": { |
7931 | | - "default": "hot-reload", |
7932 | | - "description": "The live reload mode switches the server behavior when a file is modified:\n- hot-reload Hot reloads local changes to CSS and sections (default)\n- full-page Always refreshes the entire page\n- off Deactivate live reload", |
7933 | | - "env": "SHOPIFY_FLAG_LIVE_RELOAD", |
7934 | | - "hasDynamicHelp": false, |
7935 | | - "multiple": false, |
7936 | | - "name": "live-reload", |
7937 | | - "options": [ |
7938 | | - "hot-reload", |
7939 | | - "full-page", |
7940 | | - "off" |
7941 | | - ], |
7942 | | - "type": "option" |
7943 | | - }, |
7944 | | - "no-color": { |
7945 | | - "allowNo": false, |
7946 | | - "description": "Disable color output.", |
7947 | | - "env": "SHOPIFY_FLAG_NO_COLOR", |
7948 | | - "hidden": false, |
7949 | | - "name": "no-color", |
7950 | | - "type": "boolean" |
7951 | | - }, |
7952 | | - "nodelete": { |
7953 | | - "allowNo": false, |
7954 | | - "char": "n", |
7955 | | - "description": "Prevents files from being deleted in the remote theme when a file has been deleted locally. This applies to files that are deleted while the command is running, and files that have been deleted locally before the command is run.", |
7956 | | - "env": "SHOPIFY_FLAG_NODELETE", |
7957 | | - "name": "nodelete", |
7958 | | - "type": "boolean" |
7959 | | - }, |
7960 | | - "notify": { |
7961 | | - "description": "The file path or URL. The file path is to a file that you want updated on idle. The URL path is where you want a webhook posted to report on file changes.", |
7962 | | - "env": "SHOPIFY_FLAG_NOTIFY", |
7963 | | - "hasDynamicHelp": false, |
7964 | | - "multiple": false, |
7965 | | - "name": "notify", |
7966 | | - "type": "option" |
7967 | | - }, |
7968 | | - "only": { |
7969 | | - "char": "o", |
7970 | | - "description": "Hot reload only files that match the specified pattern.", |
7971 | | - "env": "SHOPIFY_FLAG_ONLY", |
7972 | | - "hasDynamicHelp": false, |
7973 | | - "multiple": true, |
7974 | | - "name": "only", |
7975 | | - "type": "option" |
7976 | | - }, |
7977 | | - "open": { |
7978 | | - "allowNo": false, |
7979 | | - "description": "Automatically launch the theme preview in your default web browser.", |
7980 | | - "env": "SHOPIFY_FLAG_OPEN", |
7981 | | - "name": "open", |
7982 | | - "type": "boolean" |
7983 | | - }, |
7984 | | - "password": { |
7985 | | - "description": "Password generated from the Theme Access app or an Admin API token.", |
7986 | | - "env": "SHOPIFY_CLI_THEME_TOKEN", |
7987 | | - "hasDynamicHelp": false, |
7988 | | - "multiple": false, |
7989 | | - "name": "password", |
7990 | | - "type": "option" |
7991 | | - }, |
7992 | | - "path": { |
7993 | | - "description": "The path where you want to run the command. Defaults to the current working directory.", |
7994 | | - "env": "SHOPIFY_FLAG_PATH", |
7995 | | - "hasDynamicHelp": false, |
7996 | | - "multiple": false, |
7997 | | - "name": "path", |
7998 | | - "noCacheDefault": true, |
7999 | | - "type": "option" |
8000 | | - }, |
8001 | | - "poll": { |
8002 | | - "allowNo": false, |
8003 | | - "description": "Force polling to detect file changes.", |
8004 | | - "env": "SHOPIFY_FLAG_POLL", |
8005 | | - "hidden": true, |
8006 | | - "name": "poll", |
8007 | | - "type": "boolean" |
8008 | | - }, |
8009 | | - "port": { |
8010 | | - "description": "Local port to serve theme preview from.", |
8011 | | - "env": "SHOPIFY_FLAG_PORT", |
8012 | | - "hasDynamicHelp": false, |
8013 | | - "multiple": false, |
8014 | | - "name": "port", |
8015 | | - "type": "option" |
8016 | | - }, |
8017 | | - "store": { |
8018 | | - "char": "s", |
8019 | | - "description": "Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).", |
8020 | | - "env": "SHOPIFY_FLAG_STORE", |
8021 | | - "hasDynamicHelp": false, |
8022 | | - "multiple": false, |
8023 | | - "name": "store", |
8024 | | - "type": "option" |
8025 | | - }, |
8026 | | - "store-password": { |
8027 | | - "description": "The password for storefronts with password protection.", |
8028 | | - "env": "SHOPIFY_FLAG_STORE_PASSWORD", |
8029 | | - "hasDynamicHelp": false, |
8030 | | - "multiple": false, |
8031 | | - "name": "store-password", |
8032 | | - "type": "option" |
8033 | | - }, |
8034 | | - "theme": { |
8035 | | - "char": "t", |
8036 | | - "description": "Theme ID or name of the remote theme.", |
8037 | | - "env": "SHOPIFY_FLAG_THEME_ID", |
8038 | | - "hasDynamicHelp": false, |
8039 | | - "multiple": false, |
8040 | | - "name": "theme", |
8041 | | - "type": "option" |
8042 | | - }, |
8043 | | - "theme-editor-sync": { |
8044 | | - "allowNo": false, |
8045 | | - "description": "Synchronize Theme Editor updates in the local theme files.", |
8046 | | - "env": "SHOPIFY_FLAG_THEME_EDITOR_SYNC", |
8047 | | - "name": "theme-editor-sync", |
8048 | | - "type": "boolean" |
8049 | | - }, |
8050 | | - "verbose": { |
8051 | | - "allowNo": false, |
8052 | | - "description": "Increase the verbosity of the output.", |
8053 | | - "env": "SHOPIFY_FLAG_VERBOSE", |
8054 | | - "hidden": false, |
8055 | | - "name": "verbose", |
8056 | | - "type": "boolean" |
8057 | | - } |
8058 | | - }, |
8059 | | - "hasDynamicHelp": false, |
8060 | | - "hidden": true, |
8061 | | - "hiddenAliases": [ |
8062 | | - ], |
8063 | | - "id": "theme:serve", |
8064 | | - "multiEnvironmentsFlags": null, |
8065 | | - "pluginAlias": "@shopify/cli", |
8066 | | - "pluginName": "@shopify/cli", |
8067 | | - "pluginType": "core", |
8068 | | - "summary": "Uploads the current theme as a development theme to the connected store, then prints theme editor and preview URLs to your terminal. While running, changes will push to the store in real time." |
8069 | | - }, |
8070 | 7857 | "theme:share": { |
8071 | 7858 | "aliases": [ |
8072 | 7859 | ], |
|
0 commit comments