
Stellaris 4.5.2 console commands
Stellaris 4.5.2 has 296 console commands, read from stellaris.exe itself: 282 of the game and 14 of the engine. Open the console with the ~ key; the help line and arguments are the game's own. Using the console turns achievements off for that game.
Resources

advanced_logic<Amount>Gives the player Advanced Logic

alloys<Amount>Gives the player some alloys

astral_threads<Amount>Gives the player Astral Threads

cash<Amount>Gives the player some money
Also stored as: energy.

consumer_goods<Amount>Gives the player some consumer goods

createstratdata<Amount>Runs create strategic data for the AI

food<Amount>Gives the player some food

give_resources<Amount>Gives all resources

influence<Amount>Gives the player some Influence

max_resourcesSets all available resources to the maximum value
Also stored as: rr.

menace<Amount>Gives the player Menace

minerals<Amount>Gives the player some minerals

minor_artifacts<Amount>Gives the player Minor Artifacts

pp<Amount>Gives the player some minerals

resource<Resource>Gives the player specified resource

resourcesShow stats for resources

unity<Amount>Gives the player some unity
Research

engineeringIncreases the players engineering tech points

finish_researchFinish all queued research

finish_special_projectsFinish all special projects

finish_terraformCompletes all active terraforming processes

physicsIncreases the players physics tech points

research_all_technologiesArguments: creature techs (1/0), num repeatable techsResearch All Technologies
Also stored as: rta, rat.

research_technology<technology key> <research prerequisites> (0/1, optional)Research the given technology
Also stored as: rt. Technology IDs →

societyIncreases the players society tech points

techupdateRe-generates the tech tree of the player

techweightsPrints weights for tech tree of the player
Empire

add_loyaltyCountry IDAdd Loyalty

add_subject_xpCountry IDAdd Specialist Subject XP


advance_council_agendaProgress
ai_ignore_was_humanEnables or disables the AI being passive for an amount of time after it takes over from a human player

annextargetAnnexes all the planet of target country

branchoffice<PLANET ID>/paintTake ownership of planet branch office

break_fleet_contractBreaks fleet lease contract

control<PLANET ID>/paintTake control of the specified planet

democratic_electionStart a democratic ruler election

electionStart a ruler election

free_governmentToggles allowing player to change government without time limit

free_policiesToggles allowing player to change to whatever policy they want

game_overExecutes Game Over

give_fleet<Country ID>Gives Selected Fleet To

hire_all_leadersHires all leaders in the leader pool
Also stored as: hire_all.

instant_specialization_conversionEnables or disables instant subject specialization conversion

kill_country<COUNTRY_ID>Kills the specified country (or the current country if no ID is passed in)

kill_leader<LEADER_ID>Kills specified leader

kill_rulerKills current ruler

observeSwitch to observer mode

own<PLANET ID>/paintTake ownership and control of the specified planet

peace_on_playerCountry 2 offers peace on the player

play<COUNTRY INDEX>Set player
Also stored as: tag.

playmehuman_ai and ai_ignore_was_human for the price of one

prolong_fleet_contractProlongs fleet lease contract

random_rulerReplace ruler with new random ruler!


surrender<country_id>Surrender and gives in to all demands

unlock_council_agendasToggles makes all council agendas available

unlock_edictsToggles makes all edicts available

update_leader_poolUpdates the leader pool with a new set of leaders
Also stored as: refresh_leader_pool.

war<attacker country id> <defender country id> <war goal>The first country declares war on the second with the given war goal

warexhaustion<Amount>Gives specified amount of war exhaustion to your side of every war you are in.
Planets and pops


add_pops<Species> <Size>Adds pops of specified species in specified size to selected planet.


colonizeColonizer Pop Group IDPut a colony on a planet

copy_popCopies a pop group onto selected planet
Also stored as: pop_group_id.

grow_pops<number of times>Runs pop growth/assembly/decline monthly update on selected colony

kill_popPop IDKill a pop group

planet_ascension_tiertierSet Ascension tier for the selected planet

planet_class<PLANET CLASS NAME>Change planet class on all planets or selected planet
Also stored as: planetclass.

planet_destruction_gfx"clear" or <effect name>Shows a planet destruction effect with the selected ship

planet_happiness<Amount>Changes happiness of pops on selected planet.

planet_size<PLANET SIZE>Change planet size on selected planet
Also stored as: planetsize.

planetsShow stats for planets

populate<Planet>Populates selected or specified planet with pops of the players founder species



tiToggles the drawing of uncharted space

toggle_daily_pop_jobs_updatesToggle daily pop jobs updates
Also stored as: dpju.
Traditions and perks

activate_all_traditionsActivates all traditions

activate_ascension_perkascension perk typeActivates the specified ascension perk



