StellarisDB

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_resources

    Sets 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

  • resources

    Show stats for resources

  • unity<Amount>

    Gives the player some unity

Research

  • engineering

    Increases the players engineering tech points

  • finish_research

    Finish all queued research

  • finish_special_projects

    Finish all special projects

  • finish_terraform

    Completes all active terraforming processes

  • physics

    Increases the players physics tech points

  • research_all_technologiesArguments: creature techs (1/0), num repeatable techs

    Research 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 →

  • society

    Increases the players society tech points

  • techupdate

    Re-generates the tech tree of the player

  • techweights

    Prints weights for tech tree of the player

Empire

  • add_loyaltyCountry ID

    Add Loyalty

  • add_subject_xpCountry ID

    Add Specialist Subject XP

  • add_trait_leader<LEADER_ID>

    Add trait to leader.

    Leader trait IDs →

  • advance_council_agendaProgress

  • ai_ignore_was_human

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

  • annextarget

    Annexes all the planet of target country

  • branchoffice<PLANET ID>/paint

    Take ownership of planet branch office

  • break_fleet_contract

    Breaks fleet lease contract

  • control<PLANET ID>/paint

    Take control of the specified planet

  • create_navyamount

    Create a fleet up to specified percentage of naval cap.

  • democratic_election

    Start a democratic ruler election

  • election

    Start a ruler election

  • free_government

    Toggles allowing player to change government without time limit

  • free_policies

    Toggles allowing player to change to whatever policy they want

  • game_over

    Executes Game Over

  • give_fleet<Country ID>

    Gives Selected Fleet To

  • hire_all_leaders

    Hires all leaders in the leader pool

    Also stored as: hire_all.

  • imperial_authority

    Add imperial authority

  • instant_specialization_conversion

    Enables 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_ruler

    Kills current ruler

  • observe

    Switch to observer mode

  • own<PLANET ID>/paint

    Take ownership and control of the specified planet

  • peace_on_player

    Country 2 offers peace on the player

  • play<COUNTRY INDEX>

    Set player

    Also stored as: tag.

  • playme

    human_ai and ai_ignore_was_human for the price of one

  • prolong_fleet_contract

    Prolongs fleet lease contract

  • random_ruler

    Replace ruler with new random ruler!

  • remove_trait_leader<LEADER_ID>

    Remove trait from leader.

    Leader trait IDs →

  • surrender<country_id>

    Surrender and gives in to all demands

  • unlock_council_agendas

    Toggles makes all council agendas available

  • unlock_edicts

    Toggles makes all edicts available

  • update_leader_pool

    Updates 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_ethic_popPop Group ID

    Add ethic to an amount in a pop group

    Ethic IDs →

  • add_pops<Species> <Size>

    Adds pops of specified species in specified size to selected planet.

  • add_trait_speciesSpecies Index

    Add a trait to a species

    Species trait IDs →

  • colonizeColonizer Pop Group ID

    Put a colony on a planet

  • copy_pop

    Copies 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 ID

    Kill a pop group

  • planet_ascension_tiertier

    Set 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.

  • planets

    Show stats for planets

  • populate<Planet>

    Populates selected or specified planet with pops of the players founder species

  • remove_ethic_popPop Group ID

    Remove ethic from an amount in a pop group

    Ethic IDs →

  • remove_trait_speciesSpecies Index

    Remove a trait from a species

    Species trait IDs →

  • ti

    Toggles the drawing of uncharted space

  • toggle_daily_pop_jobs_updates

    Toggle daily pop jobs updates

    Also stored as: dpju.

Traditions and perks

  • activate_all_traditions

    Activates all traditions

  • activate_ascension_perkascension perk type

    Activates the specified ascension perk

    Ascension perk IDs →

  • activate_relic<relic key>

    Activate specified relic

    Relic IDs →

  • activate_traditiontradition type

    Activates the specified tradition

    Tradition IDs →

  • 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_relic<relic key>

    Add specified relic

    Relic IDs →

  • add_specimen<specimen key/random>

    Add specified specimen

  • add_to_vivarium

    Add 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_cooldowns

    Skip Shroud Accord cooldowns

    Also stored as: sac.

  • skip_calling_cooldowns

    Skip Shroud Calling cooldowns

    Also stored as: scc.

  • skip_delve_cooldown

    Skip Shroud Delve cooldown

    Also stored as: sdc.

  • spawn_psionic_aura

    Spawns a Psionic Aura in selected system for current empire.

    Also stored as: pa.

