Skip to content

Command line arguments

Gabriel Lima edited this page Apr 18, 2024 · 3 revisions

What is a command line argument?

Command line arguments are special instructions that can be passed to Collapse when launching it. They can temporarily change Collapse's behaviour at start-up. Only one argument can be used per launch.

To use a command line argument, you can either:

  • Use a terminal and add it after the executable.
    (eg. CollapseLauncher.exe tray)

  • Use Windows' Run window or a web browser to call Collapse's URL Protocol.
    (eg. collapse://tray)

What command line arguments are available to use?

tray

Starts Collapse hidden in the system tray.

Examples

CollapseLauncher.exe tray
collapse://tray

open

Loads a specific game/region when launching Collapse.

Options

REQUIRED

  • -g <game name/ID> or --game <game name/id>
    Specifies the game to load.
    If invalid, the entire command will be ignored.

OPTIONAL

  • -r <region name/id> or --region <region name/id>
    Specifies the region to load.
    If not specified or invalid, the last opened region for the game will be opened.

  • -p or --play
    Launches the game automatically after Collapse opens.

Notes

  • If the game/region name has spaces, the name must be enclosed by quotes.
  • The ID of a game/region corresponds to their position in the Launcher Selector (being the first game/region at position 0). Some examples of IDs are:
Game ID
Honkai Impact 3rd 0
Genshin Impact 1
Honkai: Star Rail 2
Regions for Genshin Impact ID
Global 0
Mainland China 1
Bilibili 2

Examples

  • Load Genshin Impact (last used region)
CollapseLauncher.exe open -g "Genshin Impact"
  • Load Honkai: Star Rail (Bilibili region)
collapse://open -g "Honkai: Star Rail" -r Bilibili
  • Load and start Honkai Impact 3rd (Southeast Asia region)
CollapseLauncher.exe open -g "Honkai Impact 3rd" -r "Southeast Asia" -p