Console variables

The World of Warcraft game client stores all of its configurations in console variables (CVars). These variables affect many aspects of the game such as the graphics, the sound system and the interface.
The value of a CVar can be queried with . The complete list of CVars is available from .
==Setting CVars==
There are several ways of setting the console variables. The most commonly used CVars are tied to the Interface window settings.
===SetCVar===
AddOns and scripts can set CVars by calling .
/run SetCVar("scriptErrors", 1)
===Console===
With the /console slash command.
 /console scriptErrors 1
The /console enable command or launching the game with the WoW.exe -console argument will allow you to open the Console window in-game by pressing the ` or ~ key.
===Config.wtf===
The Config.wtf file stores settings mostly relevant to game startup, such as gxMaximize for the screen window size and locale for the language.
 World of Warcraft\_retail_\WTF\Config.wtf
The config-cache.wtf files are used for character and WoW account-specific settings. They are synchronized to the server if the CVar is enabled (by default).
 World of Warcraft\_retail_\WTF\Account\<AccountName>\<Server>\<Character>\config-cache.wtf
 World of Warcraft\_retail_\WTF\Account\<AccountName>\config-cache.wtf
Config files can be manually edited while the game is not running; they would otherwise be overwritten on reloading or logging out.
==CVar Scope==
Some CVars are character-specific or WoW account-specific, for example:
* When setting , it will only be changed for your current character.
* When setting , it will not be changed for any other WoW accounts on your Blizzard account.
==Resetting CVars==
Use or the command to reset a CVar, for example:
/run SetCVar("autoSelfCast", GetCVarDefault("autoSelfCast"))
 /console cvar_default autoSelfCast
The AdvancedInterfaceOptions addon can show which cvars were changed from the default:
To reset the whole user interface:
 /console cvar_default
:Changing a character or account-specific CVar cannot be undone or reverted by uninstalling, repairing the game or deleting the WTF folder as they will be synchronized from the server again.