/cli

Command Line Interface (CLI) and GitHub Actions workflow for Screenly.

Primary LanguageRustMIT LicenseMIT

Screenly Command Line Interface (CLI)

The purpose of Screenly's CLI is to make developer's life easier. Using our CLI, users are able to quickly interact with Screenly through their terminal. Moreover, this CLI is built such that it can be used for automating tasks.

Download

Releases are built automatically. You can download the latest release here.

Building

To build the Screenly CLI, you need to install Rust. The instructions for installing latest rust can be found here.

Then you just need to invoke the following command from inside the CLI directory:

cargo build --release

the screenly binary will be located in target/release directory.

GitHub Action

Our CLI is also available as a GitHub Action workflow.

Inputs

screenly_api_token

Required The Screenly API token for your team. You can retrieve this by going to Settings -> Team -> Tokens. Note that API tokens are limited in scope to your team.

You should use a GitHub Action Secret to store this rather than hard coding this in your code base.

cli_commands

Required This is the command you want to pass on, such as screen list.

cli_version

Use this option to override the CLI version used by the Action. Must point to a valid release.

Example usage

uses: screenly/cli@master
with:
  screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
  cli_commands: screen list