Command Line Interface
How to use nanos world CLI to install packages and update the server.
nanos world provides a CLI (Command Line Interface) to help updating the server, packages and assets and also downloading them!
Starting the CLIβ
To run the cli, start the server with --cli
argument:
- Windows
- Linux
./NanosWorldServer.exe --cli
./NanosWorldServer --cli
After started, if you type help
you can see all the available commands:
CLI Commandsβ
Commands | Description |
---|---|
install package [PACKAGE_NAMES...] | Install Packages |
update package [PACKAGE_NAMES...] | Update Packages |
install assets [ASSET_NAMES...] | Install Asset Packs |
update assets [ASSET_NAMES...] | Update Asset Packs |
add package [PACKAGE_PATH] | Creates a new Package in a interactive way |
add assets [ASSET_PATH] | Creates a new Asset Pack in a interactive way |
check | Check for Updates |
help | Display all Commands |
stop | Stops the CLI |
One-Liner CLIβ
info
It is also possible to run the CLI in a non-interactive mode, just run the command together after the --cli
.
- Windows
- Linux
./NanosWorldServer.exe --cli update package sandbox
./NanosWorldServer --cli update package sandbox
tip
You can also install/update several Packages/Assets in a single command, separating them by spaces:
install package sandbox battlefield-kill-ui