token is now required

patch bump
This commit is contained in:
onyx-and-iris 2025-06-10 22:53:14 +01:00
parent 6985ad84d1
commit e4353d7626
3 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
A command line interface for Streamlabs Desktop A command line interface for the Streamlabs Desktop websocket API.
For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md) For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
@ -21,6 +21,7 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
- Python 3.10 or greater - Python 3.10 or greater
- [Streamlabs Desktop][sl-desktop] - [Streamlabs Desktop][sl-desktop]
- A websocket token: Settings > Remote Control > API Token
## Installation ## Installation
@ -44,7 +45,7 @@ The CLI should now be discoverable as `slobs-cli`
- --domain/-d: Streamlabs client domain - --domain/-d: Streamlabs client domain
- --port/-p Streamlabs client port - --port/-p Streamlabs client port
- --token/-t: Remote Control API Token - --token/-t: API Token
Pass `--domain`, `--port` and `--token` as flags on the root command, for example: Pass `--domain`, `--port` and `--token` as flags on the root command, for example:

View File

@ -1,6 +1,6 @@
[project] [project]
name = "slobs-cli" name = "slobs-cli"
version = "0.7.4" version = "0.7.5"
description = "A command line application for Streamlabs Desktop" description = "A command line application for Streamlabs Desktop"
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
dependencies = ["pyslobs>=2.0.4", "asyncclick>=8.1.8"] dependencies = ["pyslobs>=2.0.4", "asyncclick>=8.1.8"]

View File

@ -28,12 +28,11 @@ from pyslobs import ConnectionConfig, SlobsConnection
help="The token for the SLOBS server.", help="The token for the SLOBS server.",
envvar="SLOBS_TOKEN", envvar="SLOBS_TOKEN",
show_envvar=True, show_envvar=True,
required=True,
) )
@click.pass_context @click.pass_context
async def cli(ctx: click.Context, domain: str, port: int, token: str | None): async def cli(ctx: click.Context, domain: str, port: int, token: str | None):
""" """Command line interface for Streamlabs Desktop."""
Command line interface for SLOBS.
"""
ctx.ensure_object(dict) ctx.ensure_object(dict)
config = ConnectionConfig( config = ConnectionConfig(
domain=domain, domain=domain,