The '~' symbol works for the targetPackage parameter, but cannot be used in most of the other parameters.
For example in the interceptorBinding parameter of a cdi-new-interceptor command. In the following script I can create an interceptor binding in the subpackage .view.util using the '~' symbol, but in the cdi-new-interceptor I can't. It throws an exception :
This behavior is in most of the other commands, such as