{"ref":"content:sap-cloud-platform-backend-service-tutorial-12-cds-local-build","page":"/content/sap-cloud-platform-backend-service-tutorial-12-cds-local-build","json":"/content/sap-cloud-platform-backend-service-tutorial-12-cds-local-build.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"sap-cloud-platform-backend-service-tutorial-12-cds-local-build","title":"SAP Cloud Platform Backend service: Tutorial [12]: CDS : local: build","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/sap-cloud-platform-backend-service-tutorial-12-cds-local-build/ba-p/13414743","content_type":"blog","published_on":"source:sap-community","explains":["capability:metadata-publishing"],"summary":"Compiling a CDS model locally with the `cds` command-line tool, installed from [@sap/cds](artifact:sap-cds) via SAP's own npm registry, before uploading it to SAP Cloud Platform Backend service: `cds compile` converts the model to CSN by default, `--to edmx` or `--to edm` produces the OData V2 or V4 metadata document, and `--to hana` or `--to sql` produces the database-specific definition files. It shows the local build catching an error the CDS editor's own validation misses — an entity with no key, valid CSN but invalid OData — before the same model reaches the server's compiler.","short":"Compiling a CDS model locally with the cds CLI","author":"CarlosRoggan","published":"2019-04-15","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-09-28"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"poor","evidence":"published 90 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2019-04-15"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":16439,"unit":"views"},{"value":10,"unit":"comments"},{"value":24,"unit":"likes"}]},"signals":{"views":16439,"likes":24,"comments":10,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[]}}