Update your app from the command line

You can use the blackberry-deploy command-line tool 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 10 Native SDK. 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-10.0.9 folder, navigate to C:\bbndk-10.0.9\host_<NN_N_N_NNNN>\win32\x86\usr\bin where <NN_N_N_NNNN> represents the version of the release.
    • For example, on Mac OS navigate to /Developer/bbndk/host/macos/x86/usr/bin
    • For example, in Linux navigate to /opt/bbndk/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/native/ for a binary and app/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 
                       C:\[Momentics Workspace]\FallingBlocks\Device-Release\FallingBlocks
                      -package C:\[Momentics Workspace]\FallingBlocks\Device-Release\FallingBlocks.bar 
                      -password mypassword  

Last modified: 2013-12-21

comments powered by Disqus