Skip to main content

blockenv launch

note

To be able to run the launch command, you will first need to set up a BlockEnv environment using the blockenv setup command.

Usage

blockenv launch [options]

Launch the Minecraft client or server

Options

OptionDescription
-s, --side <side>Whether to launch the server or client (choices: "client", "server", default: "client")
-e, --environment <environment>The environment to use for the launch
-p, --profile <profile>The client profile to launch
--player-name <playerName>The player name to use in the game
-h, --helpdisplay help for command

Examples

Display the help message for the launch command:

blockenv launch --help

Launch the NeoForge profile in the BlockEnv client environment (this is the default profile for NeoForge installations):

blockenv launch --side client --profile NeoForge

Launch the BlockEnv server environment:

blockenv launch --side server

Launch the BlockEnv client environment with a custom player name:

blockenv launch --side client --profile NeoForge --player-name CustomPlayerName

Launch the NeoForge profile in the BlockEnv client environment named client-env (This requires a blockenv.config.json configuration file):

blockenv launch --environment client-env --profile NeoForge