add_psionic_aura_intensityintensity amount to add (can be negative)Adds given intensity to the Psionic Aura present in selected system. Negative value is supported. A Country ID can be given as second parameter, in that case adds intensity to every Psionic Auras owned by the given country. In place of a country ID, <all> can be given, which adds intensity to every Psionic Aura in the galaxy, no matter the owner.
Also stored as: pai.


add_specimen<specimen key/random>Add specified specimen

add_to_vivariumAdd selected fleet to the Vivarium

create_patron_relation<patron_key/major/minor/all> <completed/in_progress/none (optional, default completed)>Creates relation with a Shroud Patron, with the possibility to finish the contact
Also stored as: create_patron_relations, cpr.

max_patron_relation<patron key>Adds the maximum possible attunement and unlocks all of the accords and the covenant with a Shroud Patron. Create the relation if necessary. Overrides the current Covenant if there is one.
Also stored as: mpr.

reload_deeds<patron key> or <all>Reload Deeds for selected Shroud Patron(s).
Also stored as: rdd.

roll_sb_cycle<cycle_key/random> <(Country ID) (optional)>Rolls a new Superstitious Beliefs Cycle for all empires. A Country ID may be given as a parameter. In that case, only the given country will have its cycle rerolled.
Also stored as: rsbc.

skip_accord_cooldownsSkip Shroud Accord cooldowns
Also stored as: sac.

skip_calling_cooldownsSkip Shroud Calling cooldowns
Also stored as: scc.

skip_delve_cooldownSkip Shroud Delve cooldown
Also stored as: sdc.

spawn_psionic_auraSpawns a Psionic Aura in selected system for current empire.
Also stored as: pa.
Galaxy and fleets

activate_gatewaysActivate all gateways across the galaxy
Also stored as: agw.

add_anomalyanomaly category nameAdds a anomaly category to a planet
Also stored as: add_discovery.

add_cloaking_detectorDevice IDAdd cloaking detector in the current system

add_shipdesign nameCreates a new fleet with a ship of the given design.

add_site_progress<Site ID> <Progress amount (in days)>Add an amount of progress to an archaeological site

ambient_objecttypeSpawns an ambient object of the specified type.

attackallfleetsMakes all fleets target all other fleets

change_cloaking_detectorDevice IDChanges parameters of the cloaking detector and puts it into the current system


damagevalueselected ship takes x damage

deploy_cloaking_detectorsCountry IDDeploy a number of cloaking detectors

deploy_cloaking_detectors_everywhereNumber of detectors per countryDeploy a number of cloaking detectors in the borders of every country

dismiss_cloaking_detectorsCountry IDDismiss all cloaking detectors of the country

dismiss_cloaking_detectors_everywhereDismiss all cloaking detectors in the galaxy

dump_astralriftsDump rifts info from all Astral Rifts across the galaxy

dump_astralscarsDump astral scars info from all Astral Scars across the galaxy

dump_gatewaysDump gateway info from all gateways across the galaxy

dump_wormholesDump wormhole info from all wormholes across the galaxy

fail_rift_stageInstantly fail the current Astral Rift stage.

find_starbaseFind a starbase with matching station ID

finish_arc_stageAdvances the stage of the selected archaeological site

finish_rift_stageInstantly finish the current Astral Rift stage.

ftlSet FTL range

instant_buildToggles the Instant Build on or off

invalidate_cloaking_detectorsCountry IDInvalidate all cloaking detectors of the country

invalidate_cloaking_detectors_everywhereCountry IDInvalidate all cloaking detectors in the galaxy

invinciblePlayer ships take no damage

list_cloaking_detectorsCountry IDList cloaking detectors

miaOptional MIA Type (default: mia_return_home)Sends the selected fleet MIA

path<FROM INDEX>Finds and prints path between stars

print_cloaking_detectorDevice IDPrints cloaking detector parameters

recalc_fleet_presencerecalculates fleet presence cache, useful if loading old saves.

refill_astral_rift_pool<country id>Refills the Astral Rift Pool, resetting it in its initial state.

remove_cloaking_detectorDevice IDRemoves cloaking detector

render_catapult_targetsShow catapult targets

set_completed_rifts<country id> (optional) <nb of rifts>Sets the number of completed Rifts.

spawn_astral_rift<eventId> (optional) <distance> <angle> (none or both) - Random if no argsSpawns an astral rift in the current system

stormygalactic_object IDSpawns a storm of the specified type.

surveySurvey all planets

update_cloaking_detectorsCountry IDUpdate cloaking detection ranges
Diplomacy

add_first_contact_cluesNumber of clues to add (default = 10)Add Progress to currently open first contact
Also stored as: afcc.

add_intelCountry IDAdd Intel

add_intel_reportCountry IDAdd Intel Report

