SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Get an introduction to the cds REPL

Get to know the cds REPL.

Overview

🎓 beginner 15 min. SAP Cloud Application Programming ModelSAP Business Technology PlatformCloudBeginner

You will learn

  • โœ”What the cds REPL is
  • โœ”How to invoke it
  • โœ”How to get started within it
DJ Adams D DJ Adams August 10, 2026
Created by August 10, 2026
Contributors

Prerequisites

Prerequisites

You will need a development environment for CAP Node.js. See the tutorial Set up a self-contained development environment for CAP Node.js The assumptions in this tutorial are based on option 1 or option 2 in that tutorial, in that you have a VS Code (or GitHub Codespace) environment based on the foundation repository used in the setup described there, which also means that your starting directory will be /workspaces/cap-nodejs-dev-env. If you have your own CAP Node.js development environment setup, then please make the appropriate adjustments where necessary.

Steps

Intro

In any language or development environment, having a REPL is a superpower, and it pays to embrace it and be at least a little familiar with it. CAP as a whole is built on solid foundations and practices that have matured over the decades, and the REPL is part of that, first appearing in the 1960’s and initially popularized in the LISP and LISP-derivative language communities.

Node.js has a REPL, and it is upon this REPL that the cds REPL is based. In this exercise, we’ll explore the cds REPL.


Step 1 Set up a host project
โ€”

It’s always better to explore the cds REPL in the context of an existing CAP project, with its CDS model and some data. We’ll use a cut down version of the classic Northwind service called “Northbreeze”. That service is available in the repository https://github.com/SAP-samples/odata-dd-server.

๐Ÿ‘‰ Clone the repository:

Shell
git clone https://github.com/SAP-samples/odata-dd-server

๐Ÿ‘‰ Now open the northbreeze/ directory within the cloned repository in a new VS Code / Codespace window:

Shell
code odata-dd-server/northbreeze/
Step 2 Briefly explore the Node.js REPL
+
Step 3 Start the cds REPL
+
Step 4 Explore with .inspect
+
Step 5 Start a CAP server with .run
+
Step 6 Try out some queries
+
Step 7 Wrap-up and further info
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Set up a host project 2. Briefly explore the Node.js REPL 3. Start the cds REPL 4. Explore with .inspect 5. Start a CAP server with .run 6. Try out some queries 7. Wrap-up and further info

Learn more →