Authorize Org Via Command Palette or Terminal in Visual Studio #inSalesforce

Authorize Org Via Command Palette in visual studio #inSalesforce


  • Open Visual Studio and wait some time for the extensions to get loaded
  • Press Ctrl + Shift + P for the command palette to open
  • Start typing SFDX, select SFDX: Authorize an Org
  • Select the login option as per need suppose login.salesforce.com (here login.salesforce.com to login into your developer Org or select test.salesforce.com to login into the sandbox or use custom domain URL (like in case SSO enabled) to login).
  • Now Log in using your Org. (If prompted to allow access, click Allow.)



Authorize Org Via Terminal in visual studio #inSalesforce


  • Open Visual Studio and wait some time for the extensions to get loaded
  • In Terminal Tab, type sfdx force:auth:web:login --setalias <sampleName> and press Enter.

Comments