stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

ThemeUploadError: You don't have a required scope to access the endpoint

Open asantisan opened this issue 4 years ago • 1 comments

Expected behavior

run 'stencil push -a' to push theme updates and activate the theme.

Actual behavior

after 'zipping files finished' during the process I get this error:

not ok -- ThemeUploadError: You don't have a required scope to access the endpoint

Steps to reproduce behavior

run 'stencil push -a'

asantisan avatar Jul 19 '21 17:07 asantisan

This is related to your token. It does not have the correct permissions to modify themes on the store.

The easiest way to fix this is to generate a new token which has the appropriate permissions.

https://support.bigcommerce.com/s/article/Store-API-Accounts?language=en_US#creating

When you create a "Stencil-CLI token", make sure you select the permission level for "publish theme" to be able to upload new themes from the CLI.

image

bookernath avatar Jul 19 '21 17:07 bookernath