| Command | Effect |
|---------|--------|
| GiveResource Supplies [Amount] | Supplies |
| GiveResource AlienAlloy [Amount] | Alloys |
| GiveResource EleriumDust [Amount] | Elerium |
| GiveResource Intel [Amount] | Intel |
| GiveResource AbilityPoints [Amount] | XCOM AP (shared pool) |
| GiveResource SoldierAbilityPoints [Amount] | Soldier-specific AP (for all soldiers) |
Steam version:
Alternate method (if above fails):
In-game, press the tilde ~ or backquote key (above Tab). If nothing appears, try [ or ] depending on your keyboard layout.
| Class | Console Name |
|-------|---------------|
| Shinobi | Shinobi |
| Ranger | Ranger |
| Gunner | Gunner |
| Grenadier | Grenadier |
| Technical | Technical |
| Specialist | Specialist |
| Assault | Assault |
| Sharpshooter | Sharpshooter |
| Psi Operative (vanilla) | Psionic |
| Hero classes: Skirmisher, Reaper, Templar | Skirmisher, Reaper, Templar |
Example:
GiveSoldier sharpshooter "Deadshot"
| Command | Effect |
|---------|--------|
| ToggleGodMode | God mode for all soldiers (can break AI) |
| GiveResource [Resource] [Amount] | Add supplies, intel, alloys, etc. |
| GiveEngineer [Number] | Add engineers |
| GiveScientist [Number] | Add scientists |
| LevelUpBarracks [Number] | Levels up all soldiers in barracks |
| HealAllSoldiers | Fully heals everyone |
GiveResource Supplies 500
GiveResource AbilityPoints 50
LevelUpBarracks 1
MakeSoldierAClass shinobi
KillAllAIs
If you want a specific command (e.g., spawning an enemy, completing a particular research, or forcing a covert action), let me know and I can provide the exact internal name.
To use console commands in XCOM 2: Long War of the Chosen (LWOTC)
, you must first enable the console by adding -allowconsole to your game's launch options in Steam. Once in-game, press the tilde (~) or backslash () key to open the command interface. Essential LWOTC-Specific Commands
These commands address specific mechanics or bugs unique to the Long War overhaul:
LWOTC_setselectedunitactive: Fixes bugs where soldiers remain "tired" or "wounded" indefinitely.
RebuildSelectedSoldiersClass [ClassName] [Rank]: Essential for updating soldier perk trees after mod updates without restarting a campaign.
RefreshCovertActions: Removes legacy or disabled Covert Actions (like "Increase Income") from your current campaign.
lwforceevac: Instantly spawns an evac zone if the standard mission evac is bugged or spawns off-map. xcom 2 lwotc console commands
AddAlienRecruit [TemplateName]: Specifically for users of the "Playable Aliens" LWOTC bridge; allows adding alien units directly to the barracks. Strategy & Management Commands
Use these on the Avenger or Geoscape to manage resources and progression:
GiveResource [ResourceID] [Amount]: Adds items like Supplies, Intel, or AlienAlloy. You must already possess at least one of the item for this to work.
LevelUpSelectedSoldier [Amount]: Increases the rank of the soldier currently selected in the Armory.
GiveFacility [FacilityID]: Instantly builds a facility in the currently selected Avenger slot.
RemoveFortressDoom [Amount]: Reduces the Avatar Project progress bar by the specified number of pips. Tactical Combat Commands
Use these during a mission to bypass difficult situations or resolve glitches:
XCOM 2:All console commands and IDs [WOTC] - Steam Community
Master Guide to XCOM 2: Long War of the Chosen (LWOTC) Console Commands
Long War of the Chosen (LWOTC) is widely considered the definitive way to play XCOM 2, but its complexity and length can sometimes lead to technical hiccups or "XCOM moments" that feel more unfair than challenging. Whether you need to fix a bugged mission, test a new build, or simply balance the scales against the ADVENT coalition, console commands are your primary tool for customization. How to Enable the Console in LWOTC
Before you can input any commands, you must enable the developer console. The method varies slightly depending on whether you use the standard launcher or the community-favored Alternative Mod Launcher (AML).
Steam/Standard Launcher: Right-click XCOM 2 in your library > Properties > General. In the Launch Options box, type -allowconsole.
Alternative Mod Launcher (AML): Go to Settings > Edit Columns > check "Arguments." Then, in the arguments field for XCOM 2, add -allowconsole.
In-Game: Press the Tilde (~) key or the backslash () key to open the command overlay. Essential Tactical Commands (During Missions) | Command | Effect | |---------|--------| | GiveResource
Tactical commands are used while you are on the ground controlling your squad. These are perfect for fixing line-of-sight bugs or "unstucking" an AI that refuses to end its turn.
TTC (Teleport To Cursor): Moves the currently selected unit to wherever your mouse is pointing. This is the gold standard for fixing units stuck in terrain. TTA (Teleport To Armor): Teleports all units to the cursor.
RestartLevel: Restarts the current mission from the beginning.
PowerUp: Grants the selected unit infinite health and ammo, and removes cooldowns. Type it again to disable.
WhoseTurnIsItAnyway: Useful if the game hangs during the alien turn; it forces the turn back to the player.
KillAllAliens: Immediately kills every enemy currently active on the map. Use this sparingly, as it can sometimes break mission-completion triggers if objectives haven't been met. Strategy Layer Commands (On the Avenger)
Managing the resistance in LWOTC is a marathon. If you find your campaign spiraling due to a lack of resources or a mismanaged roster, these commands can help you pivot.
GiveResource [ResourceID] [Amount]: The primary way to boost your supplies. Common IDs include: Supplies AlienAlloy EleriumDust Intel
AddItem [ItemName] [Quantity]: Adds specific items to your inventory. Note that for LWOTC, some item names differ from base WOTC. For example, AddItem CorpseAdventTrooper 10.
LevelUpSoldier [Amount]: Select a soldier in the armory and use this to increase their rank. In LWOTC, this is helpful for testing high-level perk synergies without a 40-hour time investment.
HealAllSoldiers: Instantly removes the "Tired" or "Wounded" status from your entire roster. LWOTC-Specific Debugging
LWOTC introduces complex mechanics like Infiltration and Liberation. While standard XCOM 2 commands work, you should use them with caution regarding these new systems.
ForceInfiltrate: Can be used to instantly complete the infiltration percentage on a chosen mission.
GiveFacility [FacilityName]: Instantly builds a facility on the Avenger. Use names like ResistanceRing or Laboratory. A Note on Fairness and "XCOM Style" Steam version:
While the console is a powerful tool, the developers of LWOTC designed the mod to be a grueling test of strategy. Using GiveResource might save a failing run, but many players find that the most satisfying victories come from overcoming those deficits naturally.
Pro-Tip: Always save your game before using a console command. Some commands can cause the game to crash or corrupt a save state if used during sensitive animation sequences.
Long War of the Chosen (LWotC) is a massive mod for that significantly increases complexity, making console commands essential for both debugging mod conflicts and managing its steep difficulty. Enabling the Console
To use commands, you must first enable the developer console: : Right-click in your library right arrow Properties right arrow right arrow Launch Options -allowconsole Alternative (AML) : If using the XCOM 2 Alternative Mod Launcher , check the "Allow Console" box in the settings. : Press the key to open the command line. Essential Tactical Commands (During Combat)
These commands are used while on a mission to recover from bugs or get an edge. Steam Community Take To Cursor
: Teleports the currently selected unit to your mouse cursor. Take All To Cursor : Teleports your entire squad to the cursor. Grants invincibility and unlimited ammo. ToggleUnlimitedActions Allows a unit to move and fire indefinitely in one turn. KillAllAIs Instantly kills every enemy on the map. Removes the "Fog of War" to see the entire map. RestartLevel Restarts the current mission from the beginning. Strategy Layer Commands (The Avenger)
Use these while on the Avenger to manage your campaign's resources and roster. 1. Resource Generation with the desired amount (e.g., GiveResource Supplies 500 GiveResource Supplies # GiveResource Intel # GiveResource EleriumDust # (Elerium Crystals) GiveResource EleriumCore # GiveResource AlienAlloy # GiveResource AbilityPoint # (WotC-specific) 2. Roster Management
XCOM 2:All console commands and IDs [WOTC] - Steam Community
Here’s a practical guide to using console commands in XCOM 2: Long War of the Chosen (LWotC).
LWotC retains most of the vanilla War of the Chosen console commands but adds new variables and class names. Use these carefully—they can break your campaign or cause bugs if misused.
Very useful for modders or troubleshooting LWotC.
| Command | Effect |
| :--- | :--- |
| DumpLog | Writes current console log to Documents\My Games\XCOM2 War of the Chosen\XComGame\Logs. |
| ListMissions | Shows all active, pending, and expired missions on the geoscape. |
| DumpAbilityTree | Outputs the selected soldier’s full ability tree to the log. |
| LW_GetInfiltration | Displays the selected squad’s current infiltration percentage. |
| LW_SetInfiltration 100 | Sets infiltration to 100% instantly. |
| LW_CompleteCurrentActivity | Completes the current Resistance Ring or Covert Action instantly. |
| Command | Effect |
|---------|--------|
| KillAllAIs | Kills all enemies |
| KillAIPlayer | Kills only enemy units |
| EndBattle | Ends current tactical mission (win) |
| RestartLevel | Restarts the tactical mission |
| TeleportToCursor | Moves selected soldier to mouse cursor |
| GiveActionPoints [Number] | Adds action points to selected soldier |
Console commands in LWOTC are case-sensitive and follow specific patterns.
TargetedCommandName.RestartLevel or RestartMission commands. LWOTC’s dynamic infiltration and spawning systems do not reset cleanly, often resulting in duplicate soldiers or broken objectives. Use RestartMission from the in-game pause menu instead.