Lab - Uploading a Theme
Lab - Uploading a Theme
Lab - Uploading a Theme
BigCommerce provides two options for uploading a theme to your BigCommerce store.
In this lab, you will:
Prerequisites
Command Line Upload (OAuth Required) This stencil push command allows you to both bundle and upload your theme to the store with a single terminal command and in one continuous process. The stencil push command is available only for themes that you have successfully initialized using an OAuth Token (with Themes: modify scope).
Stencil CLI is designed to display the same notifications, prompts and selection options that you would receive when using the control panel’s GUI.
Upon a successful upload, you will be prompted: Would you like to apply your theme to your store at <domain>? (y/n) Any response except y or Y will be processed as “No.” You can always apply the theme later through the control panel.

If you chose to apply the newly uploaded theme, you will be prompted with: “Which variation would you like to apply?”
Use your arrow keys to move the selection caret/highlight to the variation you want, and then press Enter.
Stencil CLI will then confirm which variation is active on the storefront.
Automatically Apply a Variation and Pushing a Theme to Selected Channels
stencil push -a VARIATION_NAME with the name of the variation.stencil push -a -c 123 456. To apply a theme to all available channels, use stencil push -a -allc.