SalesforceCommerceCloud / sfcc-ci

Salesforce Commerce Cloud CLI

Home Page:https://npmjs.com/package/sfcc-ci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auth token in diffdeploy

singhuday opened this issue · comments

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.