Skip to content

Commit

Permalink
cds watch --include/--exclude (#1546)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Georgi <[email protected]>
Co-authored-by: Christian Georgi <[email protected]>
  • Loading branch information
3 people authored Jan 9, 2025
1 parent 8fe8fef commit fff8fac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/cds-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,24 @@ To customize the diagram layout, use these settings in the _Cds > Preview_ categ
- [Diagram: Namespaces](vscode://settings/cds.preview.diagram.namespaces)
- [Diagram: Queries](vscode://settings/cds.preview.diagram.queries)

## cds watch

Use `cds watch` to watch for changed files, restarting your server.

::: details See the full help text of `cds watch`
<!--@include: ./assets/help/cds-watch.out.md-->
:::

### Includes and Excludes <Since version="8.7.0" of="@sap/cds-dk" />

Additional watched or ignored paths can be specified via CLI options:

```sh
cds watch --include ../other-app --exclude .idea/
```

Alternatively, you can add these paths through settings <Config keyOnly>cds.watch.include: ["../other-app"]</Config> and <Config keyOnly>cds.watch.exclude: [".idea"]</Config> to your project configuration.


## cds repl

Expand Down

0 comments on commit fff8fac

Please sign in to comment.