tvlabs upload
Supported Platforms
- Tizen (.wgt)
- WebOS (.ipk)
- Android TV (.apk)
- Roku (.zip)
- tvOS (.ipa)
- iOS (.ipa)
Don't see the platform you're looking for? Contact us to request support.
Uploading a build
Use tvlabs upload
to upload build packages to the TV Labs Platform. This command will create a build in your organization's default App that can be used in access, automation or appium sessions.
tvlabs upload <path-to-build-package>
Figure: Example output of the tvlabs upload
command.
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 builds to a specific App
Use the --application
or -a
option to upload a build for a specific App in your TV Labs organization. You can create a new App in the App Management page.
tvlabs upload -a <application-slug> <path-to-build-package>
RESTful API
Applications uploaded this way are only available to use in Appium sessions. Use the tvlabs upload
command for full support.
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