CLI Options
SwiftlyS2 startup behavior can be configured with command-line options passed when launching the game server.
Startup Example
./game/bin/win64/cs2.exe -dedicated +map de_dust2 \
-sw_path addons/swiftlys2 \
-sw_logpath addons/swiftlys2/logs \
-sw_hide_logs_in_console 1 \
-sw_loglevel WARNINGOptions Reference
| Option | Example | Details |
|---|---|---|
-sw_path | -sw_path addons/swiftlys2 | Relative path from game/csgo where SwiftlyS2 is located. Default: addons/swiftlys2. |
-sw_logpath | -sw_logpath addons/swiftlys2/logs | Relative path from game/csgo where logs are stored. Default: addons/swiftlys2/logs. |
-sw_hide_logs_in_console | -sw_hide_logs_in_console 1 | Disables plugin logs in console. Accepted values: 1, TRUE, YES. |
-sw_loglevel | -sw_loglevel WARNING | Minimum log level shown in console. Default: all. Accepted values: DEBUG, INFO, WARNING, ERROR, OFF. |
Notes
-sw_pathand-sw_logpathare relative to thegame/csgodirectory.- Use
-sw_hide_logs_in_consolewhen you want plugin logs to remain in files but not in console output. - Use
-sw_loglevelto reduce console noise while preserving higher-severity logs.