Skip to main content

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

FlagAliasDescription
--input-iInput JSON data
--transforms-tTransforms as a JSON array
--settings-sSettings object with merge method

Example

./bin/datadance \
-i '{"hello": "world"}' \
-t '[{"also": "\"hello \" + input.hello"}]' \
-s '{"merge_method": "overwrite"}'