Codecast: Install Salesforce DX on Ubuntu 20.04


In this video, Mike installs and sets up Salesforce DX tools on Ubuntu 20.04. These include:

  • The Salesforce Command Line Interface (CLI)
  • Lightning Web Components (LWC) Local Development Server
  • Apex Language Services

This video covers:

00:00:10 Install the Salesforce CLI

# using npm global install with nvm installed
npm install sfdx-cli --global

00:01:45 Verify SFDX CLI installation

sfdx --version

00:02:00 Install Salesforce Extension Pack

00:03:11 Set Up Lightning Web Components Local Development Server

sfdx plugins:install @salesforce/lwc-dev-server 

# create or clone a project -- video uses lwc-recipes repo 

# authorize a dev hub
sfdx force:auth:web:login -d -a [your_chosen_alias] 

# create a scratch org
sfdx force:org:create -s -f config/project-scratch-def.json -a [your_chosen_scratch_org_alias] 

# start the server
sfdx force:lightning:lwc:start 

# visit the server in your browser localhost:3333

00:08:14 Setup Java and Apex Language Services

# install java default-jdk
sudo apt install default-jdk

00:09:47 Find your Java Home (By following the symlink trail)

00:12:10 Set your Java Home in VS Code


Leave a Reply