CLI

Download

sudo npm i servercraft -g

The Servercraft CLI is only available on npm (macOS, Windows, & Linux are supported)

Don't have Node.js & NPM? Download instructions can be found at https://nodejs.dev/learn/how-to-install-nodejs. And the download can be found at https://nodejs.dev/download/.

Use

servercraft - Lists all the commands

servercraft start - Sets up & starts server

servercraft setup - Sets up the server (automatically does this before starting)

servercraft eula - Opens the EULA file

servercraft dir - Opens the directory of server files

servercraft config - Opens server.properties

servercraft docs - Opens the docs

servercraft delete - Deletes your server

servercraft java - Opens Java's download page.

ip - A seperate command that returns your IP address (append --port to return your server's IP)

Example

servercraft start "args"

Args parameter

The args parameter are added to the end of the command when the server starts.

If you want to use multiple, make sure to put them in quotes, as shown above.

Command-line Arguments

Last updated