dpbuddy copy -toDir js -flatten -includes "js/*.js"
You can use
dpbuddy setLogLevel -level INFO
Once the files have been copied, you can start exercising DataPower services using curl or SoapUI. If you're using SoapUI, you can actually do copying as part of the "setup" directly from SoapUI as explained here.
You can also tail the logs remotely from your machine:
dpbuddy tail -f | find "your service name" dpbuddy tail -f | grep "your service name"
In DPBuddy 3.1.1, the "tail" command also displays the log message category, so you'd be able to do "grep gatewayscript" since all messages from GatewayScript are logged under the "gatewayscript-user" category.
<setText xpath="//ActionDebug" value="off" />
To get started with the GatewayScript development, download the current version of DPBuddy and give it a try.