SalesforceCommerceCloud / sfcc-ci

Salesforce Commerce Cloud CLI
https://npmjs.com/package/sfcc-ci
BSD 3-Clause "New" or "Revised" License
231 stars 94 forks source link

Auth token in diffdeploy #502

Open singhuday opened 1 year ago

singhuday commented 1 year ago

sfcc-ci Version

2.11.0

NodeJS Version

16.0.0

sfcc-ci Path

diffdeploy

Host OS Details

MAC OS

What happened?

How to pass auth token in sfcc.code.diffdeploy(instance, localDirectories, codeVersionName, options, activate) .then(() => { // do something, now that the code has been deployed and activated successfully })

Relevant log output

Error: Authorization missing or invalid. Please (re-)authenticate first by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´ and make sure, your client has access to the instance.