add_opinion<Amount>Increases the sources opinion of target
Also stored as: source, target.

add_spynetwork_value<target country index> <amount>Add amount spy network value to spy network between player and target empire

add_trust<source> <target> <amount> (optional)Increases the sources trust of target

bordersstall main thread (yes/no)Calculate map borders

casusbelli<Casus Belli key> <Casus Belli reciever Country index> <Casus Belli target Country index>Gives the first Country a Casus Belli against the second Country
Also stored as: cb.

communications<target country id>Enable/disable contact with all or specific target

complete_first_contactCompletes currently open first contact
Also stored as: cfc.

contact<country index> <system index>Enable/disable contact with all

contacts_summaryEnable/disable player summary in contacts view

diplo_3rd_party<diplo> <actor id> <recipient id>Does diplomacy between two empires from a 3rd party perspective.

end_senate_session<pass/fail>Pass/fail current Galactic Community resolution vote

end_trade_dealEnds a trade deal by setting length to zero.

federation_add_cohesionAdd federation cohesion

federation_add_cohesion_speedAdd federation cohesion speed

federation_add_experienceAdd federation experience

federation_examine_leaderTrigger federation elections

force_attitudeForce an AI's attitude of the player.

force_integrateForce integrate a country.

force_senate_vote[optional resolution key]Forces the senate to vote on the next resolution in the queue, or on a specified resolution.

form_galactic_communityForms the galactic community for all countries, even ones that are usually not eligible. Also no achievement for it

intelSet intel level
Also stored as: sensor.

open_bordersForce opens all borders towards the player's country

profile_ai_diplo_actionsForces all AI countries to calculate some diplo-action stuff

reverse_diplo<diplo> <id>Does reverse diplomacy

skip_agreement_cooldownsEnables or disables the ability to skip Agreement cooldowns

skip_federation_cooldownsEnables or disables automatic skipping of Federation cooldowns

skip_galactic_community_cooldownsEnables or disables the ability to skip Galactic Community cooldowns
Events

debug_dumpeventsDump Event data to game log

debug_eventsStart Counting events

dump_event_dataplayer_events_onlyPrints event data to event_data.log


event_delay_speedupmultiplierBoosts how fast delayed events trigger

eventscopesprints the scope trees of current events

eventstatsShow event statistics

global_event_targetsLists all global event targets
Also stored as: glevt.

random_sb_cycle_eventLaunches a random event for the current Superstitious Beliefs cycle of the current country.
Also stored as: rsbce.
Time and game

add_timetime unitAdvance time without ticking

fast_forward<amount of days>Fast forward a set amount of days

game_paused<true/false>Toggles/Sets the game paused state

game_speed<speed>Sets the game speed

helpcommand namePrint out all console commands or a specific command description.

helphelpDouble Rainbow help.

one_yearrun the game for one year then logs how long it took

overnightSets the game up for an overnight session

playersLists all players currently in the session, with the country they play

thirty_yearrun the game for thirty years then logs how long it took

ticks_per_turn<amount of ticks>Set amount of ticks per turn, default 1.
Also stored as: ticksperturn.

versioncopies version info to clipboard

version_containshashchecks if current build contains a specific commit
Also stored as: v.
Debug

achievement_status<filter>Print achievement status. If a filter is given, only list achievements containing the given filter string.

aiToggles the AI on or off

ai_anomaliesToggles whether human countries get AI anomalies

ai_test_countries{<COUNTRY INDEX> ...}Set AI test code countries

berserk_aiAI aggression set to berserk mode

blend_post_effectnSettingBlends to a new post effect setting

check_saveCheck save and load persistence

clear_debug_linesClears any persistent debug lines

clear_debug_stringsClears any persistent debug strings

clearflag<country/planet/global> <flag> <target id>Clear a flag on a specific target

collisionToggles debug display of normals/bounding boxes/collision
Also stored as: debug_collision.

complete_focus_taskactive focus task position in the listCompletes one active focus task

complete_focus_tasksCompletes all active focus tasks

crashCrash the game.

create_ai_build_planRun AI Build Plan generation immediately

debug_achievementsEnables popups for acheivements to debug them

debug_achievements_clearClear all achievements and user stats

debug_aiToggles AI visual debugging.

debug_dumpgamestate<filename suffix>Dump Gamestate data save as text file

debug_nomenToggles Nomen
Also stored as: nomen.

debug_statsShow/hide debug stats

debug_trait_weightsToggles Trait Weights logging

debug_traits_viewShow/hide debug traits view

debug_yesmenToggles Yesmen
Also stored as: yesmen.

debuglinesToggles debug lineson/off

debugtooltipToggles debug tooltip info.

deltat<scale value>Scales Delta Time with given value
Also stored as: delta_t.

depositsShow stats for deposits

