Stencil CLI allows developers to locally edit and preview themes without impacting a merchant's live storefront, and its built-in Browsersync capabilities make simultaneous testing across desktop, mobile, and tablet devices a breeze. Once work is complete, developers can push themes to BigCommerce storefronts and make them live using Stencil CLI's simple yet powerful commands.
This article contains detailed instructions on installing and configuring Stencil CLI, the first step towards developing Stencil themes for BigCommerce storefronts.
/home/node/app/
version: '2.2'
services:
stencil-cli:
image: hieuhidro/stencil-cli:latest
expose:
- 3000
- 3002
ports:
- '3000:3000'
volumes:
- './theme:/home/node/app/'
- '~/npm:/home/root/.npm/'
- '~/.ssh:/root/.ssh:delegated'
environment:
- NODE_OPTIONS=--openssl-legacy-provider
- VIRTUAL_HOST=acupuncture-atlanta.git
- VIRTUAL_PORT=3000
- CERT_NAME=default
- HTTPS_METHOD=noredirect
networks:
- default
- proxy
# Proxy network
networks:
proxy:
external: true
docker-compose run --rm --service-ports stencil-cli help
docker-compose run --rm stencil-cli
Step 1: docker-compose run --rm stencil-cli
Step 2: npm install && exit
docker-compose run --rm --service-ports stencil-cli start
Content type
Image
Digest
sha256:46f89b4f1…
Size
260.6 MB
Last updated
over 3 years ago
docker pull hieuhidro/stencil-cli