Skip to content

hardis:auth:login

Description

Logins to a Salesforce org from CI/CD workflows.

Will use the variables and files defined by configuration commands:

If you have a technical org (for example to call Agentforce from another org, you can define variable SFDX_AUTH_URL_TECHNICAL_ORG and it will authenticate it with alias TECHNICAL_ORG)

You can get SFDX_AUTH_URL_TECHNICAL_ORG value by running the command: sf org display --verbose --json and copy the value of the field sfdxAuthUrl in the output.

Parameters

Name Type Description Default Required Options
debug
-d
boolean Activate debug mode (more logs)
devhub
-h
boolean Also connect associated DevHub
flags-dir option undefined
instanceurl
-r
option URL of org instance
json boolean Format output as json.
scratchorg
-s
boolean Scratch org
skipauth boolean Skip authentication check when a default username is required
websocket option Websocket host:port for VsCode SFDX Hardis UI integration

Examples

$ sf hardis:auth:login
CI=true sf hardis:auth:login