I am using the shopify app CLI, specifically the yarn shopify app deploy
comand to deploy Shopify functions. I generated a Partners CLI token so that I can run this within a CI/CD script. But I am getting an error when I run it while supplying both that CLI token and the token for the app to deploy to:
Here’s what my command looks like:
(
SHOPIFY_CLI_PARTNERS_TOKEN=$SHOPIFY_CLI_PARTNERS_TOKEN \
SHOPIFY_API_KEY=$SHOPIFY_API_KEY \
yarn shopify app deploy --verbose --force --path="$(pwd)"
)
Following on this documentation this documentation those are the two environment variables that need to be supplied.
Nevertheless, when I run this, I am getting an error: “No organization found.”
Does anyone know why this might be happening?