{"id":28510091,"url":"https://github.com/odestry/shopify-cli-3-workshop","last_synced_at":"2025-07-03T02:30:58.189Z","repository":{"id":63139940,"uuid":"565457138","full_name":"odestry/shopify-cli-3-workshop","owner":"odestry","description":"A demo made with Dawn theme to showcase how to use Shopify CLI 3.X for themes.","archived":false,"fork":false,"pushed_at":"2024-08-11T13:55:11.000Z","size":638,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T05:11:57.114Z","etag":null,"topics":["cli","shopify","themes"],"latest_commit_sha":null,"homepage":"","language":"Liquid","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/odestry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-13T13:28:39.000Z","updated_at":"2025-01-03T13:04:15.000Z","dependencies_parsed_at":"2024-08-12T00:31:11.125Z","dependency_job_id":null,"html_url":"https://github.com/odestry/shopify-cli-3-workshop","commit_stats":null,"previous_names":["odestry/shopify-cli-3-workshop"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/odestry/shopify-cli-3-workshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odestry%2Fshopify-cli-3-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odestry%2Fshopify-cli-3-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odestry%2Fshopify-cli-3-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odestry%2Fshopify-cli-3-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odestry","download_url":"https://codeload.github.com/odestry/shopify-cli-3-workshop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odestry%2Fshopify-cli-3-workshop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263247191,"owners_count":23436808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","shopify","themes"],"created_at":"2025-06-08T22:38:00.210Z","updated_at":"2025-07-03T02:30:58.182Z","avatar_url":"https://github.com/odestry.png","language":"Liquid","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopify CLI 3.X workshop\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat\u0026colorA=338fbb\u0026colorB=1c1c1c\u0026logoColor=ffffff)](https://github.com/odestry/.github/blob/main/CONTRIBUTING.md)\n[![Discord Shield](https://img.shields.io/discord/983602196493004820?style=flat\u0026colorA=338fbb\u0026colorB=1c1c1c\u0026label=discord\u0026logo=discord\u0026logoColor=ffffff)](https://discord.gg/blanklob-community-983602196493004820)\n\n[Video guide](#video-guide) |\n[Getting started](#getting-started) |\n[Caveats](#caveats) |\n[Contributing](#contributing) |\n[About](#about) |\n[License](#license)\n\n\u003e Please note that Shopify might change this in the future, so you might wanna check if Shopify implimented a better way to handle mutlitple enviroments natively before using this work-around.\n\n## Video guide\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://youtu.be/keRtZNx_cco\"\u003e\n    \u003cimg src=\"https://img.youtube.com/vi/keRtZNx_cco/maxresdefault.jpg\" alt=\"Watch the video\" style=\"width:100%;\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\nAn overview of the Shopify CLI 3.X and how to use it with themes and to deploy themes programmatically to multiple stores, please keep in mind that you can still use Shopify Github integration to handle deployment.\n\n## Getting started\n\nBefore getting started, make sure you migrate to the lastest Shopify CLI 3.X version at least 3.2.0 and you are using 14 node version or above, to avoid any issues.\n\n- Shopify CLI 3.X\n- Node 14.0.0 or above\n\nHere is the Shopify CLI 3.0 [migration guide](https://shopify.dev/themes/tools/cli/migrate) for more informations.\n\n### Clone the theme\n\nYou can clone the project using either the git clone commande or the Shopify theme init command.\n\n```bash\nshopify theme init -u https://github.com/blanklob/shopify-cli-3-themes-demo \n# or \ngit clone https://github.com/blanklob/shopify-cli-3-themes-demo demo-store \n```\n\nThen cd into the project folder.\n\n### Install the dependencies\n\nOnce first step is done, start by installing the dependencies, with either yarn, npm, or pnpm\n\n```bash\nnpm install\n```\n\n### Replace the naming of the configuration files\n\nOnce the second step is done all you have to do is remove the `.tpl` keyword in the file, or create a new file, without the tpl, the new file will be ignored by git, and start filling it with proper enviroments variable values.\n\n### Replace the enviroment variables in the configuration files\n\nChoose which configuration file you want to choose, by default it's the `shopify.presets.json` json version, then replace all enviroement variables with proper values, mainly these values for each enviroment, and you can also remove or change enviroments name in the configuration, just make sure you do the same in the `package.json` scripts part after the `-e` flag.\n\nSupported enviroments variables:\n\n- `SHOPIFY_CLI_THEME_TOKEN` : This is a private token, can be claimed using the [Theme Access Shopify Public](https://apps.shopify.com/theme-access) app. (required for programatic use)\n- `SHOPIFY_FLAG_STORE` : The store handle or url example: blanklob.myshopify.com or just blanklob. (required for programatic use)\n- `SHOPIFY_FLAG_THEME_ID` : the name or the theme id that you want push to, if the theme deosn't exist make sure you add `-u` flag to the commande, so Shopify CLI will create a new theme. (required for programatic use)\n- `SHOPIFY_FLAG_PATH` : The path to theme folder. Default '.' an example would be: './dist'\n\n\u003e Make sure you don't commit your presets file to github, or add secrets to package.json, the `SHOPIFY_CLI_THEME_TOKEN` is a private token, that should not be shared publicly.\n\n## Caveats\n\nThere are some few caveats to this workflow, the first is that the `shopify theme dev` command deosn't support `--password` flag which means it deosn't support programtic auth, you need to authenticate every 90 minutes, to use the command on a specific store, this is one of the few issues that are discussed in the Shopify CLI 3.0 repo. Check refrences below for more informations.\n\n### References\n\n- Add support for theme password flag in dev command in the Shopify CLI [bug issue](https://github.com/Shopify/cli/issues/695).\n\n## Contributing\n\nWe'd love your help! Please read our [contributing guide](https://github.com/odestry/.github/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements.\n\n## About\n\nOdestry isn't just a community; it's a group of dedicated folks all aiming to build better commerce together. Our mission is to create a supportive and open space where anyone, regardless of experience, can connect, learn, and grow. Here, you'll get inspired, have real talks, and find plenty of resources and open source tools to help you build. Whether you're looking to network, find opportunities, or just have meaningful conversations, join us and be part of a community that values authenticity, collaboration, and innovation. [Learn more](https://odestry.com).\n\n## License\n\nCopyright (c) 2024-present Odestry. See [LICENSE](/LICENSE.md) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodestry%2Fshopify-cli-3-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodestry%2Fshopify-cli-3-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodestry%2Fshopify-cli-3-workshop/lists"}