mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-04-26 13:23:45 +01:00
5.7 KiB
5.7 KiB
gobs-cli
A command line interface for OBS Websocket v5
For an outline of past/future changes refer to: CHANGELOG
Configuration
Flags
Pass --host
, --port
and --password
as flags to the root command, for example:
gobs-cli --host=localhost --port=4455 --password=<websocket password> --help
Environment Variables
Load connection details from your environment:
#!/usr/bin/env bash
export OBS_HOST=localhost
export OBS_PORT=4455
export OBS_PASSWORD=<websocket password>
export OBS_TIMEOUT=5
Commands
VersionCmd
gobs-cli version
SceneCmd
- list: List all scenes.
gobs-cli scene list
- current: Get the current scene.
-
flags:
optional
- --preview: Preview scene.
-
gobs-cli scene current
gobs-cli scene current --preview
- switch: Switch to a scene.
-
flags:
optional
- --preview: Preview scene.
-
args: SceneName
-
gobs-cli scene switch LIVE
gobs-cli scene switch --preview LIVE
SceneItemCmd
- list: List all scene items.
- args: SceneName
gobs-cli sceneitem list LIVE
- show: Show scene item.
-
flags:
optional
- --parent: Parent group name.
-
args: SceneName ItemName
-
gobs-cli sceneitem show START "Colour Source"
- hide: Hide scene item.
-
flags:
optional
- --parent: Parent group name.
-
args: SceneName ItemName
-
gobs-cli sceneitem hide START "Colour Source"
- toggle: Toggle scene item.
-
flags:
optional
- --parent: Parent group name.
-
args: SceneName ItemName
-
gobs-cli sceneitem toggle --parent=test_group START "Colour Source 3"
- visible: Get scene item visibility.
-
flags:
optional
- --parent: Parent group name.
-
args: SceneName ItemName
-
gobs-cli sceneitem visible --parent=test_group START "Colour Source 4"
GroupCmd
- list: List all groups.
- args: SceneName
gobs-cli group list START
- show: Show group details.
- args: SceneName GroupName
gobs-cli group show START "test_group"
- hide: Hide group.
- args: SceneName GroupName
gobs-cli group hide START "test_group"
- toggle: Toggle group.
- args: SceneName GroupName
gobs-cli group toggle START "test_group"
- status: Get group status.
- args: SceneName GroupName
gobs-cli group status START "test_group"
InputCmd
- list: List all inputs.
-
flags:
optional
- --input: List all inputs.
- --output: List all outputs.
- --colour: List all colour sources.
-
gobs-cli input list
gobs-cli input list --input --colour
- mute: Mute input.
- args: InputName
gobs-cli input mute "Mic/Aux"
- unmute: Unmute input.
- args: InputName
gobs-cli input unmute "Mic/Aux"
- toggle: Toggle input.
- args: InputName
gobs-cli input toggle "Mic/Aux"
RecordCmd
- start: Start recording.
gobs-cli record start
- stop: Stop recording.
gobs-cli record stop
- status: Get recording status.
gobs-cli record status
- toggle: Toggle recording.
gobs-cli record toggle
- pause: Pause recording.
gobs-cli record pause
- resume: Resume recording.
gobs-cli record resume
StreamCmd
- start: Start streaming.
gobs-cli stream start
- stop: Stop streaming.
gobs-cli stream stop
- status: Get streaming status.
gobs-cli stream status
- toggle: Toggle streaming.
gobs-cli stream toggle
SceneCollectionCmd
- list: List scene collections.
gobs-cli scenecollection list
- current: Get current scene collection.
gobs-cli scenecollection current
- switch: "Switch scene collection.
- args: Name
gobs-cli scenecollection switch test-collection
- create: Create scene collection.
- args: Name
gobs-cli scenecollection create test-collection
ProfileCmd
- list: List profiles.
gobs-cli profile list
- current: Get current profile.
gobs-cli profile current
- switch: Switch profile.
- args: Name
gobs-cli profile switch test-profile
- create: Create profile.
- args: Name
gobs-cli profile create test-profile
- remove: Remove profile.
- args: Name
gobs-cli profile remove test-profile
ReplayBufferCmd
- start: Start replay buffer.
gobs-cli replaybuffer start
- stop: Stop replay buffer.
gobs-cli replaybuffer stop
- status: Get replay buffer status.
gobs-cli replaybuffer status
- save: Save replay buffer.
gobs-cli replaybuffer save
StudioModeCmd
- enable: Enable studio mode.
gobs-cli studiomode enable
- disable: Disable studio mode.
gobs-cli studiomode disable
- toggle: Toggle studio mode.
gobs-cli studiomode toggle
- status: Get studio mode status.
gobs-cli studiomode status
VirtualCamCmd
- start: Start virtual camera.
gobs-cli virtualcam start
- stop: Stop virtual camera.
gobs-cli virtualcam stop
- toggle: Toggle virtual camera.
gobs-cli virtualcam toggle
- status: Get virtual camera status.
gobs-cli virtualcam status