tvlabs upload
Uploading a build
Use tvlabs upload
to upload build packages to the TV Labs Platform. This command will create a build that can be used in access, automation or appium sessions.
tvlabs upload <path-to-build-package>
Figure: Example output of the tvlabs upload
command.
note
For usage in a scripting context, use the -i
option to output only the build ID. For example:
tvlabs upload -i <path-to-build-package>
408cb137-1b75-4322-b8f6-9eccf5b6b149
Uploading for an application
Use the --application
or -a
option to upload a build for a specific application.
tvlabs upload -a <application-slug> <path-to-build-package>
RESTful API
warning
Applications uploaded this way are only available to use in Appium sessions.
Builds may also be uploaded via the TV Labs platform API. For example:
BUILD_UPLOAD=$(curl -X POST -H "Authorization: Bearer <your-api-key>" 'https://tvlabs.ai/api/build/upload')
BUILD_ID=$(echo $BUILD_UPLOAD | jq -r '.build_id')
UPLOAD_URL=$(echo $BUILD_UPLOAD | jq -r '.url')
curl -X PUT -T <path-to-build-package> $UPLOAD_URL