Fiori / SAPUI5 · Intermediate · Configuration
How to set up local SAPUI5 development in VS Code with UI5 CLI
Create a minimal SAPUI5 project on your own machine, serve it with the UI5 CLI development server and build it, without any cloud subscription.
- APPLICABILITY
- Any workstation with a current Node.js LTS release and Visual Studio Code. Independent of the backend release; the SAPUI5 version in ui5.yaml should match the version of the target launchpad.
- TOOLS / TRANSACTIONS
- Visual Studio Code · Node.js · npm · UI5 CLI
Your project assignment
You want to try a small SAPUI5 view on your laptop before a development system is available. Create a hypothetical project called ui5-sandbox, run it locally and produce a build.
Where to start: URLs and transactions
- Node.js download
- https://nodejs.org/
- UI5 CLI documentation
- https://ui5.github.io/cli/
- SAP Developers: Create a basic SAPUI5 Application with ui5/cli
- https://developers.sap.com/tutorials/sapui5-appfrontend-create/
Prerequisites
- Node.js LTS and npm installed (the SAP tutorial used here states a minimum Node.js version; check it before you start), and Visual Studio Code.
- Access to the public npm registry or your company registry mirror.
- No SAP user or system is needed for this exercise.
Configuration workflow
A local SAPUI5 project without a backend
All steps visible. Play or advance one stage at a time.
Hands-on implementation — step by step
Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.
- 1
Terminal → check Node.js and npm
Open a terminal in Visual Studio Code and check the installed versions against the minimum stated in the SAP tutorial.
Terminal → check Node.js and npmERPClimb · illustrative screen - Command
node --version- Command
npm --version
Expected result: Both commands print a supported version.
Why this matters: The UI5 CLI is a Node.js program and refuses to run on unsupported versions.
- 2
Create the project folder
Create an empty folder, open it in Visual Studio Code and initialise an npm project. Create a webapp folder inside it.
Create the project folderERPClimb · illustrative screen - Folder
ui5-sandbox (hypothetical)- Command
npm init -y- Subfolder
webapp
Expected result: package.json and the webapp folder exist.
Why this matters: UI5 CLI expects application sources in webapp by default.
- 3
Install the UI5 CLI in the project
Install the CLI as a development dependency so that every colleague uses the same version.
Install the UI5 CLI in the projectERPClimb · illustrative screen - Command
npm install --save-dev @ui5/cli- Check
npx ui5 --version
Expected result: The CLI is listed under devDependencies and prints its version.
Why this matters: A project-local CLI avoids differences between machines.
- 4
ui5 init → ui5.yaml
Run the init command to create ui5.yaml, then add the framework section with the SAPUI5 name and the version of your target system, as shown in the SAP tutorial.
ui5 init → ui5.yamlERPClimb · illustrative screen - Command
npx ui5 init- type
application- framework name
SAPUI5- framework version
Version of your target launchpad
Expected result: ui5.yaml describes an application project with a framework version.
Why this matters: The server reads ui5.yaml to know the project type and which SAPUI5 libraries to provide.
- 5
Add the first files in webapp
Create index.html, manifest.json and a simple XML view in webapp following the tutorial, using your own application ID.
Add the first files in webappERPClimb · illustrative screen - Application ID
com.example.ui5sandbox (hypothetical)- Files
index.html, manifest.json, view/App.view.xml
Expected result: The folder contains a minimal runnable application.
Why this matters: manifest.json is the descriptor the launchpad and the tools read later.
- 6
npm scripts → ui5 serve
Add start and build scripts to package.json and start the development server. Open the address it prints.
npm scripts → ui5 serveERPClimb · illustrative screen - Script start
ui5 serve- Script build
ui5 build -a --clean-dest- Address
http://localhost:8080/index.html
Expected result: The page loads from localhost and the view is rendered.
Why this matters: The local server delivers your files and the SAPUI5 libraries without a backend.
- 7
npm run build
Stop the server and run the build script. Inspect the dist folder.
npm run buildERPClimb · illustrative screen - Command
npm run build- Output folder
dist
Expected result: A dist folder with the built application is created.
Why this matters: The build output is what a deployment later uploads.
Project acceptance checklist
Use this checklist to prepare evidence for your project lead.
0 of 4 checks marked. This does not certify the SAP configuration.
Validate your configuration
- npx ui5 --version prints a version, and ui5 serve starts a local server without errors.
- The browser shows the application from localhost, and ui5 build creates a dist folder.
Common errors and what to check
ui5 is not recognised as a command.
Check: The CLI was installed in the project, not globally: run it through npx or an npm script.
the server starts but the browser shows a blank page with 404 errors for resources.
Check: The framework section or required libraries are missing in ui5.yaml.
npm install fails behind a company proxy.
Check: Configure the approved registry or proxy for npm instead of switching off certificate checks.
the port is already in use.
Check: Start the server with another port.
More in the SAP Library
Need help with a configuration error? Open ERPClimb Copilot.
Technical references & further reading
Official documentation for technical verification, release compatibility and further study.