Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Set Up Your Development Environment
The complete development environment for building Lightning web components for offline-enabled apps includes the following elements.
- Salesforce CLI (SFDX)
- Visual Studio Code (VS Code)
- Salesforce Extensions for VS Code
- Android Studio and a virtual device emulator
- Apple Xcode and a virtual device simulator
- Salesforce Mobile Extensions
- A virtual device build for the relevant mobile app
While you can eventually choose to replace or add tools to this list, start with these and add to them as you become more experienced.
Installation Instructions
We recommend the following installation sequence. Each link provides complete details for installing and configuring each of the different tools.
- Install and configure Android Studio
- Install and configure Xcode
- Install the Salesforce CLI
- Install the Mobile Extensions
- Install VS Code
- Install Salesforce Extensions for VS Code
- Download the latest virtual device build for the mobile app
- For the Salesforce mobile app, use the standard virtual device builds, as described in Preview Components in the Salesforce Mobile App.
- For the Field Service mobile app, the download link is posted in the Trailblazer Community.
- Install a virtual device build into a configured Android emulator or iOS simulator instance
The Develop a Lightning Web Component Quick Action quick start provides hands-on instructions for setting up your development environment, and also for creating, deploying, and running your first LWC.