Menu

1 / 3

Run & Test DataWeave 2.0 Locally Without Anypoint Studio Using DataWeave CLI (dw v2.12.3)

DEV Community: cicd·Niranjan Potter·1 day ago
#eaEzi6RJ
#devtocicd#devto#dev#dataweave#test
Reading 0:00
15s threshold

Waiting 3 minutes for Anypoint Studio to boot just to test a 12-line DataWeave script wastes hours every sprint. The official open-source DataWeave CLI ( dw v2.12.3 ) lets you run, pipe, and unit-test .dwl transformations directly from your terminal or CI/CD pipeline in milliseconds.

Run Your First Local Transformation in 5 Seconds

# Run a .dwl file against a local JSON payload dw run -i payload = orders.json -f transform.dwl

# Or pipe live API output straight through inline DataWeave curl -s https://jsonplaceholder.typicode.com/users | dw "payload map { id: $.id, name: upper($.name) }"

Enter fullscreen mode

Exit fullscreen mode

Automated CI/CD DataWeave Testing ( dw test ) Without Studio Licenses

Externalizing transformations into src/main/resources/dwl/*.dwl allows GitHub Actions and Bitbucket Pipelines to run dw test (DataWeave Spells) on every Pull Request without spinning up an entire Mule runtime:

Works identically on Windows (PowerShell) , macOS (Homebrew) , and Linux CI runners

Supports…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.