Perform incremental updates using the blackberry-deploy command

You can use the blackberry-deploy command-line utility from a terminal (Mac OS or Linux) or command prompt (Windows) to perform incremental updates to a deployed unsigned application.

You can find the command in the host/platform/usr/bin folder where you installed the BlackBerry Native SDK for Tablet OS. Depending on your operating system, the platform option can be win32, linux or macos.
You can use the following instructions to update binaries, libraries, and files, such as images on a deployed unsigned application. Ensure that you connect to your device or simulator in development mode. You should also know the location of the binary, library, or file you want to update on your computer, as well as the location of the application descriptor file.

To perform an incremental update using the command-line utility:

  1. On your computer, open a command prompt (Windows) or terminal (Linux, Mac OS) navigate to the host/win32/x86/usr/bin folder in the beneath the folder you installed the Native SDK.
    • For example, in Windows, if you installed in the default \bbndk-2.1.0 folder, navigate to C:\bbndk-2.1.0\host\win32\x86\usr\bin.
    • For example, on Mac OS navigate to /Developer/bbndk-2.1.0-beta1/host/macos/x86/usr/bin
    • For example, in Linux navigate to /opt/bbndk-2.1.0-beta1/host/linux/x86/usr/bin
  2. Type the following command to replace a binary or library on the device:
    blackberry-deploy -putFile 
                        -package bar-file
                        -password password
    The binary or library you want to update.
    The location on the device starting from the sandbox folder. The path must start with app/playbook/native/ for a binary and app/playbook/native/lib for a binary.
    The IP address of the device.
    The password for the device.
    The path and name of the BAR application descriptor file.
    For example, in Windows, type something like the following command:
    blackberry-deploy -putFile 
                      -package C:\MomenticsWorkspace\FallingBlocks\Device-Release\ 
                      -password mypassword