-
Notifications
You must be signed in to change notification settings - Fork 219
Description
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Custom templates for a metaobject should be output with the theme package command.
Actual behavior
It does not include the metaobject templates.
Presumably because : https://shopify.dev/docs/api/shopify-cli/theme/theme-package
"Only folders that match the default Shopify theme folder structure are included in the package."
Verbose output
2025-10-06T01:59:44.069Z: Running system process:
· Command: npm prefix
· Working directory: F:/Backup Projects/XXX/src/shopify-theme/My Theme
2025-10-06T01:59:44.464Z: Obtaining the dependency manager in directory .....
2025-10-06T01:59:44.851Z: Getting current session ID...
2025-10-06T01:59:44.853Z: Getting current session ID...
2025-10-06T01:59:45.289Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 428 ms
With response headers:
- x-request-id: 90ce21fb-52e7-4c52-a1cf-2139065fcd55
2025-10-06T01:59:45.291Z: Analytics event sent: {
"command": "theme package",
"time_start": 1759715983587,
"time_end": 1759715984021,
"total_time": 434,
"success": true,
"cli_version": "3.85.4",
"ruby_version": "",
"node_version": "24.0.2",
"is_employee": false,
"uname": "windows amd64",
"env_ci": false,
"env_plugin_installed_any_custom": false,
"env_plugin_installed_shopify": "["@shopify/cli"]",
"env_shell": "powershell",
"env_device_id": "768069f4d907301bbed10e83f2b0f934dfe10a72",
"env_cloud": "localhost",
"env_package_manager": "npm",
"env_is_global": true,
"env_auth_method": "none",
"env_is_wsl": false,
"env_build_repository": "Shopify/cli",
"cmd_app_warning_api_key_deprecation_displayed": false,
"cmd_all_timing_network_ms": 0,
"cmd_all_timing_prompts_ms": 0,
"cmd_all_launcher": "unknown",
"cmd_all_topic": "theme",
"cmd_all_plugin": "@shopify/theme",
"cmd_all_verbose": true,
"cmd_all_path_override": true,
"cmd_all_path_override_hash": "11893f3f41cfb8ebc83c6c88ec48b2ab07f9ebef",
"cmd_all_timing_active_ms": 434,
"cmd_all_exit": "ok",
"user_id": "unknown",
"request_ids": [],
"args": "--verbose",
"env_plugin_installed_all": "["@shopify/cli"]",
"metadata": "{"extraPublic":{},"extraSensitive":{}}"
}
2025-10-06T01:59:45.296Z: Completed command theme package
Reproduction steps
I have created a custom template for a metaobject. Following guidance here : https://shopify.dev/docs/storefronts/themes/architecture/templates/metaobject I have created a custom liquid file under /templates/metaobject/{myMetaObject}.
I'll note I also tried renaming the file to be .json incase that was the issue, made no difference.
shopify theme dev works fine.
shopify theme package does not package the metaobject template as part of the zip.
Operating System
Windows 10
Shopify CLI version (shopify --version)
@shopify/cli/3.85.4 win32-x64 node-v24.0.2
Shell
psh
Node version (run node -v if you're not sure)
v24.0.2
What language and version are you using in your application?
HTML/CSS