Galaxy and fleets

  • activate_gateways

    Activate all gateways across the galaxy

    Also stored as: agw.

  • add_anomalyanomaly category name

    Adds a anomaly category to a planet

    Also stored as: add_discovery.

  • add_cloaking_detectorDevice ID

    Add cloaking detector in the current system

  • add_shipdesign name

    Creates 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_objecttype

    Spawns an ambient object of the specified type.

  • attackallfleets

    Makes all fleets target all other fleets

  • change_cloaking_detectorDevice ID

    Changes parameters of the cloaking detector and puts it into the current system

  • create_megastructure

    It creates the mega structure of choice.

    Megastructure IDs →

  • damagevalue

    selected ship takes x damage

  • deploy_cloaking_detectorsCountry ID

    Deploy a number of cloaking detectors

  • deploy_cloaking_detectors_everywhereNumber of detectors per country

    Deploy a number of cloaking detectors in the borders of every country

  • dismiss_cloaking_detectorsCountry ID

    Dismiss all cloaking detectors of the country

  • dismiss_cloaking_detectors_everywhere

    Dismiss all cloaking detectors in the galaxy

  • dump_astralrifts

    Dump rifts info from all Astral Rifts across the galaxy

  • dump_astralscars

    Dump astral scars info from all Astral Scars across the galaxy

  • dump_gateways

    Dump gateway info from all gateways across the galaxy

  • dump_wormholes

    Dump wormhole info from all wormholes across the galaxy

  • fail_rift_stage

    Instantly fail the current Astral Rift stage.

  • find_starbase

    Find a starbase with matching station ID

  • finish_arc_stage

    Advances the stage of the selected archaeological site

  • finish_rift_stage

    Instantly finish the current Astral Rift stage.

  • ftl

    Set FTL range

  • instant_build

    Toggles the Instant Build on or off

  • invalidate_cloaking_detectorsCountry ID

    Invalidate all cloaking detectors of the country

  • invalidate_cloaking_detectors_everywhereCountry ID

    Invalidate all cloaking detectors in the galaxy

  • invincible

    Player ships take no damage

  • list_cloaking_detectorsCountry ID

    List cloaking detectors

  • miaOptional MIA Type (default: mia_return_home)

    Sends the selected fleet MIA

  • path<FROM INDEX>

    Finds and prints path between stars

  • recalc_fleet_presence

    recalculates 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 ID

    Removes cloaking detector

  • render_catapult_targets

    Show 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 args

    Spawns an astral rift in the current system

  • stormygalactic_object ID

    Spawns a storm of the specified type.

  • survey

    Survey all planets

  • update_cloaking_detectorsCountry ID

    Update 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 ID

    Add Intel

  • add_intel_reportCountry ID

    Add 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_contact

    Completes currently open first contact

    Also stored as: cfc.

  • contact<country index> <system index>

    Enable/disable contact with all

  • contacts_summary

    Enable/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_deal

    Ends a trade deal by setting length to zero.

  • federation_add_cohesion

    Add federation cohesion

  • federation_add_cohesion_speed

    Add federation cohesion speed

  • federation_add_experience

    Add federation experience

  • federation_examine_leader

    Trigger federation elections

  • force_attitude

    Force an AI's attitude of the player.

  • force_integrate

    Force 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_community

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

  • intel

    Set intel level

    Also stored as: sensor.

  • open_borders

    Force opens all borders towards the player's country

  • profile_ai_diplo_actions

    Forces all AI countries to calculate some diplo-action stuff

  • reverse_diplo<diplo> <id>

    Does reverse diplomacy

  • skip_agreement_cooldowns

    Enables or disables the ability to skip Agreement cooldowns

  • skip_federation_cooldowns

    Enables or disables automatic skipping of Federation cooldowns

  • skip_galactic_community_cooldowns

    Enables or disables the ability to skip Galactic Community cooldowns

Events

  • debug_dumpevents

    Dump Event data to game log

  • debug_events

    Start Counting events

  • dump_event_dataplayer_events_only

    Prints event data to event_data.log

  • eventevent id

    Executes an event

    Event IDs →

  • event_delay_speedupmultiplier

    Boosts how fast delayed events trigger

  • eventscopes

    prints the scope trees of current events

  • eventstats

    Show event statistics

  • global_event_targets

    Lists all global event targets

    Also stored as: glevt.

  • random_sb_cycle_event

    Launches a random event for the current Superstitious Beliefs cycle of the current country.

    Also stored as: rsbce.

