XCOM 2 Console Commands: Supplies, Research, Soldiers and More (PC)

On this page
Short answer: XCOM 2 has a hidden developer console on PC. In Steam, add -allowconsole to the game’s launch options, load a campaign and press ~ to open it. GiveResource Supplies 1000 adds supplies, GiveScientist 5 and GiveEngineer 5 add staff, LevelUpBarracks 3 promotes every soldier, and TakeNoDamage makes your squad unkillable. The console is not available on PlayStation, Xbox or Switch.
How to turn on the console
- In your Steam library, right-click XCOM 2 and choose Properties.
- Under General → Launch Options, type
-allowconsole. Some guides also add-log -autodebug; they are not needed. - Start the game and load or start a campaign. Commands don’t work from the main menu.
- Press ~ (tilde, the key above Tab on English keyboards) to open the console. On other layouts the key can differ.
- Type a command and press Enter.
Not on Steam? Add -allowconsole to the end of the Target field of a desktop shortcut to the game instead. War of the Chosen uses the same launch option. Some players report that the option is ignored when the game starts through the 2K launcher; if the console won’t open, launch the game with a mod launcher or straight from its exe with the option added. Some guides say to type enablecheats first, others don’t mention it, so try it if a command does nothing.
Back up your save before you use commands. Strategy commands only work on the Avenger, and mission commands only during a mission. Forcing story research with GiveTech can skip cutscenes and break a campaign.
Resources
| Command | What it does |
|---|---|
GiveResource Supplies [amount] | Adds Supplies. |
GiveResource Intel [amount] | Adds Intel. |
GiveResource AlienAlloy [amount] | Adds Alien Alloys. |
GiveResource EleriumDust [amount] | Adds Elerium Crystals. |
GiveResource EleriumCore [amount] | Adds Elerium Cores. One player reported it did not work for him. |
GiveResource AbilityPoint [amount] | Adds ability points (War of the Chosen). |
GiveResource CorpseAdventTrooper [amount] | Adds ADVENT Trooper corpses. CorpseAdventMEC and CorpseAdventOfficer work the same way. |

Avenger, research and staff
| Command | What it does |
|---|---|
GiveScientist [level] | Adds one scientist at the skill level you give. |
GiveEngineer [level] | Adds one engineer at the skill level you give. |
GiveTech [TechName] | Completes a research project instantly, for example GiveTech MagnetizedWeapons, GiveTech PlatedArmor or GiveTech AutopsySectoid. |
GiveFacility [FacilityName] [slot] | Builds a facility in an Avenger slot, for example Laboratory, PsiChamber or ShadowChamber. |
SetStrategyFacilitiesUnlockAll | Unlocks every facility for building. |
SetStrategyFacilitiesInstantBuild | Facilities finish building instantly. |
Items and armour
| Command | What it does |
|---|---|
AddItem [ItemName] [amount] | Adds an item to your inventory. |
AddItem LightPlatedArmor | Adds a Spider Suit. |
AddItem HeavyPlatedArmor | Adds an E.X.O. Suit. |
AddItem LightPoweredArmor | Adds a Wraith Suit. |
AddItem HeavyPoweredArmor | Adds a W.A.R. Suit. |
AddItem AimUpgrade_Sup | Adds a superior Scope. Other weapon upgrades: ReloadUpgrade (Auto-Loader), ClipSizeUpgrade (Expanded Magazine), CritUpgrade (Laser Sight), FreeKillUpgrade (Repeater), FreeFireUpgrade (Hair Trigger), MissDamageUpgrade (Stock). End the name with _Bsc, _Adv or _Sup for basic, advanced or superior. |
Soldiers
| Command | What it does |
|---|---|
LevelUpBarracks [ranks] | Promotes every soldier in the barracks by that many ranks. |
HealAllSoldiers | Heals every soldier in the barracks. Use it on the Avenger, not during a mission. |
MakeSoldierAClass "Soldier Name" [Class] | Changes the named soldier’s class. Guides say the soldier drops back to Squaddie. |
Missions
| Command | What it does |
|---|---|
TakeNoDamage | Your units take no damage. |
PowerUp | God mode for your squad. Some guides say it also gives unlimited ammo. |
ToggleUnlimitedActions | Unlimited action points. Guides say the enemy gets them too. |
ToggleUnlimitedAmmo | Unlimited ammo for every unit, enemies included. |
GiveActionPoints [amount] | Gives the selected unit extra action points. |
ForceCritHits | Every hit is a critical hit, for both sides. |
SkipAI | The enemy skips its turn. |
TTC | Teleports the selected unit to the cursor. |
TATC | Teleports all your units to the cursor. |
ToggleFOW | Turns the fog of war on or off. |
ToggleSquadConcealment | Turns squad concealment on or off. |
RestartLevel | Restarts the current mission. |
RestartLevelWithSameSeed | Restarts the mission with the same random seed. |
SloMo [speed] | Changes game speed: 1 is normal, 0.5 half speed, 2 double. |
ToggleRain | Turns rain on or off. |
We left out commands whose effect the guides describe differently, such as EndBattle and RemoveFortressDoom. KillAllAIs and ToggleGodMode, which show up in some lists, are not in any of the guides we checked.
More XCOM 2 and strategy guides
Everything we have on the game is on the XCOM 2 page. If you like squad tactics, read our MENACE review; for another strategy game’s console, see Europa Universalis IV console commands.
Sources
- GameWatcher: XCOM 2 console commands and cheats
- GameSkinny: Console commands for XCOM 2: War of the Chosen
- Twinfinite: XCOM 2, how to use cheats
- CheatCC: XCOM 2 cheats and cheat codes
- G2A News: XCOM 2 console commands
- Gamepur: All console commands in XCOM 2
- Steam Community: XCOM 2 cheat commands discussions
Last checked against sources: 13 November 2026.





