XCOM 2 Cheats


TheCommands.co has assembled a list of all XCOM 2 console commands gathered from the latest version of the game. All these XCOM 2 cheat codes work with the console for all PC or Mac versions of the game with Steam and non-Steam versions. Commands included from all official DLCs such as the War of the Chosen.

You can enable the XCOM 2 console by entering -allowconsole to your launch options of the game. By pressing the ~`, or \ key on your keyboard, you can then open it from the game. Each key function depends on your keyboard layout. 

In the list of XCOM 2 cheats given below, some of the commands are labeled with Avenger and Mission tags. These commands will most probably work only when you are on a mission or in the Avenger. When you are in the Avenger and use Mission command, the game may not spot the command and vice versa.

Furthermore, some of the commands are from DLCs, and they will work only if you have installed the required DLC. For instance, the command BondSoldiers is tagged with the War of the Chosen, and it will only work if you have WOTC installed. 

You are free to make changes in the display settings by pressing the “Table View” and “Card View” buttons according to your preferences. For some users, specific layouts are easier to use. On each page of command, you can find more details and samples, including IDs and examples of working command. By clicking on the name of a command in the Table or Card view, you can visit the page of command.  

To instantly find the XCOM 2 cheats, you need to type the name of a command into the search box given below. 


Console Commands
Code Effect
giveresource [resource id] [amount]

On this page documenation for the GiveResource console command, you will find a list of all 6 XCOM 2 resource IDs to use with the command.

givehackreward [hack reward id]

With this XCOM 2 console commands, you can have the hack reward with the particular ID.

giveactionpoints [amount]

This console command can give the unit that you presently have chosen the particular amount of action points.

givescientist [level]

To have a scientist of particular level, you can use this console command. Note that you can only have one scientist at once, so it can restore your accessible scientist.
 

giveengineer [level]

With this XCOM 2 console commands, you can have an engineer of the particular level. Note that you can only have one engineer at once, so it can restore any accessible engineer that you have.

givetech [tech id]

Below you will find a list of all technology IDs to use with the GiveTech command. For the GiveTech command, you can also find documentation below, which contains detailed syntax explanation and working samples.

givefacility [facility id] [avenger/map index]

Below you will find a list of all 10 XCOM 2 facility IDs, together with documentation with samples for the GiveFacility console command.

setsoldierstat [stat id] [value] [soldier name] [0 / 1]

From XCOM 2, you can find a searchable table of all 17 stat IDs below. These stat IDs can be used with the SetSoldierStat console command - documentation with samples for this command can also be found below.

makesoldieraclass ["soldier name"] [class id]

In XCOM 2, you can find the documenation below for the MakeSoldierAClass console command. Documentation contains a list of all 10 XCOM 2 class IDs, how to use the command, and working samples for you to copy or modify.

removefortressdoom [amount]

With this console command, you can remove the particular amount of doom from the Avatar Project.

forcecompleteobjective [objective id]

Here is a list of all 31 mission types, and all objective IDs, from XCOM 2. Also below, you can find documentation, together with examples, for the ForceCompleteObjective console command.

endbattle [0 / 1]

With this command, you can end your current mission. If all objectives are finished, you will win the mission, or else you will fail. Complete all mission objectives with the ForceCompleteObjective command before using this to win your mission.

bondsoldiers ["soldier name"] ["soldier name"] [true / false]

Two particular soldiers bond (true) or unbond (false) by using this command.

SkipAI

This console command allows the AI miss out a turn (i.e. it can end the AIs turn and make it your turn).

PowerUp

This console command lets you to enable and disable (toggles) god mode for all of your squad (not AI). When you are in god mode, your squad will not have to reload, and will not take any harm (unlimited health).

TakeNoDamage

With this console command, you can enable and disable (toggle) invincibility for all of your soldiers.

ToggleUnlimitedActions

This console command lets you to enable and disable (toggles) infinite action points for both you and the AI (well, APs will not be used up). Note that if you are using it on the AIs turn, the AI will not run out of action points.

ForceCritHits

This console command lets you enable and disable (toggle) 100% option for both your squad and the AI to hit critical hits - i.e. every hit will be a critical hit with this enabled,.

givecontinentbonus [continent bonus id]

Below you will find a list of all 14 XCOM 2 GiveContinentBonus IDs. For the GiveContinentBonus console command, you can also find documentation below, which includes useful examples.

ToggleUnlimitedAmmo

With this console command, you can enable or disable (toggle) infinite ammunition for both of your squad and the AI. To avoid giving the unlimited ammo, you need to Turn on at the start of your turn, and off at the end.

ToggleFOW

The XCOM 2 console commands can enable and disable (toggles) Fog of War (FoW). Fog of War is the fog that wraps the map in impractical places.

ToggleSquadConcealment

With this console command, you can enable and disable (toggles) the suppression of your squad. Aliens that are already responsive of any solider(s) location, it can stay aware despite of whether this is on or off.

TTC

This console command can teleport the unit that you presently have chosen to the location in the game that your mouse cursor is over.
 

TATC

This console command can teleport each unit in the map to the location that your mouse cursor is over.

levelupbarracks [amount]

This console command may level up all soldiers in your quarters by the particular amount of levels.

HealAllSoldiers

This command allows you to heal all soldiers presently in your barracks to full HP.

GiveFactionSoldiers

With the XCOM 2 console commands, you can have a soldier from each Faction in the War of the Chosen. The three Factions are Reaper, Skirmisher, and Templar.

GiveAbilityCharges

NOTE: This command has been reported as "buggy" - so make sure you save your game before using it. To all of your abilities, excluding class abilities, this command should add 100 charges.

RestartLevel

You can restart your current mission with this command.

RestartLevelWithSameSeed

This console command can revive your existing mission with the same seed that it was made with. It means all of the haphazard facets of the game (e.g. spawn locations) will be the accurately same as they were when you first started.
 

pause

This command can toggle the pause condition for the game (i.e. if paused, it will unpause, if not paused, it will pause).

sloMo

With this command you can forward or slow down the game by using this command - i.e. it can change the speed the game runs at. A multiplier of 2 would make the whole thing in the game be twice as fast, a multiplier of 0.5 would make the game run in slowmotion, half as fast as it typically would.

screenshot

To have a screenshot of your game, you can use this console command and save it to Documents\my games\XCOM2\XComGame\Screenshots\PCConsole.

listtextures

This command enlists all texture files that are presently loaded by the game.

additem [item id] [amount]

Below you will find a searchable list of all 202 XCOM 2 item IDs, together with documentation for the AddItem command to use these with.

listsounds

With this command you can make a list of all sound files that are presently loaded by the game.

ToggleRain

This command can enable or disable (toggle) rain.
 

ChangeList

This command can print to the console log a list of the most current changes in the game.