{"id":13630482,"url":"https://github.com/bigcommerce/stencil-cli","last_synced_at":"2025-03-31T01:10:47.880Z","repository":{"id":30075685,"uuid":"33625217","full_name":"bigcommerce/stencil-cli","owner":"bigcommerce","description":"BigCommerce Stencil emulator for local theme development","archived":false,"fork":false,"pushed_at":"2024-09-26T16:44:15.000Z","size":28790,"stargazers_count":102,"open_issues_count":165,"forks_count":140,"subscribers_count":83,"default_branch":"master","last_synced_at":"2024-10-29T20:53:11.302Z","etag":null,"topics":["bigcommerce","cli","nodejs","webpack"],"latest_commit_sha":null,"homepage":"https://developer.bigcommerce.com/stencil-docs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-4-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigcommerce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-08T18:40:41.000Z","updated_at":"2024-10-24T19:55:56.000Z","dependencies_parsed_at":"2023-12-15T20:23:04.834Z","dependency_job_id":"5536ffb6-73b2-483c-b497-17728f8fd8e8","html_url":"https://github.com/bigcommerce/stencil-cli","commit_stats":{"total_commits":752,"total_committers":88,"mean_commits":8.545454545454545,"dds":0.8803191489361702,"last_synced_commit":"0926e81f0fff0290d2aeb69002e0e8220060062b"},"previous_names":[],"tags_count":113,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fstencil-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fstencil-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fstencil-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fstencil-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigcommerce","download_url":"https://codeload.github.com/bigcommerce/stencil-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399796,"owners_count":20770908,"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":["bigcommerce","cli","nodejs","webpack"],"created_at":"2024-08-01T22:01:44.645Z","updated_at":"2025-03-31T01:10:47.863Z","avatar_url":"https://github.com/bigcommerce.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Stencil CLI\n\n[![npm (scoped)](https://img.shields.io/npm/v/@bigcommerce/stencil-cli.svg)](https://www.npmjs.com/package/@bigcommerce/stencil-cli)\n![tests](https://github.com/bigcommerce/stencil-cli/workflows/Tests/badge.svg?branch=master)\n\nThe BigCommerce server emulator for local theme development.\n\n## Install\n\nNote: Stencil requires the Node.js runtime environment,\nversions 20.x are supported.\n\nRun `npm install -g @bigcommerce/stencil-cli`.\n\nVisit the [installation guide](https://developer.bigcommerce.com/stencil-docs/getting-started/installing-stencil)\nfor more details.\n\n## Usage\n\n```text\nUsage: stencil [options] [command]\n\nCommands:\n\n  init        Interactively create a .stencil file which configures how to run a BigCommerce store locally.\n  start       Starts up the BigCommerce storefront local development environment, using theme files in the current directory and data from the live store.\n  bundle      Bundles up the theme into a zip file which can be uploaded to BigCommerce.\n  release     Create a new release in the theme's github repository.\n  push        Bundles up the theme into a zip file and uploads it to your store.\n  pull        Pulls the configuration from the active theme on your live store and updates your local configuration.\n  download    Downloads the theme files from the active theme on your live store.\n  debug       Prints environment and theme settings for debug purposes.\n  help [cmd]  display help for [cmd]\n\nOptions:\n\n  -h, --help     output usage information\n  -V, --version  output the version number\n```\n\nRun `stencil init` at the top level of your Stencil Theme. It will ask you a few questions to get your started.\n\nRun `stencil start` to run a local server so you can start developing your theme.\n\nRun with `-o` or `--open` to automatically open up a browser.\n\n-   While stencil is running, you can type \"rs\" and then hit enter to auto-reload all browsers. This is similar to\n    Nodemon's rs option.\n\nRun `stencil bundle` to validate your code and create a zip bundle file that can be uploaded to BigCommerce.\n\nRun `stencil release` to tag a new version of your theme, create a [GitHub release](https://help.github.com/articles/about-releases/)\nin your theme repository, and upload the zip bundle file to the release assets.\nThis is useful for tracking your changes in your Theme, and is the tool we use to create new releases in BigCommerce\n[Cornerstone](https://github.com/bigcommerce/stencil) theme.\n\nRun `stencil push` to bundle the local theme and upload it to your store, so it will be available in My Themes.\nTo push the theme and also activate it, use `stencil push -a`. To automatically delete the oldest theme if you are at\nyour theme limit, use `stencil push -d`. These can be used together, as `stencil push -a -d`. You can apply the theme to\nmultiple storefronts, just specify ids of desired storefronts/channels after `-c` option `stencil push -a -c 123 456 789`.\nIf you want to apply theme to all available storefronts, just use `-allc` option: `stencil push -a -allc`.\n\nRun `stencil pull` to sync changes to your theme configuration from your live store. For example, if Page Builder has\nbeen used to change certain theme settings, this will update those settings in config.json in your theme files so you\ndon't overwrite them on your next upload.\n\nRun `stencil debug` to get information about runtime environment and the configuration\n\n## Features\n\n### BrowserSync\n\nStencil CLI comes packaged with BrowserSync so you can take advantage of all of those amazing goodies!\nHave a look at their [web site](http://www.browsersync.io/) for more information.\n\n### Sass compiling\n\nYou can compile Sass (node-sass) scss files in assets/scss into CSS. For example, add an scss file named theme.scss\nto assets/scss and `{{{stylesheet 'assets/css/theme.css'}}}` to your theme HTML template. Stencil-CLI will compile\nassets/scss/theme.scss to CSS on the fly.\n\n### Autoprefixer\n\nStencil CLI comes packaged with [Autoprefixer](https://github.com/postcss/autoprefixer). You can set which browsers\nshould be targeted, as well as if it should cascade the generated rules in the theme's config.json file with these\noptions:\n\n-   `autoprefixer_cascade` - Defaults to `true`.\n-   `autoprefixer_browsers` - Defaults to `[\"\u003e 1%\", \"last 2 versions\", \"Firefox ESR\"]`.\n\n## How to get help or report a bug\n\nIf you need any help or experience any bugs, please create a GitHub issue in this repository.\n\n## Development\n\nIf you would like to improve this project check out the [Contributing Guide](./CONTRIBUTING.md). Also, you can find\nthe implementation details there.\n\n## Running in docker\n\nThere is possibility to run stencil-cli in docker.\nHere are steps to have this functionality.\n\nFirst, pull the image from Github Packages (docker registry):\n`docker pull ghcr.io/bigcommerce/stencil-cli`\n\nThen, you want to run some commands against your theme.\n\nFor example\n`docker run -p 3005:3005 -v /bigcommerce/cornerstone:/usr/src/app -it ghcr.io/bigcommerce/stencil-cli stencil init`, where `3005` is port number definded in `config.stencil.json` and `/bigcommerce/cornerstone` path to where theme is located.\n\n`docker run -p 3005:3005 -v /bigcommerce/cornerstone:/usr/src/app -it ghcr.io/bigcommerce/stencil-cli stencil start` and so on\n\n## License\n\nCopyright (c) 2015-present, BigCommerce Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n3. All advertising materials mentioning features or use of this software\n   must display the following acknowledgement:\n   This product includes software developed by BigCommerce Inc.\n4. Neither the name of BigCommerce Inc. nor the\n   names of its contributors may be used to endorse or promote products\n   derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY BIGCOMMERCE INC ''AS IS'' AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL BIGCOMMERCE INC BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fstencil-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigcommerce%2Fstencil-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fstencil-cli/lists"}