slPhantomRemote

CLI Commands

Starting CLI Mode

slPhantomRemote.exe uimode:cli

This starts the interactive CLI with a sala> prompt.

CLI Commands (Interactive Mode)

When you're in CLI mode with the sala> prompt, these commands are available:

Discovery and Connection

CommandDescription
discover or scanFind Phantom devices on network (shows with [0], [1], [2] indices)
connect <arg>Connect by index, IP, or name
disconnectDisconnect from current device
statusShow current device status

Connect examples:

Playback Control

CommandGUI Equivalent
play or pSpace key (Start playback)
pause or stopSpace key (Pause playback)
next or nRight arrow (Next track)
prev or bLeft arrow (Previous track)

Volume Control

CommandGUI Equivalent
volumeShow current volume
volume <0-100>Set volume level
volup or +Up arrow (Increase volume)
voldown or -Down arrow (Decrease volume)
mute or mM key (Toggle mute)

Source Management

CommandGUI Equivalent
sources or lsList available sources with numbers
source <arg>Switch to source by index, name, or ID

Source selection examples:

Device Management

CommandDescription
devicesShow all discovered devices (with indices)
rename <name>Rename current device
favoriteToggle favorite status (shows with * in lists)

Advanced Features

CommandGUI Equivalent
nightmode, night, or nmCtrl+N (Toggle night mode)
bluetooth or btCtrl+B (Activate Bluetooth pairing)
namespace [devices/systems/groups] or nsChange API namespace

System Commands

CommandDescription
configOpen configuration file (Ctrl+O in GUI)
logShow recent log entries (F12 in GUI)
dumpDump all device information
test <IP>Test device API endpoints
clearClear screen
versionShow version information
help or hShow help
aliasShow command shortcuts
exit or quitExit CLI mode

Command Line Mode (One-Shot Commands)

For automation, you can run single commands without entering interactive mode:

# Direct device control
slPhantomRemote.exe 192.168.1.100 -play
slPhantomRemote.exe 192.168.1.100 -pause
slPhantomRemote.exe 192.168.1.100 -volume 30
slPhantomRemote.exe 192.168.1.100 -mute
slPhantomRemote.exe 192.168.1.100 -playsource "Spotify"

# Discovery
slPhantomRemote.exe -discover

# GUI with auto-connect
slPhantomRemote.exe -connect 192.168.1.100

Available One-Shot Commands

Device Discovery and Connection

Playback Control

Volume Control

Source Management

Device Power Management

Examples

CLI Mode Session

# Discovery and connection
sala> discover
sala>=> Found 4 device(s):
  [0] 192.168.0.11         192.168.0.11
  [1] Arch-b               192.168.0.30
  [2] Gold Phantom-Right   192.168.0.33
  [3] Gold Phantom-Left    192.168.0.31    *

sala> connect 3                    # Connect by index
sala> connect "Gold Phantom-Left"  # Connect by name
sala> connect 192.168.0.31        # Connect by IP

# Source management
sala> sources
sala>=> Found 3 source(s):
  [0] Spotify (spotify)
  [1] My Music (upnp)
  [2] Optical (optical)

sala> source 0          # Select by index
sala> source Spotify    # Select by name
sala> source optical    # Select by type

# Favorites
sala> favorite          # Mark current device as favorite
sala>=> Added to favorites

# Quick aliases
sala> c 2               # connect to device [2]
sala> p                 # play
sala> v 50              # volume 50%
sala> +                 # volume up
sala> m                 # mute toggle

CMD Mode Examples

# Discover all devices on network
slPhantomRemote.exe -discover

# Connect GUI to specific device
slPhantomRemote.exe -connect 192.168.1.100

# Full network interrogation
slPhantomRemote.exe -dump

# Play/pause controls
slPhantomRemote.exe 192.168.1.100 -play
slPhantomRemote.exe 192.168.1.100 -pause

# Volume control
slPhantomRemote.exe 192.168.1.100 -volume 30
slPhantomRemote.exe 192.168.1.100 -volup

# Source selection
slPhantomRemote.exe 192.168.1.100 -getsourcelist
slPhantomRemote.exe 192.168.1.100 -playsource "My Spotify"
slPhantomRemote.exe 192.168.1.100 -playsource 0

# Device power management
slPhantomRemote.exe 192.168.1.100 -restart
slPhantomRemote.exe 192.168.1.100 -poweroff

# Quick actions on last device
slPhantomRemote.exe -volup
slPhantomRemote.exe -voldown
slPhantomRemote.exe -mute

# Explicit namespace usage
slPhantomRemote.exe 192.168.1.100 groups -play
slPhantomRemote.exe 192.168.1.100 systems -volume 25

Automation Example (PowerShell)

# Morning routine
slPhantomRemote.exe 192.168.1.100 -volume 20
slPhantomRemote.exe 192.168.1.100 -playsource spotify
slPhantomRemote.exe 192.168.1.100 -play

Advanced Usage

Namespace Selection

You can specify the namespace explicitly for devices that support multiple namespaces:

slPhantomRemote.exe <IP> <namespace> <operation>

Where namespace is: devices, systems, or groups

Source Selection Methods

The -playsource command supports multiple selection methods:

Network Interrogation (-dump)

The -dump command provides comprehensive information about all Phantom devices on your network, including:

This is particularly useful for debugging connectivity issues and understanding device capabilities.

Troubleshooting CLI Mode

If CLI mode doesn't start properly:

  1. Make sure you're running from a command prompt (cmd.exe) or PowerShell
  2. Try running with full path: C:\path\to\slPhantomRemote.exe uimode:cli
  3. Check that .NET 8.0 Desktop Runtime is installed
  4. If help shows Windows CMD help instead of app help, close and restart

Key Features

The CLI mode provides the same core functionality as the GUI: play/pause control, volume control, source switching, and device discovery.