To create a .bar file for an HTML5 app, you run the Cordova build script that was included in your app when you ran create. Because you don't need to sign your .bar file, you can run the build script in debug mode.
To create a .bar file that can be deployed to your target:
For instructions on creating a simple HTML5 app using Cordova, see "Creating an HTML5 app" in the HTML5 Developer's Guide.
For instructions on installing the app on your target, see "Installing a packaged app on the target".