The Screenly CLI simplifies interactions with Screenly through your terminal, designed for both manual use and task automation.
Download the latest release here.
$ brew tap screenly/screenly-cli
$ brew install screenly-cli$ nix-shell -p screenly-cliFor other operating systems or Docker usage:
$ docker run --rm \
-e API_TOKEN=YOUR_API_TOKEN \
screenly/cli:latest helpTo build the Screenly CLI from source, ensure you have Rust installed:
$ cargo build --releaseNote
If you're building from source in Ubuntu, make sure to install build-essential:
sudo apt-get install -y build-essentialOtherwise, you'll get the following error:
error: linker `cc` not found
The screenly binary will be located in target/release.
To configure a non-production API server, set the API_SERVER_NAME environment variable:
$ API_SERVER_NAME=local cargo build --releaseExplore available commands here.
Integrate Screenly CLI into your GitHub workflows:
Required Screenly API token for your team.
Required Command to execute (e.g., screen list).
Optional CLI version override.
uses: screenly/cli@master
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
cli_commands: screen listGenerate pb_signature.rs from signature.proto:
$ cargo install protobuf-codegen
$ protoc --rust_out . signature.proto
$ mv signature.rs src/pb_signature.rsThis project follows Semantic Versioning (M.m.p = Major.minor.patch).
- Prepare the release:
- Create a release branch (e.g.,
release-M.m.p, likerelease-1.0.6). This is just a suggestion; you can name the branch as you prefer. - Update version in
Cargo.toml,action.yml, andDockerfile - Run
cargo buildto updateCargo.lockwith the new version. This step is optional but recommended.
- Create and merge the pull request:
- Create a pull request from the release branch to
master - Once approved, merge the pull request
- Create the GitHub release:
- Make sure that you're on the
masterbranch and have pulled the latest changes - Create a version tag (e.g.,
vM.m.p, likev1.0.h6) and push it to GitHub by running:git tag vM.m.p git push origin vM.m.p
- The release workflow will detect the version tag and create the release automatically
- Add the release notes to the GitHub release description
- Update Homebrew:
- Update the Homebrew repo with the latest version