Skip to content

authenticateOrg

authenticateOrg(options): Promise<AuthenticateOrgResult>

Defined in: packages/simply-cicd-core/src/sfAuth.ts:88

Authenticates to a Salesforce org using either a JWT flow or an SFDX auth URL, in-process via @salesforce/core. The auth, alias and default-org settings are written to the same ~/.sf state sf org login jwt / sf org login sfdx-url write, so later sf processes see them.

AuthenticateOrgOptions

Promise<AuthenticateOrgResult>

If authentication fails; the failure is logged first.