> For the complete documentation index, see [llms.txt](https://servercraft.coolstone.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://servercraft.coolstone.dev/node.js/cli.md).

# CLI

## Download

```bash
sudo npm i servercraft -g
```

The Servercraft **CLI** is only available on [npm](https://npmjs.com/servercraft) (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&#x20;

`servercraft setup` - Sets up the server (automatically does this before starting)&#x20;

`servercraft eula` - Opens the EULA file&#x20;

`servercraft dir` - Opens the directory of server files&#x20;

`servercraft config` - Opens server.properties&#x20;

`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

```bash
servercraft start "args"
```

### Args parameter

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

{% hint style="warning" %}
If you want to use multiple, make sure to put them in quotes, as shown above.
{% endhint %}

{% content-ref url="/pages/owxgOgP5SVPBxVRVBXgn" %}
[Command-line Arguments](/args.md)
{% endcontent-ref %}
