Authentication with Salesforce

To run any Plauti CLI plugin commands, the Salesforce CLI (sf) must be authenticated with the Salesforce Org you intend to work on.

1. Why Authentication Is Required

The sf CLI needs to be linked to a Salesforce Org to execute commands. This connection ensures Plauti CLI commands know which org to operate on.

2. Authenticate via Web Login

Use the following command to authenticate with your Salesforce Org:

sf org login web --alias my-org

Notes:

  • Replace my-org with a memorable and unique alias that identifies your target org.
  • This alias will be used in subsequent Plauti CLI commands to specify which org to run against.
  • Running this command opens a browser window asking you to log in to your Salesforce Org.
  • After logging in, return to the terminal to confirm that the login was successful.

You can verify the org is authorized using:

sf org list

Your newly authorized org and its alias should appear in the list under "Authorized Orgs."

For more detailed authentication options (e.g., JWT-based login, sandbox login), refer to the official Salesforce CLI documentation.