You need to sign in to do that
Don't have an account?
Shubham Raj 29
SFDX: Authorize an Org in Visual code studio.
Hii all,
I am facing issue in SFDX: Authorization. As"SFDX: Authorize an Org " Command is not showing in my option. What to do.
I am facing issue in SFDX: Authorization. As"SFDX: Authorize an Org " Command is not showing in my option. What to do.
You have to create a project first. Then and only then the other commands will become available for you.
Please refer the below link:
https://salesforce.stackexchange.com/questions/242581/no-option-for-sfdxauthorize-an-org-command-in-vs-code-command-palette
Let me know if this was helpful.
Thanks.
I hope you are doing well but make sure you followed these steps:
- Installed VS code with CLI
- Open the Command Palette by pressing Ctrl+Shift+P, If you are using Windows or Cmd+Shift+P on macOS
- Type and select SFDX: Create Project
- Enter your project name
- Create a new folder or Select a folder to store the project
- Make sure after creating a project you have to authorize your org to type "SFDX: Authorize an Org"
- You have to give credential for login, after completing this process you are able to create LWC project in VS code
For Create LWC Project you have to follow this command
- In Visual Studio code, open the Command Palette by pressing Ctrl+Shift+P on Windows or Cmd+Shift+P on macOS
- Type or Select SFDX: Create Lightning Web Component
- Press Enter to accept the default force-app/main/default/lwc
- Enter your project name
- Press Enter
- Now you can check one project will be active inside LWC folder in vs code
You can follow this link for more help:
https://www.youtube.com/watch?v=V_riFQU5iNA
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
Hii all,
I have sort out the problem by updating the "salesforce cli", "Visual Studio Code" and then I have again installed the related extensions again.
Now it's working perfectly.
I appears I have the stuff to use dev hub and scracth orgs but not regular orgs.
Is there anyone that can tell me if I have the latest stuff and if not how to get it?
The extensions I have installed--
The CLI run from the command line says -- VS Code says there are no update avaiable--
Even thought VSC said there was no upgrade avaiable, I went out and downloaded a new copy. I now have Version: 1.37.1. Once I did that, when I downloaded SF CLI, I got 46 instead of 42 and the command is there.
My system is Windows 10 64 bit.. I had the same issue. Instead of running multiple updates or look for anything else, running "sfdx update" from the terminal of the VS Code fixed the problem easily.
I had some problems trying to remember my username so I accessed my Trailhead Playground personal information so I could get it.