XCOM 2 Cheat Codes

8 cheat codes for XCOM 2 on PC.

Enable console (Misc)

Steam launch option required before commands work; press ~ in-mission/base.

-allowconsole (launch option)

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

God mode (all units) (God Mode)

Toggles invulnerability for your squad — the XCOM 2 classic.

ToggleGodMode

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

Give resources (Infinite Money)

Syntax: GiveResource [Supplies|Intel|AlienAlloys|EleriumDust|EleriumCore] [amount].

GiveResource Supplies 500

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

Give item (Weapons)

e.g. GiveItem PlasmaRifle 4 — item names from the config; great for outfitting squads.

GiveItem [item] [amount]

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

Heal all units (Misc)

Fully heals and revives the squad mid-mission.

HealAllUnits

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

Level up soldier (Misc)

Promotes soldiers — build instant captains/colonels.

LevelUpBarracksSoldier [rank]

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

Kill all enemies (Misc)

Ends the firefight instantly.

KillAllEnemies

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.

Reveal map (Misc)

Debug camera/unit capture commands for the Avenger layer.

ForceCaptureUnit / ToggleStratMapCamera

In Steam, right-click XCOM 2 > Properties > Launch Options, add -allowconsole, then press ~ in-game. Single-player only.