Time and game

  • add_timetime unit

    Advance 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 name

    Print out all console commands or a specific command description.

  • helphelp

    Double Rainbow help.

  • one_year

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

  • overnight

    Sets the game up for an overnight session

  • players

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

  • thirty_year

    run 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.

  • version

    copies version info to clipboard

  • version_containshash

    checks 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.

  • ai

    Toggles the AI on or off

  • ai_anomalies

    Toggles whether human countries get AI anomalies

  • ai_test_countries{<COUNTRY INDEX> ...}

    Set AI test code countries

  • berserk_ai

    AI aggression set to berserk mode

  • blend_post_effectnSetting

    Blends to a new post effect setting

  • check_save

    Check save and load persistence

  • clear_debug_lines

    Clears any persistent debug lines

  • clear_debug_strings

    Clears any persistent debug strings

  • clearflag<country/planet/global> <flag> <target id>

    Clear a flag on a specific target

  • collision

    Toggles debug display of normals/bounding boxes/collision

    Also stored as: debug_collision.

  • complete_focus_taskactive focus task position in the list

    Completes one active focus task

  • complete_focus_tasks

    Completes all active focus tasks

  • crash

    Crash the game.

  • create_ai_build_plan

    Run AI Build Plan generation immediately

  • debug_achievements

    Enables popups for acheivements to debug them

  • debug_achievements_clear

    Clear all achievements and user stats

  • debug_ai

    Toggles AI visual debugging.

  • debug_dumpgamestate<filename suffix>

    Dump Gamestate data save as text file

  • debug_nomen

    Toggles Nomen

    Also stored as: nomen.

  • debug_stats

    Show/hide debug stats

  • debug_trait_weights

    Toggles Trait Weights logging

  • debug_traits_view

    Show/hide debug traits view

  • debug_yesmen

    Toggles Yesmen

    Also stored as: yesmen.

  • debuglines

    Toggles debug lineson/off

  • debugtooltip

    Toggles debug tooltip info.

  • deltat<scale value>

    Scales Delta Time with given value

    Also stored as: delta_t.

  • deposits

    Show stats for deposits

  • dump_ai_build_plan

    Dump AI build plans for observed empire

  • dump_origins

    Dump origins for all empires

  • Economics.print_economic_unitsfilename

    Prints registered economic units

  • effect{effect script}

    execute effect

  • effect_filefile name

    execute effects from a file

  • error

    Show errors in log

  • evaluate_scripted_value<value>

    Evaluates the given scripted value

  • Factions.ShowAllFactions

    Spawns all possible factions.

  • Factions.ShowAttraction

    Spawns all possible factions.

  • Factions.SpawnAll

    Spawns all possible factions.

  • filewatcher

    Toggles filewatcher

  • forceallowmouseinput

    Toggles whether mouse input can be generated in modes where it might otherwise be disabled i.e. gamepad mode.

    Also stored as: fami.

  • fullscreen

    Toggles fullscreen

  • gamepad

    Toggle game pad support for pretty screenshots.

  • gfxculture<culture key>

    Sets graphical culture for player country

  • gotox

    moves camera to position

  • gui_extra_height<extra pixels>

    Set how many pixels GUIs are allowed to expand vertically

  • guibounds

    Toggles GUI bounds debug

  • hdr

    Toggles hdr

  • heatmapalpha=0.5

    Creates a debug heatmap

  • hsv

    Converts RGB to HSV

  • human_ai

    Toggles AI for Human countries

  • human_anomalies_for_ai

    Toggles whether a AI countries get human anomalies

  • imgui

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

  • info

    Toggles Debug info

  • lockcamera

    Locks the camera

    Also stored as: debug_lockcamera, lock_camera.

  • map_names

    regenerates map names

  • memtestnumber of iterations

    test memleak for certain functions

  • message

    Shows all messages types

  • mouse_lightlight asset

    Add a light at the mouse cursor

  • mp_stats0/1 - whether non playable should be shown

    Prints stats for MP

  • nogui

    Toggles GUI on/off

  • nomouse

    Toggles mouse scrollwheel on/off

  • number_testnumbers

    Prints localization of NUMBERS_TEST for the number or range provided

  • particle

    Toggles Particles Debug info

  • rebuild_sectors

    Deletes and rebuilds all player sectors

  • regenerate_border_colors

    regenerates country color offsets

  • reload_galaxy

    Reload system initializer scripts and re-generate galaxy

  • reload_graphical_map

    Reloads graphical map.

  • reload_gui

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

  • reloadfxArguments: map/mapname/postfx or *.fx filename

    Reloads the shader

  • remove_notification<Amount>

    Removes all notifications belonging to the player

  • run

    Runs the specified file with lsit of commands

  • save_detail_ai_build_plan

    Save more detailed AI build plans for observed empire

  • scaling

    Disable/Enable scaling of ships and planets

  • script_profiler

    Turns 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

  • smooth

    Toggle framesmoothing

  • spawnentity<entity name>

    Spawns specified entity at cursor position

  • srgb

    Toggles 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_depthDepth

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

  • trigger{trigger script}

    test trigger script

  • trigger_docs

    Print docs for triggers and effects

    Also stored as: effect_docs.

  • trigger_filefile name

    test trigger script

  • volume<Volume Delta>

    Modifies music volume

  • windowArguments: open/close

    Opens or closes the specified window

    Also stored as: wnd.

  • wireframe

    Toggles forced wireframe on/off

Engine and display

  • Audio.TestEffectWeights

    Test the random distribution of the weights for a sound effect.

  • debug_mode

    Toggles debug mode

  • debugtexture

    Debug drawer for textures

  • minidumpfile path

    Creates a minidump

  • moduleModule names

    Toggle modules

  • net_debuginfo

    Print debug info about the networking layer

  • particle_editor

    Spawns a particle editor

  • reloadfile name

    Reloads assets

  • rendertype

    Reports what render backend is used

  • SetHostLanguageNew Language

    Set the host/game language for randomized names

  • switchlanguagelanguage name

    Reload localization files and switch language

  • time

    What time is it?

  • toggle_string_id_and_loc

    Show String ID and localization

  • tweakergui

    Spawns 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.

Spotted a mistake on this page?