summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/docs/handbook/wiki/getting-started/command-line-interface.md
blob: 9b46bf854dfbdeddd28240e4c2f40b84ec030563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
> Wiki navigation: [Overview](/handbook/wiki/) | [Getting Started](/handbook/wiki/getting-started/) | [Help Pages](/handbook/wiki/help-pages/) | [Development](/handbook/wiki/development/)

# Using ProjT Launcher via the Command Line

```text
Usage: projtlauncher [-h] [-v] [-d <dir>] [-l <launch>] [-s <server>] [-a <profile>] [-I <import>] [--show <show>] [--alive] [--help-all]

Options:
  -d, --dir <directory>    Use a custom path as application root (use '.' for current directory)
  -l, --launch <instance>  Launch the specified instance (by instance ID)
  -s, --server <address>   Join the specified server on launch (only valid in combination with --launch)
  -a, --profile <profile>  Use the account specified by its profile name (only valid in combination with --launch)
  --alive                  Write a small 'live.check' file after the launcher starts
  -I, --import <file>      Import instance from specified zip (local path or URL)
  --show <show>            Opens the window for the specified instance (by instance ID)
  -h, --help               Displays help on commandline options.
  --help-all               Displays help, including generic Qt options.
  -v, --version            Displays version information.
```

## What is an instance ID, and where do I find it?

The instance ID is the name of the folder where your instance is contained.

To find it, **right-click** on the instance you want to know the ID of, and then click on _Instance Folder_ within the context menu.

Now, just copy the name of the folder that opened.

## ProjT Launcher is still opening after I close Minecraft

Currently, the _Close ProjT Launcher after game window opens_ option opens ProjT Launcher after closing Minecraft, even when launched from the CLI.

To disable this, open _Settings_, then select _Minecraft_, and finally, un-check _Close ProjT Launcher after game window opens_ or check _Quit the launcher after game window closes_.