CLI

Download

sudo npm i servercraft -g

The Servercraft CLI is only available on npmarrow-up-right (macOS, Windows, & Linux are supported)

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

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

Args parameter

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

circle-exclamation
Command-line Argumentschevron-right

Last updated