Note: Exact command names and parameters differ between XCOM: Enemy Within and mods or console implementations. If the command fails, try variations like giveitem, additem, or consult mod documentation.
| Command | Effect |
|---------|--------|
| GiveResource <resource> <amount> | Resources: credits, alloys, elerium, meld. E.g., GiveResource credits 9999 |
| GiveEngineer <n> | Adds engineers (max 99 visible) |
| GiveScientist <n> | Adds scientists |
| SetCountrySatellites <country index> <n> | Puts satellites over specific countries (indices: 0=US, 1=Russia, etc.) |
| SetCountryPanic <idx> <0-100> | Adjust panic level per country |
| GiveItem <item name> <qty> | Items like corpse_sectoid, weapon_fragments, elerium115 |
| StartMission <mission type> | Force a mission type (e.g., StartMission UFO) |
| ShowResearch | List all research projects |
| SetResearchComplete <project name> | Instantly finish specific research |
| SetFacilityGrid <x> <y> | Unlock or place facilities (dangerous – can break base layout) |
| GivePerk <perk name> | Adds a perk to the selected soldier (strategic screen) |
These modify the core gameplay loop and are commonly used for testing mechanics.
SetSoldierStat [StatName] [Value]: Changes a soldier's stats.
ForceCrit: Forces the next attack to be a critical hit.Even with this guide, things can go wrong. Here are the top fixes for "console not working." xcom enemy within dev console full
Problem: I press tilde (~) and nothing happens.
Solution: Your keyboard layout. Try these keys: ** (grave), #, ¬, or ². On some laptops, you need to enable "Function Lock" (Fn + Esc).
Problem: The console opens, but I type PowerUp and nothing happens.
Solution: You are likely in the Ant Farm (strategic layer). PowerUp only works on the tactical layer (battlefield). Move to a mission first.
Problem: Red squares and text appear everywhere on screen.
Solution: You forgot the launch argument. Go back to Steam launch options and add -noRedScreens after -allowconsole. Note: Exact command names and parameters differ between
Problem: My game crashes when I use GiveResource.
Solution: You are using the wrong syntax. Do not use spaces inside the resource name. It is GiveResource Meld 100, not GiveResource Meld 100 Credits.
Once the console is open, you can type commands in real-time. Here are the most game-breaking (and entertaining) categories of the full command set.
| Command | Effect |
|---------|--------|
| ShowDebugManager | Displays current game state flags |
| ShowAI | Toggles visualization of alien AI pathfinding nodes |
| ShowLog | Dumps latest engine log to console |
| GetGlobalVar <var name> | Internal variable inspector |
| SetGlobalVar <var name> <value> | Change internal global variables (advanced) |
| Exit | Closes the game | ForceCrit : Forces the next attack to be a critical hit
While the console is robust, it is not bug-proof.
Always save your game before typing a command you found on a forum from 2014.