Skip to main content

Setup

Overview

The tvlabs CLI is a command-line tool to interact with the TV Labs platform. It provides a simple and secure way for developers and support teams to access devices within the TV Labs fleet for development, troubleshooting, as well as integration with CI/CD workflows.

Supported Platforms

The CLI currently supports the following platforms:

  • Tizen
  • webOS
  • Android TV
  • Fire TV
  • Google TV
  • Roku

Installation

To install the TV Labs CLI, use the following command:

/bin/bash -c "$(curl -fsSL https://tvlabs.ai/install.sh)"

To update to the most recent version, use the same command.

Verify your installation by running the following command in your shell:

tvlabs --version

Authentication

Go to https://tvlabs.ai/app/keys to create a new API key:

cli-api-key Figure 1: Creating an API key. You can give the key any name.

cli-api-key-list Figure 2: List of API keys.

To authenticate with the TV Labs platform, use the auth command followed by the just created API key:

tvlabs auth tv-XyODphpNhwdAphR6rIKINxLXVWGi_dby5rRHWWahDz6

Note: Treat your API key as a password. Always keep it secure.