@@ -86,10 +86,11 @@ dw --help
8686
8787``` bash
8888usage: dw [--eval] [-f < file-path> ] [--help] [-i < input-name input-path> ]
89- [-o < output-path> ] [-p < param-name param-value> ] [--privileges
90- < privileges> ] [--untrusted-code] [-v] [--version] [--add-wizard
91- < wizard-name> ] [--list-spells] [--local-spell < spell-folder> ]
92- [--new-spell < spell-name> ] [-s < spell-name> ] [--update-grimoires]
89+ [--migrate < dw1-file-path> ] [-o < output-path> ] [-p < param-name
90+ param-value> ] [--privileges < privileges> ] [--silent]
91+ [--untrusted-code] [-v] [--version] [--add-wizard < wizard-name> ]
92+ [--list-spells] [--local-spell < spell-folder> ] [--new-spell
93+ < spell-name> ] [-s < spell-name> ] [--update-grimoires]
9394
9495
9596.........................................................................
@@ -100,20 +101,29 @@ usage: dw [--eval] [-f <file-path>] [--help] [-i <input-name input-path>]
100101.%%%%%...%%..%%....%%....%%..%%...%%.%%...%%%%%%..%%..%%....%%....%%%%%%.
101102.........................................................................
102103
103- --eval Evaluates the script instead of
104- writing it.
105- -f,--file < file-path> Specifies output file for the
106- transformation if not standard
107- output will be used.
104+ --eval Executes the script but it
105+ doesn' t use the writer. This is
106+ useful when launching a
107+ webserver.
108+ -f,--file <file-path> Specifies the DataWeave file
109+ path to execute.
108110 --help Shows the help.
109111 -i,--input <input-name input-path> Declares a new input.
112+ --migrate <dw1-file-path> Migrates a DW1 file to DW2 and
113+ outputs the result.
110114 -o,--output <output-path> Specifies output file for the
111115 transformation if not standard
112116 output will be used.
113- -p,--parameter < param-name param-value> Parameter to be passed.
117+ -p,--parameter <param-name param-value> Parameter to be passed. All
118+ input parameters are accessible
119+ through the variable `params`
120+ of type object.
114121 --privileges <privileges> A comma separated set of the
115122 privileges for the script
116123 execution.
124+ --silent Executes the script in silent
125+ mode, where all info messages
126+ is not going to be shown.
117127 --untrusted-code Run the script as untrusted,
118128 which means that the script has
119129 no privileges.
@@ -145,6 +155,7 @@ filter (item) -> item.age > 17"
145155 Documentation reference:
146156
147157 https://docs.mulesoft.com/dataweave/latest/
158+
148159```
149160
150161### DataWeave CLI Environment Variables
0 commit comments