TE CLI help #1530
-
|
hi, am new to TE CLI and was looking at the documentation, the -S flag per the doco , should point to a path containing the script or inline script. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I believe that the easist way is to do this through Powershell. $script = @'
Output("Start");
foreach(var t in Model.Tables) {
Output(t.Name);
}
Output("Done");
'@
Start-Process -FilePath "TabularEditor.exe" -Wait -NoNewWindow -ArgumentList @(
'"C:\Models\Model.bim"',
'-S', $script,
'-B', '"C:\Models\Model_out.bim"'
)Directly from the Command Line it should look something like this: start /wait TabularEditor.exe "C:\Models\Model.bim" ^
-S "Output(""Hello from inline script"");" ^
-B "C:\Models\Model_out.bim"But beware of the following when using this way:
Best |
Beta Was this translation helpful? Give feedback.
Hi @mathewbiju007
I can get the following command to work when running it directly in the PowerShell terminal: