Bash script for upload:

#!/bin/bash

build = $1
curl -i -H "x-auth-token:{{ apiToken }}" -F "file=@$build" {{ host }}/api/apps/{{ appKey }}

Using: ./anarcho_upload.sh there_is_path_to_build