Login as an API-only user
LOGIN AS API USER
1. Open Visual Studio Code 2. Press Ctrl + Shift + P > Select SFDX: Authorize an Org 3. Select the appropriate login URL and Alias, when a browser opens a new tab, then enter credentials…
How can you normally use Salesforce but with Salesforce API-only user?
1. Open Visual Studio Code 2. Press Ctrl + Shift + P > Select SFDX: Authorize an Org 3. Select the appropriate login URL and Alias, when a browser opens a new tab, then enter credentials for API Only User 4. Once completed click on the “Open Org” button or type one of the below commands

bash
sfdx force:org:open
sf org open5. Voilà la - you are logged in to Salesforce UI as an API-only user


