-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your issue described in the documentation?
- I have read the documentation
Is your issue present in the latest beta/pre-release?
None
Describe the Bug
Hi,
I am trying to automate pin pairing between client and host with a single click
So far I have the following batch file, which does work for pairing
@echo off
curl --insecure -X POST https://%~1:47990/api/pin -u %~2:%~3 -H "Content-Type: application/json" -d "{\"pin\":\"%~4\",\"name\":\"%~5\"}"
I call this batch file as follows
"config sunshine set pin.bat" example.lan sunshine qwerty 4695 mycomputername
This work my only issue, is that to obtain the pin number, I call
moonlight.exe pair example.lan
This opens a window with the pin number graphically visible.
But I need that number to be printed on the console.
Is there a way to obtain the pin number programmatically ?
A command line interface version of the moonlight.exe pair function ?
Expected Behavior
cli version of moonlight.exe pair example.lan
Additional Context
No response
Host Operating System
Windows
Operating System Version
windows 22h2
Architecture
amd64/x86_64
Sunshine commit or version
Sunshine version: 2025.1027.181930 commit: e657df0
Package
Windows - installer (recommended)
GPU Type
NVIDIA
GPU Model
rtx 3060
GPU Driver/Mesa Version
591.44
Capture Method
None
Config
Apps
Relevant log output
none relevant