2026-07-08 22:33:29 +02:00
|
|
|
# `dapi node cp <ids...>`
|
|
|
|
|
|
|
|
|
|
Deep-clones one or more nodes, including all descendants. Alias: `duplicate`.
|
|
|
|
|
|
|
|
|
|
## Input
|
|
|
|
|
|
|
|
|
|
- `<ids...>`: one or more node ids (required)
|
|
|
|
|
|
|
|
|
|
## Output
|
|
|
|
|
|
2026-07-15 12:39:25 +02:00
|
|
|
JSON Lines on stdout, one per cloned node:
|
2026-07-08 22:33:29 +02:00
|
|
|
|
|
|
|
|
```ts
|
2026-07-15 12:39:25 +02:00
|
|
|
{ sourceId: number; newId: number }
|
2026-07-08 22:33:29 +02:00
|
|
|
```
|
2026-07-15 12:39:25 +02:00
|
|
|
|
|
|
|
|
## Errors
|
|
|
|
|
|
|
|
|
|
An unknown id fails the whole command before anything is cloned.
|