
# SYNOPSIS

   *cds export* [ --services ] <patterns> --from <sources> [ ...options ]
   *cds export* [ <sources> ] [ ...options ]

   The *cds export* command is used to export CDS models and related
   artifacts from specified service definitions.


# OPTIONS

   *-s | --services* <patterns>
   *-f | --from* <sources>
   *-2 | --to* <folder>
   *-a | --as* <csn|cdl>
   *-4 | --for* <npm|mvn>

   *-c | --cleanse* <properties>
   *-k | --keep* <kinds>
   *-x | --skip* <kinds>
   *-d | --data*
   *-t | --texts*
   *-p | --plugin*

   *-y | --dry*
   *-i | --inspect*
   *-f | --force*
   *-h | --help*

   Add *--mvn* <groupId:artifactId> for exporting to a Maven project.


# DETAILS

   Add the following options to export additional artifacts in addition
   to the CDS interface models:

   *-d | --data*    includes *.csv* test data in the export.
   *-t | --texts*   includes *i18n* text bundles in the export.
   *-p | --plugin*  adds *cds.requires* entries to the *package.json* for
                    plug & play convenience on the import side.

   Use the following options in combination to fine-tune what gets
   included in the export:

   *--cleanse* controls which properties to remove from the export.
   *--keep*    controls which kinds of data to retain, and also allows
               to override individual entries from the cleanse list.
   *--skip*    controls which kinds of data to exclude.

   Run *cds export* with *--debug* to see default/effective configurations.


# EXAMPLES

   *cds export* ?
   *cds export* --help
   *cds export* srv/cat-service.cds --dry
   *cds export* -s cat*s --dry
   *cds export* -s cat*s --cleanse @,all | cds -2 cdl
   *cds export* -s cat*s --inspect=2
   *cds export* -s cat*s --as cdl
   *cds export* -s cat*s
   *cds export* --mvn com.example:my-service --to java-module
