Generators

Getting from nothing to a project that runs, and from a project that runs to one that has the piece you just decided you need. Two different moments: the first is a one-time decision about layout, the second recurs for the life of the project.

Overview

SAP SHIPSby design
Node.js →

@sap/cds-dk The command line client and development toolkit for CAP projects, with the commands cds build, cds deploy, cds watch and cds add among them.

Java →

com.sap.cds:cds-maven-plugin The Maven plugin that runs CDS build steps in a CAP Java project: compiling the model, generating typed Java accessor interfaces and adding facets to an existing project.

com.sap.cds:cds-services-archetype A Maven archetype that generates a new CAP Java project: a Spring Boot service with a starter CDS model, wired to the CDS Maven plugin for its build.

@sap-ux/cap-config-writer SAP's writer module for changing a CAP project's configuration from code, so a tool can add a UI5 app to a project that already exists, returning a mem-fs editor whose commit writes the changes.

Not covered: It stops at facets the core knows. It has no opinion about how a service is laid out inside srv, no template for a handler, and nothing to say about the choices a team makes once past the skeleton — which is where the generators here pick up, several of them wrapping cds-dk rather than replacing it.

THE COMMUNITY ADDS

SAP adds the same two moments for CAP Java in the CAP Java archetype and the CDS Maven plugin, and a prompt-driven path in Joule in SAP Build Code. Community generators such as @khalidmh/capx run cds init and cds add for you and write the starter files that make the chosen facets work together.

Artifacts14

14 of 14 artifacts
ArtifactSignals
Build tools1
com.sap.cds:cds-maven-pluginMaven plugin running CDS build steps in a CAP Java project
Signals
none
CLI tools2
@sap-ux/createCommand line for changing features of an existing Fiori project
Signals
none
@sap/cds-dkCommand line client and development toolkit for CAP
Signals
none
Generators5
@cap-handler/generatorInteractive generator for CAP event handler files
Signals
none
@khalidmh/capxInteractive project installer for CAP Node.js
Signals
none
@sap/generator-cap-projectCAP project generator behind SAP Business Application Studio's wizard
Signals
none
@sap/generator-cdsCDS project generator, deprecated in favour of @sap/cds-dk
Signals
none
com.sap.cds:cds-services-archetypeMaven archetype generating a new CAP Java project
Signals
none
Packages4
@sap-ux/cap-config-writerWriter module for changing a CAP project's configuration from code
Signals
Functional boundary
@sap-ux/fe-fpm-writerWriter of flexible programming model elements into Fiori elements apps
Signals
none
@sap-ux/fiori-generator-sharedShared functions and types of the Fiori generators
Signals
none
@sap-ux/odata-service-writerWriter that adds an OData service to an existing UI5 project
Signals
none
Services2
Joule in SAP Build CodeJoule's generative AI inside SAP Build Code
Signals
none
SAP Build CodeDevelopment environment on BTP for UI5, Fiori, mobile and CAP
Signals
none

Content12

Group by12 of 12 pieces
Piece, what it offers
CAP Initializr: Generate SAP CAP Projects in Seconds
SAP Community, Saptarshi017, BlogThe reasoning
Part 1: How to create CAPM project in BAS
SAP Community, Vennilla00, BlogThe reasoningA recipe
Core changed
UI5 MCP Server Got Extended for UI Integration Cards Generation
SAP Community, daniel_vladinov, Blog
Show 9 more
Prompt-Driven Development: Building Full-Stack SAP CAP Apps from User Stories
SAP Community, AnuradhaDhingan, BlogThe reasoning
Give Your AI Agent Some Tools: Introducing the UI5 MCP Server
SAP Community, Merlin Beutlberger, Blog
Joule Studioがリリースされたので早速CAPアプリを自然言語で操作するカスタムスキルを構築してみた
SAP Community, takayuki_tanaka, Blog
SAP Fiori Application Generator Available in Open Source
SAP Community, jlong, Blog
加速开发和部署的CAP CDS和Fiori一些实用命令
SAP Community, TiaXu, BlogThe reasoningA recipeRunnable code
Core changed
Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment
SAP Community, TiaXu, Blog
SAP Cloud Application Programming Model(CAP):概要およびデモ - Part 1
SAP Community, rasai, part 1 of 2, Blog
First Java Cap Application
SAP Community, bruce_wang3, Blog
cf-create-app: Create End-to-End apps and deploy to Cloud Foundry in minutes
SAP Community, former_member604013, BlogThe reasoningA recipeRunnable code
Core changed

Seen working1

ArtifactSignals
Samples1
repository-templateRepository template with LICENSE, REUSE and compliance files
none

Details

What changed — and what it makes stale2
@sap/cds-dk 10.0.3, CAP

Before this, cds init --nodejs and cds add --nodejs scaffolded CommonJS projects by default. The default flipped to ESM; a CommonJS project now needs the explicit cds init --add cjs. capire's changelog tags this at cds-dk@10.0.1, but 10.0.0 and 10.0.1 were never published to npm — 10.0.3 is the first version on that line that resolves.

Makes stale:

Any generated-project walkthrough that shows require() and module.exports coming out of a bare cds init — on cds-dk 10.0.3 and later, a fresh Node.js project is ESM unless --add cjs was passed.

SourceCAP changelog 2026 — cds-dk@10.0.1checked
@sap/cds-dk 9.1.0, CAP

Before this, cds add's facets covered infrastructure — a database, messaging, auth, a deployment descriptor — but nothing about the tests themselves. cds add test arrived, generating test files for CDS services, marked experimental from the start.

Makes stale:

Descriptions of cds add as covering only infrastructure facets and never touching test code. That was accurate before mid-2025; since then it does, though still experimental.

SourceCAP changelog 2025 — cds-dk@9.1.0checked
Coverage
statecore and community, CAP
assessed
relationshipnarrow by design
also inABAP, UI5
For your agent