Skip to content

Command Line Reference

QPfixxy edited this page Nov 21, 2026 · 1 revision

Command Line Reference

Everything in the app also works from the rigswap command. Games and setups are named by name (any case); games can also be named by Steam app id or by the start of their id from rigswap game list. Run rigswap <command> --help for details.

Overview

Command What it does
rigswap gui [--tray] Open the app (--tray: start minimised to the tray when Auto-switch is on)
rigswap info Where data is stored and what's in the library
rigswap hardware The GPUs, power and displays RigSwap sees, and which setup matches

Setups

Command What it does
rigswap setup list List setups (* = active)
rigswap setup add NAME Add a setup
rigswap setup rename NAME NEW_NAME Rename a setup
rigswap setup remove NAME [--yes] Remove a setup; --yes is needed if it has saved configs
rigswap setup lock NAME / unlock NAME Lock a setup: switching away never saves over it
rigswap setup when NAME [options] When to use it automatically (all given conditions must hold)
rigswap setup move NAME POSITION The order setups are checked in (1 = first)

setup when options:

Option Meaning
--external-gpu yes|no|any An external GPU is (or isn't) connected
--gpu TEXT A connected GPU's name contains TEXT, e.g. "RTX 4070" ("" to clear)
--power ac|battery|any Plugged in or on battery
--display yes|no|any An external display is (or isn't) connected
--clear Never switch to it automatically

Games

Command What it does
rigswap import [--list] [--include-found-by-windows] Find installed games from every launcher and add the new ones. --list only lists. Games found only by Windows are added with --include-found-by-windows.
rigswap steam [--import] List installed Steam games (and add them)
rigswap game list List games
rigswap game add NAME [--install-dir DIR] [--exe EXE ...] Add a game by hand. --exe is a full path or a file name like eldenring.exe, and can be repeated.
rigswap game show GAME A game's details, config locations and saved setups
rigswap game edit GAME [--name NAME] [--install-dir DIR] [--add-exe EXE] [--remove-exe EXE] Change a game
rigswap game remove GAME [--yes] Remove a game; --yes is needed if it has saved configs

Config locations

Command What it does
rigswap config add GAME PATH [--file|--folder|--registry] [--include GLOB ...] [--exclude GLOB ...] Add a config file, folder or registry key. --file/--folder are only needed if it doesn't exist yet. --include/--exclude apply to folders and registry keys.
rigswap config remove GAME NUMBER Remove a location (its number from game show)
rigswap detect [GAME] [--all] [--add] Find config files with the game database and engine rules; --add adds the safe ones
rigswap learn GAME [--yes] Learn mode: find settings by watching what changes
rigswap manifest update Download or update the game config database
rigswap manifest info Whether it's downloaded, and how many games it knows

Saving and switching

Command What it does
rigswap save SETUP GAME Save a game's current settings as its copy for a setup
rigswap save SETUP --all The same for every game with config locations
rigswap switch SETUP Apply every game's copy for a setup
rigswap undo Put back everything from before the last switch or restore
rigswap status Games whose live settings differ from the active setup's copy
rigswap restore GAME [--setup SETUP] Put a game's saved copy back (the active setup's, unless --setup)

Automatic switching

Command What it does
rigswap watch [--interval SECONDS] [--once] Switch automatically when the hardware changes, until stopped. --once checks once and exits.
rigswap autostart on|off|status [--headless] Start RigSwap when you log in. --headless (Linux) runs rigswap watch as a systemd user service instead of the app.

Environment

Variable Meaning
RIGSWAP_DATA_DIR Use a different data folder (default: %LOCALAPPDATA%\rigswap or ~/.local/share/rigswap)

Example: set up from scratch

rigswap setup add "Handheld"
rigswap setup add "eGPU Dock"
rigswap import
rigswap detect --all --add
rigswap save "Handheld" --all          # with every game set up for handheld
rigswap save "eGPU Dock" --all         # after setting them up for the dock
rigswap setup when "eGPU Dock" --external-gpu yes
rigswap setup when "Handheld" --external-gpu no
rigswap autostart on

Clone this wiki locally