Deploy BlackBerry 10 apps with device name instead of ip address

DeviceNameWhen using a script (or the command line) in order to deploy apps to a device you can use the phone’s device name (which seconds as a network name) in place of the ip address. For example instead of

blackberry-deploy -installApp -launchApp -device -package -password password

you could use

blackberry-deploy -installApp -launchApp -device BLACKBERRY-Z10E -package -password password

This shortcut is particularly helpful to use when writting scripts, so you do not have to update the file every time that the phone is assigned a new ip address.