Europa Universalis V Console Commands

Discover all Europa Universalis 5 console commands and cheats! This guide will include every EU5 cheat code from money cheats and diplomacy tricks to powerful military commands. Although the game hasn’t been released yet, these EU5 console commands and cheat examples are based on EU4 and expected EU5 features.

How to Open the Console in Europa Universalis V

In Europa Universalis V, players can access a hidden debug mode that enables the use of console commands—powerful tools for testing, debugging, or simply experimenting with the game. By default, debug mode is disabled, but once enabled you can open the Console Window in non-Ironman games using specific key combinations.

Depending on your keyboard layout, try pressing Shift + 2, Alt + 2 + 1, Shift + 3, §, ~, ^, °, ², or `. For most QWERTY keyboards, the default key is the tilde (~). If none of these work, you can also try Shift + Alt + C to bring up the console.

After opening the console

Command Effect Example
oos_prompt [<local/dummy>]

Shows the oos_prompt window

Replace sample values with your own.
oos_prompt local/dummy
oos_dump

Dumps OOS info

No parameters.
oos_dump
print_randomlog

Prints the current randomlog

No parameters.
print_randomlog
force_oos

Force a desync, modifies the random count

No parameters.
force_oos
force_resync

Host will force a resync in an MP game

No parameters.
force_resync
event [eventid] [target]

Trigger an event

Replace sample values with your own.
event flavor_tur.1 TUR
Manpower <amount>

adds currency (Manpower)

Use positive to add, negative to subtract (when supported).
Manpower 100
Sailors <amount>

adds currency (Sailors)

Use positive to add, negative to subtract (when supported).
Sailors 100
cash <amount>

adds currency (cash)

Use positive to add, negative to subtract (when supported).
cash 100
Stability <amount>

adds currency (Stability)

Use positive to add, negative to subtract (when supported).
Stability 100
WarExhaustion <amount>

adds currency (WarExhaustion)

Use positive to add, negative to subtract (when supported).
WarExhaustion 100
Inflation <amount>

adds currency (Inflation)

Use positive to add, negative to subtract (when supported).
Inflation 100
Prestige <amount>

adds currency (Prestige)

Use positive to add, negative to subtract (when supported).
Prestige 100
ArmyTradition <amount>

adds currency (ArmyTradition)

Use positive to add, negative to subtract (when supported).
ArmyTradition 100
NavyTradition <amount>

adds currency (NavyTradition)

Use positive to add, negative to subtract (when supported).
NavyTradition 100
GovernmentPower <amount>

adds currency (GovernmentPower)

Use positive to add, negative to subtract (when supported).
GovernmentPower 100
Karma <amount>

adds currency (Karma)

Use positive to add, negative to subtract (when supported).
Karma 100
ReligiousInfluence <amount>

adds currency (ReligiousInfluence)

Use positive to add, negative to subtract (when supported).
ReligiousInfluence 100
Purity <amount>

adds currency (Purity)

Use positive to add, negative to subtract (when supported).
Purity 100
Honor <amount>

adds currency (Honor)

Use positive to add, negative to subtract (when supported).
Honor 100
Doom <amount>

adds currency (Doom)

Use positive to add, negative to subtract (when supported).
Doom 100
RitePower <amount>

adds currency (RitePower)

Use positive to add, negative to subtract (when supported).
RitePower 100
Yanantin <amount>

adds currency (Yanantin)

Use positive to add, negative to subtract (when supported).
Yanantin 100
Righteousness <amount>

adds currency (Righteousness)

Use positive to add, negative to subtract (when supported).
Righteousness 100
Harmony <amount>

adds currency (Harmony)

Use positive to add, negative to subtract (when supported).
Harmony 100
SelfControl <amount>

adds currency (SelfControl)

Use positive to add, negative to subtract (when supported).
SelfControl 100
YesMan

toggles the cheat mode YesMan

Run again to disable.
YesMan
NoMan

toggles the cheat mode NoMan

Run again to disable.
NoMan
WatchWindows

toggles the cheat mode WatchWindows

Run again to disable.
WatchWindows
LoadingScreen

toggles the cheat mode LoadingScreen

Run again to disable.
LoadingScreen
InstantMove

toggles the cheat mode InstantMove

Run again to disable.
InstantMove
InstantSiege

toggles the cheat mode InstantSiege

Run again to disable.
InstantSiege
NoRandom

toggles the cheat mode NoRandom

Run again to disable.
NoRandom
FastDiplo

toggles the cheat mode FastDiplo

Run again to disable.
FastDiplo
DelayDiploReply

toggles the cheat mode DelayDiploReply

Run again to disable.
DelayDiploReply
InstantWar

toggles the cheat mode InstantWar

Run again to disable.
InstantWar
InstantConstruction

toggles the cheat mode InstantConstruction

Run again to disable.
InstantConstruction
InstantConquistadors

toggles the cheat mode InstantConquistadors

Run again to disable.
InstantConquistadors
InstantCasusBelli

toggles the cheat mode InstantCasusBelli

Run again to disable.
InstantCasusBelli
InstantExploration

toggles the cheat mode InstantExploration

Run again to disable.
InstantExploration
InstantMission

toggles the cheat mode InstantMission

Run again to disable.
InstantMission
FastRebels

toggles the cheat mode FastRebels

Run again to disable.
FastRebels
ByPassRequirements

toggles the cheat mode ByPassRequirements

Run again to disable.
ByPassRequirements
RemoveFogOfWar

toggles the cheat mode RemoveFogOfWar

Run again to disable.
RemoveFogOfWar
no_peace_deals

toggles the cheat mode no_peace_deals

Run again to disable.
no_peace_deals
recalc_cached_data

Recalculates the cached data in the gamestate which is not persisted in the savegame

No parameters.
recalc_cached_data
update_pop_cache

Recalculates the cached data related to pops in the player country

No parameters.
update_pop_cache
form_union [<junior partner>]

Form a union with another country

Replace sample values with your own.
form_union junior partner
change_government [<Government Type>]

Change government of your country

Replace sample values with your own.
change_government Government Type
parliament_issue [<parliament_issue>]

Change parliament issue in your country

Replace sample values with your own.
parliament_issue lower_taxes
end_parliament_issue

Ends a parliament issue in your country with success

No parameters.
end_parliament_issue
ignore_paused_time [<Bool Type>]

Make the time smoother to ignore that the game is paused so animation can run even when the game is paused.

Replace sample values with your own.
ignore_paused_time Bool Type
discover [<location key> / all]

Discover one or all locations

Replace sample values with your own.
discover 1234 key all
discover_area [<area key> / all]

Discover one or all areas

Replace sample values with your own.
discover_area rumelia_area key all
override_scale_time [<Bool Type> <Float Type>]

Override the scale for gfx time based on game speed

Replace sample values with your own.
override_scale_time Bool Type Float Type
debug_animation_time

Ignores pause and overrides scale time setting it to 1.0.

No parameters.
debug_animation_time
change_devastation [<location> <amount>]

Changes devastation, quantity is expected to be between 0.0 a 1.0f

Replace sample values with your own.
change_devastation 1234 10
tick_population [<location>]

Montly tick for population in a location

Replace sample values with your own.
tick_population 1234
weather [<location> <front/cyclone/tornado>]

Creates a new weather in target location

Replace sample values with your own.
weather 1234 front/cyclone/tornado
change_control [<location> <amount>]

Changes Control, quantity is expected to be between 0.0 a 1.0f

Replace sample values with your own.
change_control 1234 10
change_winter [<location> <amount>]

Changes winter level, level is expected to be between 0 to 3

Replace sample values with your own.
change_winter 1234 10
reload_terrain2_materials

Reload terrain2 textures

No parameters.
reload_terrain2_materials
print_selected_illustration_info [eventidverbose]

Prints debug info about selecting a illustration

Replace sample values with your own.
print_selected_illustration_info eventidverbose
print_selected_images_info [eventid] [verbose]

Prints debug info about image selection in the illustration of an event

Replace sample values with your own.
print_selected_images_info flavor_tur.1 verbose
trigger_flag_animation

Runs the console command.

No parameters.
trigger_flag_animation
MapObjects.CheckLocators [[optional] numbers of pixels to search for other location]

Checks what locators are inside the province that should contain them

Replace sample values with your own.
MapObjects.CheckLocators optional numbers of pixels to search for other 1234
PrintLocationBiome [[optional] location id to print biome for]

Prints the biome of the hovered (or entered as argument) location

Replace sample values with your own.
PrintLocationBiome optional 1234 1 to print biome for
famine

Completely wipes food stockpiles in markets and provinces

No parameters.
famine
build_everything [<location> <id> / <country> <tag> / <region> <id> / all]

Build everything possible in a location / country or region

Replace sample values with your own.
build_everything 1234 1 / TUR TUR / balkans_region 1 all
list_dhe_for

Lists what DHEs were fired for a tag

No parameters.
list_dhe_for
Cities.PrintUsedSchematics

Prints a list of all of the scheatics used in city mesh lists

No parameters.
Cities.PrintUsedSchematics
MapObjects.DebugDefaultLocatorTransforms

Generates debug lines for game object locator default placement

No parameters.
MapObjects.DebugDefaultLocatorTransforms
reload_pin_collections

Reload Pin Collections

No parameters.
reload_pin_collections
spawn_in_every_location

Spawn an schematic of the desired type in every location. It can be limmited in fov, fow or player

No parameters.
spawn_in_every_location
event_probabilities [<on_action key> [lean]]

dump in error log of breakdown of events (triggers, probabilities...) for the on_action in input.

Replace sample values with your own.
event_probabilities on_action key lean
use 'lean' option for a simpler breakdown. limited to the following on_action: monthly_country_pulse yearly_country_pulse biyearly_country_pulse four_yearly_country_pulse

Runs the console command.

No parameters.
use 'lean' option for a simpler breakdown. limited to the following on_action: monthly_country_pulse yearly_country_pulse biyearly_country_pulse four_yearly_country_pulse
Map.SavePNGScaled [<map mode>] [<file name>] [<yes/no> Should render flat (optional)]

Save a png of the map with a specific color mode with a selected size

Replace sample values with your own.
Map.SavePNGScaled map mode file custom_culture yes Should render flat (optional)
inspect_player_country

Opens the inspector with the player country

No parameters.
inspect_player_country
copy_mouse_pos

Copies the mouse position into the clipboard

No parameters.
copy_mouse_pos
unit_viewer

Unit Viewer Dockable

No parameters.
unit_viewer
unit_age [<age>]

Forces a Debug age for all units on screen

Replace sample values with your own.
unit_age 30
start_location_gfx_test [<Frames per Location>]

Starts gfx location tests

Replace sample values with your own.
start_location_gfx_test Frames per 1234
stop_location_gfx_test

Ends gfx location tests

No parameters.
stop_location_gfx_test
ecs_scene_viewer_dockable

Ecs Scene Viewer Dockable

No parameters.
ecs_scene_viewer_dockable
portrait_editor

Open the portrait editor

No parameters.
portrait_editor
Portrait.ClearCache

Clears the portrait cache. Forces all portraits to refresh

No parameters.
Portrait.ClearCache
mesh_importer_browser

Mesh Importer Browser

No parameters.
mesh_importer_browser
mesh_importer

Mesh Importer

No parameters.
mesh_importer
ecs_dependency_editor

ECS Dependency Graph Editor

No parameters.
ecs_dependency_editor
init_flow_editor

Init Flow Dependency Editor

No parameters.
init_flow_editor
update_flow_editor

Update Flow Dependency Editor

No parameters.
update_flow_editor
Adjacencies.Rebuild

Rebuild all adjacencies

No parameters.
Adjacencies.Rebuild
spawnline [<line name>] [<start position 'x,y,z'> (no spaces)] [<end position x,y,z> (no spaces)]

Spawns specified line between 2 positions

Replace sample values with your own.
spawnline line custom_culture start 0.5 'x,y,z' (no spaces) end 0.5 0,0,0 (no spaces)
clearlines

Clear lines

No parameters.
clearlines
spawn_schematic [schematic name]

Runs entity schematic with the specified parameters

Replace sample values with your own.
spawn_schematic schematic custom_culture
clear_spawned_schematics

Removes all debug entities (spawned via spawn_schematic)

No parameters.
clear_spawned_schematics
Ecs.RunRenderingBenchmark [Schematic name] [Number of instances] [Duration (s)]

Executes the ecs rendering benchmark

Replace sample values with your own.
Ecs.RunRenderingBenchmark Schematic custom_culture Number of instances Duration (s)
spawnentity [<entity name>] [<state> (optional)]

Spawns specified entity at cursor position

Replace sample values with your own.
spawnentity entity custom_culture state (optional)
spawnentity_at [<entity name>] [x] [y] [<state> (optional)]

Spawns specified entity at xy-position

Replace sample values with your own.
spawnentity_at entity custom_culture x y state (optional)
list_entity_nodes [{entity name}]

Shows a list with the names of the nodes of the specified entity

Replace sample values with your own.
list_entity_nodes {entity name}
list_entity_submeshes [{entity name}]

Shows a list with the names of the submeshes of the specified entity

Replace sample values with your own.
list_entity_submeshes {entity name}
clearspawnedentities

Clears entities spawned with spawnentity command

No parameters.
clearspawnedentities
MapObjects.GenerateGameLocators [<type>] [<filename> (optional)]

Generates locators for the game's map objects

Replace sample values with your own.
MapObjects.GenerateGameLocators type filename (optional)
MapObjects.Debug

Prints out map object debug information

No parameters.
MapObjects.Debug
Camera.Debug

Prints out camera debug information

No parameters.
Camera.Debug
Camera.Save

Save camera position

No parameters.
Camera.Save
Camera.Load

Load camera position

No parameters.
Camera.Load
Camera.SetTransform [X] [Y] [Z] [Zoom] [Pitch] [Yaw]

Sets camera transform

Replace sample values with your own.
Camera.SetTransform 0 0 0 1.0 30 0
Map.SavePNG [<map mode>] [<file name>] [<yes/no> Should render flat (optional)]

Save a png of the map with a specific color mode

Replace sample values with your own.
Map.SavePNG map mode file custom_culture yes Should render flat (optional)
SplineNetwork.AppendAssets

Runs the console command.

No parameters.
SplineNetwork.AppendAssets
SplineNetwork.ClearAssets

Runs the console command.

No parameters.
SplineNetwork.ClearAssets
terrain2.reload [data source ('empty' or 'dataset')]

Reloads the terrain or terrain related assets

Replace sample values with your own.
terrain2.reload data source ('empty' or 'dataset')
save_game_analyzer

Open the save game analyzer

No parameters.
save_game_analyzer
entity_designer

Opens the Entity Designer Previewer

No parameters.
entity_designer
entity_designer_node_editor [Name of the schematic to open]

Opens the Entity Designer Node Editor

Replace sample values with your own.
entity_designer_node_editor custom_culture of the schematic to open
update_graph_nodeeditor

Update Graph Editor

No parameters.
update_graph_nodeeditor
animation_editor

Opens the Animation Editor

No parameters.
animation_editor
scene_editor

Opens the Scene Editor

No parameters.
scene_editor
entity_editor

Entity Editor Dockable

No parameters.
entity_editor
gui_animation_curve_editor

GUI Animation Curve Editor Dockable

No parameters.
gui_animation_curve_editor
gui_animation_editor

GUI Animation Editor Dockable

No parameters.
gui_animation_editor
tweak

Spawns a tweaker GUI

No parameters.
tweak
dump_tweakables

Dumps all available tweakables to the specified file in the user folder.

No parameters.
dump_tweakables
gui_data_profiler

Gui Data Profiler

No parameters.
gui_data_profiler
log_viewer

Log Viewer Dockable

No parameters.
log_viewer
log_status

Log Status Dockable

No parameters.
log_status
Script.Profiling.Gui

Show script profiler gui

No parameters.
Script.Profiling.Gui
script_docs

Prints script documentation

No parameters.
script_docs
Script.Profiling.Start

Starts capturing script profiling data

No parameters.
Script.Profiling.Start
Script.Profiling.Stop

Stop capturing script profiling data

No parameters.
Script.Profiling.Stop
Script.Profiling.Restart

Stop and then restart capturing script profiling data

No parameters.
Script.Profiling.Restart
Session.GetEnabledDLCs

Gets the enabled DLCs for this session

No parameters.
Session.GetEnabledDLCs
shader_debug

Runs the console command.

No parameters.
shader_debug
savegames.sync_cloud_files

Synchronize cloud saves (only needed for POPS/PDX SDK cloud saves

No parameters.
savegames.sync_cloud_files
dump_ref_lookup_memory_report

Runs the console command.

No parameters.
dump_ref_lookup_memory_report
particleeditor

Particle Editor

No parameters.
particleeditor
shader_editor

Shader Editor Dockable

No parameters.
shader_editor
compound_nodeeditor

Compound Node Editor

No parameters.
compound_nodeeditor
data_types_explorer

Opens the data types explorer dockable

No parameters.
data_types_explorer
drawcmdsviewer

Draw Cmds Viewer

No parameters.
drawcmdsviewer
tools.skins

Skin Editor

No parameters.
tools.skins
screenshot

Take screenshot

No parameters.
screenshot
settings

Spawns a settings GUI with an optional argument for an initially selected category

No parameters.
settings
textureviewer

Texture Viewer

No parameters.
textureviewer
texturelist

Texture List

No parameters.
texturelist
sdk.testloyaltyrefresh

Request new inventory status

No parameters.
sdk.testloyaltyrefresh
sdk.inventorylist

List all items in inventory

No parameters.
sdk.inventorylist
sdk.testloyaltyinventory

Send campaign event to gain a test item in Marius

No parameters.
sdk.testloyaltyinventory
sdk.istelemetryenabled

Is telemetry enabled?

No parameters.
sdk.istelemetryenabled
RandomLog

Toggles random logging

Run again to disable.
RandomLog
measure_frame_time ["start" or "stop" measuring]

Measures avg/min/max frame time and prints the result to debug.log once stopped

Replace sample values with your own.
measure_frame_time "start" or "stop" measuring
io_stats

Toggles IO Stats

Run again to disable.
io_stats
io_stats.Reset

Resets IO Stats

No parameters.
io_stats.Reset
net_stats

Toggles Net Stats

Run again to disable.
net_stats
net_stats.Reset

Resets Net Stats

No parameters.
net_stats.Reset
memory_stats

Toggles Memory Stats

Run again to disable.
memory_stats
memory_stats.Reset

Resets Memory Stats

No parameters.
memory_stats.Reset
3dstats

Toggles 3D Stats

Run again to disable.
3dstats
3dstats.EnableGfxZoneStats

Toggles 3D Gfx Zone Stats

Run again to disable.
3dstats.EnableGfxZoneStats
3dstats.EnableTextureStats

Toggles Texture Stats

Run again to disable.
3dstats.EnableTextureStats
3dstats.EnableDescriptorStats

Toggles Descriptor Stats

Run again to disable.
3dstats.EnableDescriptorStats
MipLevelDebugTool

Toggles MipLevelDebugTool

Run again to disable.
MipLevelDebugTool
Graphics.CapFramerate

Runs the console command.

No parameters.
Graphics.CapFramerate
GUI.AnimationTimeline.LogStats

Dump stats of the GUI Animation Timeline system to the debug log.

No parameters.
GUI.AnimationTimeline.LogStats
audio.list_events

List audio events

No parameters.
audio.list_events
audio.play_event [Audio event]

Play audio event

Replace sample values with your own.
audio.play_event Audio event
audio.cpu_info

Shows current cpu usage

No parameters.
audio.cpu_info
audio.set_rtpc [RTPC name] [RTPC value]

Set Wwise RTPC

Replace sample values with your own.
audio.set_rtpc RTPC custom_culture RTPC 50
audio.set_state [State name] [State value]

Set Wwise State

Replace sample values with your own.
audio.set_state State custom_culture State 50
audio.set_switch [Switch name] [Switch value]

Set Wwise Switch

Replace sample values with your own.
audio.set_switch Switch custom_culture Switch 50
SDL.EventLogging

Runs the console command.

No parameters.
SDL.EventLogging
Localization.ToggleSkipDataSystemInLocOutput

Don't run the data system at all in loc

No parameters.
Localization.ToggleSkipDataSystemInLocOutput
Localization.ToggleIncludeKeyInLocOutput

Includes the loc key in localization output

No parameters.
Localization.ToggleIncludeKeyInLocOutput
Localization.ToggleOnlyKeyInLocOutput

Shows only the loc key in localization output

No parameters.
Localization.ToggleOnlyKeyInLocOutput
rendertype

Reports what render backend is used

No parameters.
rendertype
Debug.TextureMode [Name of debug mode]

Enables a texture mode for debugging

Replace sample values with your own.
Debug.TextureMode custom_culture of debug mode
vsync

Toggle main swapchains vsync

Run again to disable.
vsync
swapchain.buffers

Query/Set swapchain buffers

No parameters.
swapchain.buffers
gfx.reloadtexture

Reload textures

No parameters.
gfx.reloadtexture
FullSettings [Optional file where the full settings will be saved]

Generates a settings with all the options, even unmodified ones

Replace sample values with your own.
FullSettings Optional file where the full settings will be saved
Threading.TaskThreadCount [The number of task threads]

Set or get the number of task threads

Replace sample values with your own.
Threading.TaskThreadCount The number of task threads
log [Various, see below]

log list: Print a list of all log categories and sinks

Replace sample values with your own.
log Various, see below
Log.ClearErrorLog

Clears out error.log and resets the error count

No parameters.
Log.ClearErrorLog
Log.ClearAll

Clears all logs

No parameters.
Log.ClearAll
log_ticktask_performance

Start outputing ticktask performance data to profiling.log

No parameters.
log_ticktask_performance
ai_currency_misses

Prints the missed ai currency modifiers to log file

No parameters.
ai_currency_misses
TickTask.Graph

Open a graph view of the tick tasks

No parameters.
TickTask.Graph
TickTask.List

Open a graph view of the tick tasks

No parameters.
TickTask.List
write_execution_flow_graphs

Execution Flow Graphs

No parameters.
write_execution_flow_graphs
CrashReporter.SimulateCrash

Simulates a crash (resulting in the game exiting).

No parameters.
CrashReporter.SimulateCrash
CrashReporter.DeleteCrashData

Delete local crash dumps older than X days.

No parameters.
CrashReporter.DeleteCrashData
minidump [file path]

Creates a minidump

Replace sample values with your own.
minidump file path
gfx.skin

select active gfx skin

No parameters.
gfx.skin
Dockables.Create [Dockable name]

Create dockable

Replace sample values with your own.
Dockables.Create Dockable custom_culture
Dockables.CreateUserLayout [Dockable layout name]

Create a new user layout copy of current layout, with new name.

Replace sample values with your own.
Dockables.CreateUserLayout Dockable layout custom_culture
Dockables.SaveUserLayout [Dockable layout name]

Save current layout to disk as user layout, optionally under a new name.

Replace sample values with your own.
Dockables.SaveUserLayout Dockable layout custom_culture
Dockables.DeleteUserLayout [Dockable layout name]

Delete layout as user layout

Replace sample values with your own.
Dockables.DeleteUserLayout Dockable layout custom_culture
Dockables.ShowLayout [Dockable layout name]

Show an existing (user) layout, hide current layout

Replace sample values with your own.
Dockables.ShowLayout Dockable layout custom_culture
Dockables.HideLayout

Hide any shown dockable layout

No parameters.
Dockables.HideLayout
Dockables.ShowManager

Show dockable layout manager

No parameters.
Dockables.ShowManager
map_editor

Toggle map editor

Run again to disable.
map_editor
AudioPersistentObjectManager.PostAudioEvent

Runs an audio even on a "persistent" audio object

No parameters.
AudioPersistentObjectManager.PostAudioEvent
Debug.Achievements.ToggleDebug [<value>]

Puts the achievements system in debug mode

Replace sample values with your own.
Debug.Achievements.ToggleDebug 50
Debug.Achievements.ListAll [<value>]

Puts the achievements system in debug mode

Replace sample values with your own.
Debug.Achievements.ListAll 50
Debug.Achievements.ResetAll

Locks all achievements again

No parameters.
Debug.Achievements.ResetAll
switchlanguage [language name]

Reload localization files and switch language

Replace sample values with your own.
switchlanguage language custom_culture
reload [file name]

Reloads assets

Replace sample values with your own.
reload file custom_culture
time

What time is it?

No parameters.
time
crash

Cause the application to crash

No parameters.
crash
debug_mode

Toggles debug mode

Run again to disable.
debug_mode
release_mode

Toggles release mode

Run again to disable.
release_mode
GUI.CreateWidget [File name] [Widget name]

Create dummy widget. With 0 arguments the file name will be gui/test_gui.gui, and the widget name will be test_window

Replace sample values with your own.
GUI.CreateWidget File custom_culture Widget custom_culture
GUI.CreateDockable [File name] [Widget name] [Dockable id. If doesn't exist, it will be registered]

Create dummy dockable widget. With 0 arguments the file name will be gui/test_gui.gui, and the widget name will be test_window

Replace sample values with your own.
GUI.CreateDockable File custom_culture Widget custom_culture Dockable id. If doesn't exist, it will be registered
GUI.ClearWidgets

Clear dummy widget

No parameters.
GUI.ClearWidgets
pseudoLoc

Enable/Disable Pseudo Localization on Text Widgets

No parameters.
pseudoLoc
dump_data_types

dumps the registered data types

No parameters.
dump_data_types
explorer

Shows an object explorer window

No parameters.
explorer
explorer_reset

Resets the object explorer position and defaults

No parameters.
explorer_reset
Music.StopTrack

Stops the currently playing track

No parameters.
Music.StopTrack
Music.PauseFactor

Shows or sets the current pause_factor of the music system

No parameters.
Music.PauseFactor
Music.PlayTrack [<track name>]

Plays the specified track

Replace sample values with your own.
Music.PlayTrack track custom_culture
Music.Reset

Resets the music system

No parameters.
Music.Reset
Music.ListTracks

Lists all registered music tracks

No parameters.
Music.ListTracks
helplog

Print out all console commands to game.log file.

No parameters.
helplog
help [command name]

Print out all console commands or a specific command description.

Replace sample values with your own.
help command custom_culture
version

Prints the version to the console and the game log.

No parameters.
version
endgame

Forces the endgame screen to appear.

No parameters.
endgame
tick_day [number of days]

Ticks any number of days

Replace sample values with your own.
tick_day number of days
load [file name]

Load gamestate from savegame on disk

Replace sample values with your own.
load file custom_culture
test_save

Check save and load persistence

No parameters.
test_save
save [file name]

Saves current gamestate to disk

Replace sample values with your own.
save file custom_culture
save_replay [file name]

Saves current recorded replay to disk

Replace sample values with your own.
save_replay file custom_culture
observe

start observing the game

No parameters.
observe
watch

Enables watch windows

No parameters.
watch
error

Show errors in log

No parameters.
error
clear_pools

Clear UI pools

No parameters.
clear_pools
clear_map

Clear map (just for debugging)

No parameters.
clear_map
gamelog

Show game log

No parameters.
gamelog
action_timer

Dump times to process each action type

No parameters.
action_timer
t [<CountryNamePrefix>]

Change player to specific country name (only unique prefix needed)

Replace sample values with your own.
t CountryNamePrefix
tag [<CountryTag>]

Change player to specific tag

Replace sample values with your own.
tag FRA
ai [<CountryTag>]

Create/disable AI for tag

Replace sample values with your own.
ai FRA
braindeadai [<CountryTag>]

Enable/disable brain dead AI for tag

Replace sample values with your own.
braindeadai FRA
clear_ai_objectives [<CountryTag>]

Clears AI military and diplomatic objectives for tag

Replace sample values with your own.
clear_ai_objectives FRA
subject_stance [<CountryTag>, <Stance>]

Set subject stance for tag

Replace sample values with your own.
subject_stance FRA Stance
ai_recalc_strategy

Recalculate AI strategy for all countries

No parameters.
ai_recalc_strategy
ai_tactical_dryrun ['hourly'/'daily', <CountryTag>]

Run tactical AI without executing

Replace sample values with your own.
ai_tactical_dryrun 'hourly'/'daily', FRA
ai_tactical_print ['hourly'/'daily', <CountryTag>]

Run tactical AI and print results

Replace sample values with your own.
ai_tactical_print 'hourly'/'daily', FRA
ai_tactical_execute ['hourly'/'daily', <CountryTag>]

Run tactical AI for single country

Replace sample values with your own.
ai_tactical_execute 'hourly'/'daily', FRA
ai_daily_dryrun [<CountryTag>]

Run AI daily tick without executing

Replace sample values with your own.
ai_daily_dryrun FRA
ai_daily_print [<CountryTag>]

Run AI daily tick and print results

Replace sample values with your own.
ai_daily_print FRA
ai_daily_execute [<CountryTag>]

Run AI daily tick

Replace sample values with your own.
ai_daily_execute FRA
ai_monthly_dryrun [<CountryTag>]

Run AI monthly tick without executing

Replace sample values with your own.
ai_monthly_dryrun FRA
ai_monthly_execute [<CountryTag>]

Run AI monthly tick

Replace sample values with your own.
ai_monthly_execute FRA
ai_monthly_print [<CountryTag>]

Run AI monthly tick and print results

Replace sample values with your own.
ai_monthly_print FRA
ai_recalc_peace_deals

Recalculate AI peace deals

No parameters.
ai_recalc_peace_deals
enable_all_commands [<location_id>]

Be the QA you always dreamed to be

Replace sample values with your own.
enable_all_commands location_id
recalc_trade_path_cache

Recalculate all trade path caches

No parameters.
recalc_trade_path_cache
ai_currency [<currency>, <amount>, <location/rebel>]

Evaluate additional currency for AI

Replace sample values with your own.
ai_currency currency, 10 location/rebel
ai_monthly_currency [<currency>, <amount>, <location/rebel>]

Evaluate additional monthly currency for AI

Replace sample values with your own.
ai_monthly_currency currency, 10 location/rebel
mapmode [<MapMode>]

Give select unit to target country

Replace sample values with your own.
mapmode political
give_units [<CountryTag>]

Give select unit to target country

Replace sample values with your own.
give_units FRA
kill_all_units [<CountryTag>]

kill all units in target country

Replace sample values with your own.
kill_all_units FRA
kill_unit [<UnitID>]

kill the unit with this ID, kills selected unit when no id is supplied

Replace sample values with your own.
kill_unit 42
resupply_all_units [<CountryTag>]

max food for all units in target country

Replace sample values with your own.
resupply_all_units FRA
damage_all_units [<CountryTag>]

damage all units in target country

Replace sample values with your own.
damage_all_units FRA
world_levies

raise all levies in the world

No parameters.
world_levies
debug_estate_logic

runs some estate logic for debug

No parameters.
debug_estate_logic
start_annex [<country-tag>]

starts an annexation of the given country

Replace sample values with your own.
start_annex country-tag
lose_to [<country-tag>]

makes the player lose to the target country

Replace sample values with your own.
lose_to country-tag
cb [<country-tag>]

add a cb on target country

Replace sample values with your own.
cb country-tag
lend [<CountryTag> <amount> <interest> <months>]

lend money to target country

Replace sample values with your own.
lend FRA 10 interest months
spy [<CountryTag> <amount>]

adds spies to your network in a target country

Replace sample values with your own.
spy FRA 10
favor [<CountryTag> <amount>]

adds favors in a target country

Replace sample values with your own.
favor FRA 10
trust [<CountryTag> <amount>]

adds trust in a target country

Replace sample values with your own.
trust FRA 10
rebel_progress [<id> <progress>]

Adds rebel_progress to a rebel

Replace sample values with your own.
rebel_progress 1 progress
set_societal_value [<societal_value> <position>]

Sets the societal value

Replace sample values with your own.
set_societal_value societal_value 0.5
add_subunit [<subunit_def>]

Adds a subunit

Replace sample values with your own.
add_subunit infantry
estate_satisfaction [<estate_type> <progress>]

Adds satisfaction to an estate

Replace sample values with your own.
estate_satisfaction burghers progress
estate_gold [<estate_type> <gold>]

Adds gold to an estate

Replace sample values with your own.
estate_gold burghers 500
disease [<disease>]

Spawns a Disease

Replace sample values with your own.
disease disease
building [<building_type> <location>]

Adds a building to a location

Replace sample values with your own.
building building_type 1234
add_random_trait [<id>]

Adds a ruler trait to a character

Replace sample values with your own.
add_random_trait 1
add_trait [<trait>]

Adds a specific trait to the ruler

Replace sample values with your own.
add_trait brave
set_adm [<id> <ability>]

Sets adm ability for a character

Replace sample values with your own.
set_adm 1 ability
set_dip [<id> <ability>]

Sets dip ability for a character

Replace sample values with your own.
set_dip 1 ability
set_mil [<id> <ability>]

Sets mil ability for a character

Replace sample values with your own.
set_mil 1 ability
bankrupt [<CountryTag>]

Bankrupts a nation

Replace sample values with your own.
bankrupt FRA
remove_bankruptcy [<CountryTag>]

Removes the bankruptcy modifier from a nation

Replace sample values with your own.
remove_bankruptcy FRA
opinion [<CountryTag> <amount>]

Adds Opinion for target country versus player

Replace sample values with your own.
opinion FRA 10
convert_character [<religion> <id>]

changes religion of a character

Replace sample values with your own.
convert_character catholic 1
kill_character [<id>]

Kills a character

Replace sample values with your own.
kill_character 1
impregnate [<id>]

Impregnate a character

Replace sample values with your own.
impregnate 1
give_birth [<id>]

force a pregnant to give birth

Replace sample values with your own.
give_birth 1
kill [<id>]

Kills a character

Replace sample values with your own.
kill 1
suicide [<id>]

Kills a character, defaults to yourself

Replace sample values with your own.
suicide 1
colonize [<location>]

creates a colony for target locations' province

Replace sample values with your own.
colonize 1234
colonize_and_finish [<location>]

creates a colony for target locations' province and then finishes the colonial charter immediately

Replace sample values with your own.
colonize_and_finish 1234
finish_colony [<location>]

finishes a colony for target locations' colonial charter

Replace sample values with your own.
finish_colony 1234
finish_all_colonies

finishes a colony for target locations' colonial charter

No parameters.
finish_all_colonies
move_random_pop [<source location> <destination location>]

moves a random pop from source to destination

Replace sample values with your own.
move_random_pop source 1234 destination 1234
population [<location>]

changes a location's population

Replace sample values with your own.
population 1234
finish_constructions [<location>]

finish all constructions in a location

Replace sample values with your own.
finish_constructions 1234
change_garrison [<location>]

changes a location's garrison

Replace sample values with your own.
change_garrison 1234
freeze [<location>]

freezes a sea location

Replace sample values with your own.
freeze 1234
thaw [<location>]

thaws a sea location

Replace sample values with your own.
thaw 1234
recalc_loc [<location>]

recalcs modifiers in a location

Replace sample values with your own.
recalc_loc 1234
pirate [<area>]

adds a pirate to the area

Replace sample values with your own.
pirate rumelia_area
imperial_authority <amount>

adds a imperial_authority to the hre

Use positive to add, negative to subtract (when supported).
imperial_authority 100
annex [<CountryTag>]

Player annexes a tag

Replace sample values with your own.
annex FRA
reset_agendas

Resets agendas in parliament

No parameters.
reset_agendas
war_on_player [<CountryTag>]

A declaring country optionally followed by the victim (defaults to player)

Replace sample values with your own.
war_on_player FRA
declarewar [<CountryTag>]

A victim country optionally followed by attacker (defaults to player)

Replace sample values with your own.
declarewar FRA
revolt [<rebel_id>]

A revolt starts in target country

Replace sample values with your own.
revolt rebels.1
religion [<religion>]

changes religion

Replace sample values with your own.
religion catholic
culture [<culture>]

changes culture

Replace sample values with your own.
culture turkish
cultural_tradition [<culture> <value>]

changes cultural Tradition

Replace sample values with your own.
cultural_tradition turkish 50
cultural_influence [<culture> <value>]

changes cultural Influence

Replace sample values with your own.
cultural_influence turkish 50
location_language_loc [<language/dialect> <region/area>]

outputs missing location locs to the error log by language or dialect

Replace sample values with your own.
location_language_loc language/dialect region/area
dialect_override [<language/dialect>]

overrides all dynasties, characters, locations display names with this dialect

Replace sample values with your own.
dialect_override language/dialect
convert [<location>]

changes religion of all pops in location to state religion

Replace sample values with your own.
convert 1234
win_siege [<location>]

forces a siege to be won in the target location

Replace sample values with your own.
win_siege 1234
economy

resets the pop demands and processes the markets

No parameters.
economy
set_flag [<flag_definition>]

overrides this country's flag

Replace sample values with your own.
set_flag flag_definition
coa [<country>]

dumps the country's COA representation to error log

Replace sample values with your own.
coa TUR
coa_export [<string>]

dumps COAs that start with this string to your documents. If the argument is 'random' it will generate 100 random COA based on the current player country. If you leave the string empty it will output all CoA in the game!

Replace sample values with your own.
coa_export string
no_owner_pops

dumps to the error log any locations that have no pops of the location's owner

No parameters.
no_owner_pops
buildings_over_limit

dumps to the error log any buildings that have a level set that is above the maximum

No parameters.
buildings_over_limit
slavery

ticks the slavery process

No parameters.
slavery
raid [<location_id>]

raids slaves from the target location

Replace sample values with your own.
raid location_id
building_queue_stats [<countrytag>]

Shows queue of buildings in AI memory

Replace sample values with your own.
building_queue_stats FRA
run_select_expand_objectives [<countrytag>]

Runs the select expand objectives for the country

Replace sample values with your own.
run_select_expand_objectives FRA
building_queue_buildings [<countrytag>]

Shows which buildings are on the building queue

Replace sample values with your own.
building_queue_buildings FRA
building_queue_top [<countrytag>]

Shows the top 5 candidates in a building queue in AI memory

Replace sample values with your own.
building_queue_top FRA
building_queue_clear [<countrytag>]

Clears all candidates in a building queue in AI memory

Replace sample values with your own.
building_queue_clear FRA
number_of_buildings [<countrytag>]

Shows building numbers

Replace sample values with your own.
number_of_buildings FRA
make_subject [<subject_type> <countrytag>]

makes subject out of a country

Replace sample values with your own.
make_subject subject_type FRA
occupy_location [<location_id>]

occupies a location

Replace sample values with your own.
occupy_location location_id
occupy_floodfill [<location_id>]

occupies a location

Replace sample values with your own.
occupy_floodfill location_id
occupy_country [<countrytag>]

occupies a country

Replace sample values with your own.
occupy_country FRA
occupy_province [<province>]

occupies a province, only locations belonging to nations at war with the player

Replace sample values with your own.
occupy_province edirne
occupy_area [<area>]

occupies an area, only locations belonging to nations at war with the player

Replace sample values with your own.
occupy_area rumelia_area
occupy_region [<region>]

occupies a region, only locations belonging to nations at war with the player

Replace sample values with your own.
occupy_region balkans_region
conquer [<location_id>]

conquers an location

Replace sample values with your own.
conquer location_id
conquer_country [<countrytag>]

conquers a country

Replace sample values with your own.
conquer_country FRA
conquer_province [<province_definition>]

conquers a province definition

Replace sample values with your own.
conquer_province province_definition
conquer_area [<area>]

conquers an area

Replace sample values with your own.
conquer_area rumelia_area
conquer_region [<region>]

conquers a region

Replace sample values with your own.
conquer_region balkans_region
change_dynastic_name [<countrytag>]

Changes dynastic name of a country

Replace sample values with your own.
change_dynastic_name FRA
remove_location_from_all_ios [<location_id>]

removes location from ios

Replace sample values with your own.
remove_location_from_all_ios location_id
age [<age_tag>]

changes the age

Replace sample values with your own.
age age_of_reformation
situation [<situation>]

activate situation

Replace sample values with your own.
situation religious_turmoil
monthly_situation [<situation>]

ticks a month for a situation

Replace sample values with your own.
monthly_situation religious_turmoil
disaster [<disaster>]

activate disaster

Replace sample values with your own.
disaster civil_war
change_date [<year>]

changes the date

Replace sample values with your own.
change_date 1650
add_institution_progress [<instituion_tag> <location_tag> <amount>]

adds institution progress

Replace sample values with your own.
add_institution_progress renaissance bursa 10
dynasties_report

writes out the dynasty per country

No parameters.
dynasties_report
formable_report

writes out the formables without advances

No parameters.
formable_report
content_report

writes out the amount of unique content per tag

No parameters.
content_report
seazone_report

checks if any seazone has any errors

No parameters.
seazone_report
building_report

reports the base upkeep cost for all buildings

No parameters.
building_report
area_report

checks if any areas has any problems

No parameters.
area_report
mapmode_report

checks if any mapmode is missing a tooltip

No parameters.
mapmode_report
icon_report

checks if any icon database is missing a tooltip

No parameters.
icon_report
bad_goods

checks if any locations has bad raw materials

No parameters.
bad_goods
overpopulation

writes out the locations with overpopulation

No parameters.
overpopulation
societal_values_report

checks if all societal values have enough impact it

No parameters.
societal_values_report
river_validation_report

checks if the river bitmap is valid

No parameters.
river_validation_report
write_popdata

writes out pop information

No parameters.
write_popdata
print_location_list

Writes data about locations in a csv format

No parameters.
print_location_list
printmap [<mapmode>] [<filename>] [<yes/no> Should render flat (optional)]

Writes out the current worldmap to file

Replace sample values with your own.
printmap mapmode filename yes Should render flat (optional)
setup_editor

Toggles the setup editor.

Run again to disable.
setup_editor
pop_editor

Toggles the pop editor.

Run again to disable.
pop_editor
cd_pop_editor

Toggles the CD pop editor.

Run again to disable.
cd_pop_editor
war_viewer

Toggles the War Viewer.

Run again to disable.
war_viewer
ai_currency_viewer

Toggles the Ai Currency Viewer.

Run again to disable.
ai_currency_viewer
ai_diplomatic_objectives_viewer

Toggles the Ai Diplomatic Objectives Viewer.

Run again to disable.
ai_diplomatic_objectives_viewer
ai_targets_viewer

Toggles the Ai Targets Viewer.

Run again to disable.
ai_targets_viewer
port_editor

Toggles the port editor.

Run again to disable.
port_editor
institution_editor

Toggles the institution editor.

Run again to disable.
institution_editor
road_editor

Toggles the road editor.

Run again to disable.
road_editor
players

Lists all players on server

No parameters.
players
kick [<Player name>]

Kicks a player with the given name

Replace sample values with your own.
kick Player custom_culture
new_culture [<name>]

Makes a new culture for the player with the given name

Replace sample values with your own.
new_culture custom_culture
merge_culture_group [<name>]

Merges a culture group

Replace sample values with your own.
merge_culture_group custom_culture
update_characters

update character counts for player

No parameters.
update_characters
create_character [<male/female>] [lowborn/random/new]

Create a Character

Replace sample values with your own.
create_character male new
artist [<artist_type>]

Create an artist

Replace sample values with your own.
artist painter
workofart [<work_of_art_type> [<location> [<quality>]]]]

Create a work of art

Replace sample values with your own.
workofart statue 1234 masterwork
policy [<policy>]

changes a policy

Replace sample values with your own.
policy free_trade
border_distance [<CountryTag>]

gets border distance between current and given country

Replace sample values with your own.
border_distance FRA
diplomats [<amount>]

Gain diplomatic actions

Replace sample values with your own.
diplomats 10
stockpile [<market location key> <goods key> [<amount>]]

Stockpile goods

Replace sample values with your own.
stockpile market 1234 key goods key 10
reform_desire [<amount>]

players religion gets reform desire

Replace sample values with your own.
reform_desire 10
add_core [<amount>]

Add a core location

Replace sample values with your own.
add_core 10
maritime_presence [<amount>]

Add maritime presence to seazone

Replace sample values with your own.
maritime_presence 10
add_research [<amount>]

Gain Research Progreess

Replace sample values with your own.
add_research 10
list_bankruptcies

Shows a list of all bankrupt countries

No parameters.
list_bankruptcies
list_high_debt_countries

Shows a list of all high debt countries

No parameters.
list_high_debt_countries
show_diplomacy_stats

Shows the diplomacy stats

No parameters.
show_diplomacy_stats
run_economy_stats

Runs the economy stats gathering

No parameters.
run_economy_stats
show_economy_stats

Shows the economy stats

No parameters.
show_economy_stats
show_saving_mode [<CountryTag>]

Shows the saving mode a country has

Replace sample values with your own.
show_saving_mode FRA
calc_threat_level [<CountryTag> <CountryTag>]

Shows the threat level second nation poses to first nation 0-1

Replace sample values with your own.
calc_threat_level FRA FRA
codetest

Command for easy code testing

No parameters.
codetest
research_all

Researched all advances in all trees

No parameters.
research_all
finish_current_religious_focus

Completed progress on current religious focus

No parameters.
finish_current_religious_focus
integrate_all

Integrates all provinces

No parameters.
integrate_all
antagonism [[<location>] <value>]

Gives antagonism centred on nations capital or location parameter if supplied

Replace sample values with your own.
antagonism 1234 50
finalise_resolution [<ResolutionID>]

Finalizes a resolution in an IO

Replace sample values with your own.
finalise_resolution ResolutionID
create_pu [<CountryTag>]

Creates a personal union with another country

Replace sample values with your own.
create_pu FRA
research [<advance>]

researches a specific advance

Replace sample values with your own.
research mil_tech_10
embrace_all

Embraces all active institutions

No parameters.
embrace_all
event_counts

Print event debug counts

No parameters.
event_counts
trigger_animations

Trigger a named set of animations

No parameters.
trigger_animations
effect [{effect script}]

execute effect

Replace sample values with your own.
effect {effect script}
run [{effect file}]

execute effect file in /run

Replace sample values with your own.
run {effect file}
trigger [{trigger script}]

test trigger script

Replace sample values with your own.
trigger {trigger script}
clear

Clear console.

No parameters.
clear
Camera.Goto [<location>]

Moves the camera to a location

Replace sample values with your own.
Camera.Goto 1234
copy_dna [<id>]

Copy/shows adn of a character

Replace sample values with your own.
copy_dna 1