SFDX Environment Preparation in Ubuntu 20.04 LTS

Posted by Abhishek on April 24, 2020

.NET

Pre-Requisites

  1. Visual Studio Code - install it from the default Ubuntu Software Center

Steps to configure SFDX

  1. Install OpenJDK 11 using the following terminal command. Be patient since it takes some time.

    sudo apt install openjdk-11-jdk
    
  2. Set the environment variables using the following terminal commands
    export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
    echo $JAVA_HOME
    export PATH=$PATH:$JAVA_HOME/bin
    echo $PATH
    
  3. Check the java version by typing the following command in terminal. It should show openjdk version “11.0.7” 2020-04-14
    java -version
    
  4. Install the Salesforce CLI
  5. In Visual Studio Code, open the Extensions tab and install the Salesforce Extension Pack
  6. After the extension pack is installed, press the key combination Ctrl+Shift+P to open the command palette. Type SFDX. You should see the sfdx operations getting listed.

Great Job !! Your SFDX environment is setup in your local machine.


Thanks for reading this post. Enjoy !!
Share on: