Cheats & CodesXCOM 2

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

XCOM 2 1
XCOM 2

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

  1. In your Steam library, right-click XCOM 2 and choose Properties.
  2. Under General → Launch Options, type -allowconsole. Some guides also add -log -autodebug; they are not needed.
  3. Start the game and load or start a campaign. Commands don’t work from the main menu.
  4. Press ~ (tilde, the key above Tab on English keyboards) to open the console. On other layouts the key can differ.
  5. 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

CommandWhat 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.
XCOM 2 2
XCOM 2

Avenger, research and staff

CommandWhat 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.
SetStrategyFacilitiesUnlockAllUnlocks every facility for building.
SetStrategyFacilitiesInstantBuildFacilities finish building instantly.

Items and armour

CommandWhat it does
AddItem [ItemName] [amount]Adds an item to your inventory.
AddItem LightPlatedArmorAdds a Spider Suit.
AddItem HeavyPlatedArmorAdds an E.X.O. Suit.
AddItem LightPoweredArmorAdds a Wraith Suit.
AddItem HeavyPoweredArmorAdds a W.A.R. Suit.
AddItem AimUpgrade_SupAdds 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

CommandWhat it does
LevelUpBarracks [ranks]Promotes every soldier in the barracks by that many ranks.
HealAllSoldiersHeals 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

CommandWhat it does
TakeNoDamageYour units take no damage.
PowerUpGod mode for your squad. Some guides say it also gives unlimited ammo.
ToggleUnlimitedActionsUnlimited action points. Guides say the enemy gets them too.
ToggleUnlimitedAmmoUnlimited ammo for every unit, enemies included.
GiveActionPoints [amount]Gives the selected unit extra action points.
ForceCritHitsEvery hit is a critical hit, for both sides.
SkipAIThe enemy skips its turn.
TTCTeleports the selected unit to the cursor.
TATCTeleports all your units to the cursor.
ToggleFOWTurns the fog of war on or off.
ToggleSquadConcealmentTurns squad concealment on or off.
RestartLevelRestarts the current mission.
RestartLevelWithSameSeedRestarts the mission with the same random seed.
SloMo [speed]Changes game speed: 1 is normal, 0.5 half speed, 2 double.
ToggleRainTurns 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.

Found a mistake or a step that no longer works? Tell us and we will check it.