dump_ai_build_planDump AI build plans for observed empire

dump_originsDump origins for all empires

Economics.print_economic_unitsfilenamePrints registered economic units

effect{effect script}execute effect

effect_filefile nameexecute effects from a file

errorShow errors in log

evaluate_scripted_value<value>Evaluates the given scripted value

Factions.ShowAllFactionsSpawns all possible factions.

Factions.ShowAttractionSpawns all possible factions.

Factions.SpawnAllSpawns all possible factions.

filewatcherToggles filewatcher

forceallowmouseinputToggles whether mouse input can be generated in modes where it might otherwise be disabled i.e. gamepad mode.
Also stored as: fami.

fullscreenToggles fullscreen

gamepadToggle game pad support for pretty screenshots.

gfxculture<culture key>Sets graphical culture for player country

gotoxmoves camera to position

gui_extra_height<extra pixels>Set how many pixels GUIs are allowed to expand vertically

guiboundsToggles GUI bounds debug

hdrToggles hdr

heatmapalpha=0.5Creates a debug heatmap

hsvConverts RGB to HSV

human_aiToggles AI for Human countries

human_anomalies_for_aiToggles whether a AI countries get human anomalies

imguiControls ImGui UIs. See the sub commands (ImGui help).

infoToggles Debug info

lockcameraLocks the camera
Also stored as: debug_lockcamera, lock_camera.

map_namesregenerates map names

memtestnumber of iterationstest memleak for certain functions

messageShows all messages types

mouse_lightlight assetAdd a light at the mouse cursor

mp_stats0/1 - whether non playable should be shownPrints stats for MP

noguiToggles GUI on/off

nomouseToggles mouse scrollwheel on/off

number_testnumbersPrints localization of NUMBERS_TEST for the number or range provided

particleToggles Particles Debug info

print_flags<Target ID>Prints specified country's flags, modifiers and variables

print_modifiersfilenamePrints modifiers with debug names

print_modifiers_localizedfilenamePrints modifiers with localized names

rebuild_sectorsDeletes and rebuilds all player sectors

regenerate_border_colorsregenerates country color offsets

reload_galaxyReload system initializer scripts and re-generate galaxy

reload_graphical_mapReloads graphical map.

reload_guiReload all GUI files and tries to re-initiate open GUIs

reloadfxArguments: map/mapname/postfx or *.fx filenameReloads the shader

remove_notification<Amount>Removes all notifications belonging to the player

runRuns the specified file with lsit of commands

save_detail_ai_build_planSave more detailed AI build plans for observed empire

scalingDisable/Enable scaling of ships and planets

script_profilerTurns the script profiler on or off.

setflag<country/planet/global> <flag> <target id>Set a flag on a specific target

skills<Amount>Gives the player some skill/experience

smoothToggle framesmoothing

spawnentity<entity name>Spawns specified entity at cursor position

srgbToggles sRGB

test_achievement<achievement>tests a specific achievement

text_to_speech_loc<Localization Key>Reads the translation of a localization key using text to speech.
Also stored as: tts_loc.

text_to_speech_raw<Text>Reads a phrase using text to speech,
Also stored as: tts_raw.

Threading.TaskThreadCount<Amount>Set or get the number of task threads

tooltip_depthDepthSets the depth of the modifier tree traversed while generating tooltips.

trigger{trigger script}test trigger script

trigger_docsPrint docs for triggers and effects
Also stored as: effect_docs.

trigger_filefile nametest trigger script

volume<Volume Delta>Modifies music volume

windowArguments: open/closeOpens or closes the specified window
Also stored as: wnd.

wireframeToggles forced wireframe on/off
Engine and display

Audio.TestEffectWeightsTest the random distribution of the weights for a sound effect.

debug_modeToggles debug mode

debugtextureDebug drawer for textures

minidumpfile pathCreates a minidump

moduleModule namesToggle modules

net_debuginfoPrint debug info about the networking layer

particle_editorSpawns a particle editor

reloadfile nameReloads assets

rendertypeReports what render backend is used

SetHostLanguageNew LanguageSet the host/game language for randomized names

switchlanguagelanguage nameReload localization files and switch language

timeWhat time is it?

toggle_string_id_and_locShow String ID and localization

tweakerguiSpawns a tweaker GUI
Console: questions
How do I open the console in Stellaris?
Press the ~ key (or the key left of 1 on your keyboard). Commands run for the empire you play; many need a planet, ship or fleet selected.
Where does this list come from?
From stellaris.exe 4.5.2 itself: the game stores each command with its help line and arguments (game commands as objects in its data section, engine commands where its code registers them). The grouping is ours.
Source: stellaris.exe, Stellaris Cygnus v4.5.2 (9776). Icons: the game's navigation icon for each kind of command.