Sign inSign up

hieuhidro/shopify-cli

By hieuhidro

Updated over 3 years ago

Shopify tool as a docker image.

Image
0

358

hieuhidro/shopify-cli repository overview

Shopify-CLI Tool package

Shopify CLI is a command-line interface tool that helps you build Shopify apps and themes. It quickly generates Node.js, Ruby on Rails, and PHP apps, app extensions, and Shopify themes. You can also use it to automate many common development tasks.

Theme Kit is a cross-platform command line tool that you can use to build Shopify themes.

We are switching to https://hub.docker.com/r/hieuhidro/shopify

themekit:

shopify-cli v2:

shopify-cli v3

How to use this image

DOCKER
docker run --rm -p 3456:3456 -v local_folder:/shopify hieuhidro/shopify-cli:cli-2.33 login
DOCKER COMPOSE
  • docker-compose.yml:
services:
  shopify:
    image: hieuhidro/shopify-cli:cli-2.33
    volumes:
      - ./theme-custom-dawn:/shopify
      - ./config:/root/.config/shopify/config
      - ./.cache:/root/.cache
    environment: 
# For shopify v3 only
      - SHOPIFY_CLI_NO_ANALYTICS=[1|0]
      - SHOPIFY_CLI_THEME_TOKEN=[Your theme password (https://apps.shopify.com/theme-access)]
      - SHOPIFY_CLI_TTY=0
      - SHOPIFY_CLI_DEVICE_AUTH=[1|0]
      - SHOPIFY_FLAG_STORE=[Your Store URL]
    ports:
      - '3456:3456'
      - '9292:9292'
      - '8081:8081'
  theme:
    image: hieuhidro/shopify-cli:themekit-1.3.1
    volumes:
      - ./theme-custom-dawn:/shopify
      - ./config:/root/.config/shopify/config
      - ./.cache:/root/.cache
    environment:
      - THEMEKIT_PASSWORD=[Your theme password (https://apps.shopify.com/theme-access)]
      - THEMEKIT_THEME_ID=[Your theme ID]
      - THEMEKIT_STORE=[Your Store URL]
      - SHOPIFY_CLI_DEVICE_AUTH=[1|0]
      - 'THEMEKIT_IGNORE_FILES=*.gif:*.jpg:config/settings_data.json'
    ports:
      - '3456:3456'
      - '9292:9292'
      - '8081:8081'
  • docker-compose
docker-compose run --rm --service-ports [shopify/theme] help
Access to the container
docker-compose run --rm --service-ports [shopify/theme] bash
Starting development a theme
docker-compose run --rm --service-ports shopify --host=0.0.0.0 theme dev

Adding more npm shopify extensions: using env

NPM_EXTENSION=@shopify/ngrok

Specifications

Tag summary

Content type

Image

Digest

sha256:d960018d6

Size

467.7 MB

Last updated

over 3 years ago

docker pull hieuhidro/shopify-cli