CLI
Datadance provides a command-line interface (CLI) for running transforms directly from the terminal.
Compiling
Build the CLI binary from the repository:
deno task compile
This produces a binary at ./bin/datadance.
Usage
./bin/datadance -i '<json>' -t '<transforms>' -s '<settings>'
Arguments
| Flag | Alias | Description |
|---|---|---|
--input | -i | Input JSON data |
--transforms | -t | Transforms as a JSON array |
--settings | -s | Settings object with merge method |
Example
- Command
- Output
./bin/datadance \
-i '{"hello": "world"}' \
-t '[{"also": "\"hello \" + input.hello"}]' \
-s '{"merge_method": "overwrite"}'
{ "hello": "world", "also": "hello world" }