Xcom 2 Konsoll Koder

From u/gigabytemon

Activating the console

Go to XCOM2’s launch options and add in the line “-allowconsole -log -autodebug” without quotation marks. Once you’re done, you can open the console from in-game using the tilde (~) key.

Console Commands

Give Resource

GiveResource [ResourceName] [Quantity]
(eg: GiveResource Supplies 500)
(This requires you to have at least one of that resource before you can add any more.)

AddItem [ResourceName] [Quantity]
(This adds the item/resource, without needing at least one. Thanks /u/Altoran!

Resource Names:
Supplies
EleriumDust
AlienAlloy
Intel
EleriumCore

Item Names:
Firebomb
FragGrenade
AlienGrenade
FlashbangGrenade
SmokeGrenade
GasGrenade
AcidGrenade

HeavyPlatedArmor (EXO Suit)
LightPlatedArmor (Spider Suit)
HeavyPoweredArmor (WAR Suit)
LightPoweredArmor (Wraith Suit)

ShredderGun
Flamethrower
BlasterLauncher
PlasmaBlaster
FlamethrowerMk2 (Hellfire Projector)
ShredstormCannon
IncendiaryRounds (Dragon rounds)
TalonRounds
TracerRounds
VenomRounds
ApRounds
BluescreenRounds
NanoFibreVest
PlatedVest
StasisVest
HazmatVest
Hellweave

(Thanks /u/Hikatokage for the awesome list!)

Corpse[UnitName]
(eg: AddItem CorpseAdventShieldbearer 10 - will give me 10 Advent Shieldbearer corpses)
    UnitName can be: Sectoid, AdventTrooper, AdventOfficer, 
    AdventStunLancer, AdventShieldbearer, Faceless, Viper, Berserker, Archon,
    Muton, Cryssalid, Sectopod, Andromedon, Gatekeeper, Avatar

[Addon]Upgrade_[Quality]
(eg: AddItem AimUpgrade_sup 10 - will give me 10 Superior Scopes)
    Addon can be: Aim, Clipsize, Crit, FreeKill, FreeFire, MissDamage, Reload
    Quality can be: bsc (Basic), adv (Advanced), sup (Superior)

[Quality]PCS[pcsName]
(eg: AddItem EpicPCSConditioning 5 - will give me 5 Advanced Conditioning (+4 HP) PCS)
    pcsName can be: Speed, Conditioning, Focus, Perception, Agility
    Quality can be: Common (Normal), Rare (Advanced), Epic (Superior)
    (Thanks again, /u/Hikatokage!)

Give Scientists/Engineers

You can only get one scientist or engineer at a time since XCOM 2 
treats them all as actual units instead of counters like with XCOM:EU/EW. 
The scientist/engineer level determines how effective they are at their job. 
Higher level = higher speed boost in construction/research. I don't know of 
any hard caps as to what the level maximum may be.

GiveScientist [Level]
GiveEngineer [Level]

Give Technology

GiveTech [TechName]
    TechName can be:
    --WEAPONS TECH--
    ModularWeapons 
    MagnetizedWeapons 
    GaussWeapons 
    PlasmaRifle 
    HeavyPlasma 
    PlasmaSniper 
    AlloyCannon 
    Tech_Elerium 
    Psionics 
    HybridMaterials 
    PlatedArmor 
    EXOSuit 
    SpiderSuit 
    PoweredArmor 
    WraithSuit 
    WARSuit 

    --AUTOPSIES--
    AlienBiotech 
    AutopsySectoid 
    AutopsyViper 
    AutopsyMuton 
    AutopsyBerserker 
    AutopsyArchon 
    AutopsyGatekeeper 
    AutopsyAndromedon 
    AutopsyFaceless 
    AutopsyChryssalid 
    AutopsySectopod 
    AutopsyAdventTrooper 
    AutopsyAdventStunLancer
    AutopsyAdventShieldbearer 
    AutopsyAdventTurret 
    AutopsyAdventMEC 

    --PROVING GROUND PROJECTS--
    Skulljack 
    ExperimentalAmmo 
    ExperimentalGrenade 
    ExperimentalArmor 
    Bluescreen 
    BattlefieldMedicine 
    PlasmaGrenade 
    AdvancedGrenades 
    Skullmining 
    HeavyWeapons 
    AdvancedHeavyWeapons 

 

General Commands

---[IN-MISSION COMMANDS]---
SkipAI (skips the AI turn, useful for getting past AI turns that never seem to end. Thanks /u/X-Heiko!)
PowerUp (godmode, no damage, no reload required)
TakeNoDamage (only no damage)
ToggleUnlimitedActions (infinite AP)
    WARNING: The enemy AI can use this too if you don't disable it before ending your turn)
ForceCritHits (forces critical hits)
    WARNING: The enemy AI can use this too if you don't disable it before ending your turn)
GiveActionPoints [Number] - (Gives [Number] action points to the selected unit)
    (Remember that sniper rifles take 2 action points to fire)
ToggleUnlimitedAmmo (no reload)
Togglefow (reveals the map, but enemies remain hidden until spotted by your soldiers)
ToggleSquadConcealment (Conceals your squad. Note the enemy will still remain alerted)

TTC ("Teleport to cursor", teleports the selected unit to your mouse pointer)
TATC ("Teleport all to cursor", teleports all units to your mouse pointer. 


---[IN-AVENGER COMMANDS]---
LevelUpBarracks [Number] - Level up all soldiers in the barracks by [Number] ranks
MakeSoldierAClass [ClassName] - Turns a soldier into a specified class
HealAllSoldiers - Heals everyone in the barracks instantly (thanks /u/legoman5746!)
(Eg: MakeSoldierAClass "Jane Kelly" Ranger -- this will turn Jane Kelly into a Ranger.
The quotation marks are required, and make sure to omit the nickname.)
    NOTE: THIS WILL DEMOTE/PROMOTE THAT SOLDIER TO SQUADDIE
    ClassName can be: 
    Rookie
    Ranger
    Sharpshooter
    Grenadier
    Specialist
    PsiOperative

RemoveFortressDoom [Number] - Removes [Number] levels of Avatar Project progress
    Note: You can only remove Avatar progress that isn't from the extra Avatar facilities. 
    So if you have two facilities that each have 3 bars of progress, your Avatar progress will
    not go below 6 until you destroy them.

GiveFacility [FacilityName] [MapIndex] (thanks /u/Slane666!)
    (NOTE: Spawning facilities DOES NOT CLEAR OUT ALIEN DEBRIS! Thanks /u/Glayn!)
    Not sure what the facility names can be, but here are some reasonable guesses:
    Workshop
    Laboratory
    PowerRelay
    ShadowChamber
    ProvingGround
    ResistanceComms
    AdvancedWarfareCenter
    UFODefense (Defense Matrix)
    PsiChamber (Psi Labs)
    OfficerTrainingschool (GTS)

    MapIndex numbers start from 3 on the top left, so it goes like
    3 | 4 | 5
    6 | 7 | 8
    9 | 10| 11
    12| 13| 14