stencil-cli
stencil-cli copied to clipboard
ThemeUploadError: You don't have a required scope to access the endpoint
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'
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.
