fivem-docker-cli
Version:
Command-line tool to create and administer FiveM Servers running in Docker.
153 lines (112 loc) • 3.78 kB
Markdown
fivem-docker-cli
================
[](https://oclif.io)
[](https://npmjs.org/package/fivem-docker-cli)
[](https://npmjs.org/package/fivem-docker-cli)
[](https://github.com/justweb1/fivem-docker-cli/blob/master/package.json)
## ** Under Development - Use at your own risk. **
Command-line tool to create and administer FiveM Servers running in Docker.
<!-- toc -->
* [Prerequisites](#prerequisites)
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Prerequisites
<!-- prerequisites -->
* Linux-based OS (preferably CentOS)
* Docker (tested on v1.13)
* Node/NPM
<!-- prerequisitesstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g fivem-docker-cli
$ fivem COMMAND
running command...
$ fivem (-v|--version|version)
fivem-docker-cli/0.1.10 win32-x64 node-v8.11.3
$ fivem --help [COMMAND]
USAGE
$ fivem COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`fivem delete`](#fivem-delete)
* [`fivem help [COMMAND]`](#fivem-help-command)
* [`fivem init`](#fivem-init)
* [`fivem restart`](#fivem-restart)
* [`fivem start`](#fivem-start)
* [`fivem status`](#fivem-status)
* [`fivem stop`](#fivem-stop)
## `fivem delete`
Deletes a FiveM server Docker container.
```
USAGE
$ fivem delete
OPTIONS
-i, --serverid=serverid ID of the FiveM Docker container.
-s, --servername=servername Name of the FiveM Docker container.
```
_See code: [src\commands\delete.js](https://github.com/justweb1/fivem-docker-cli/blob/v0.1.10/src\commands\delete.js)_
## `fivem help [COMMAND]`
display help for fivem
```
USAGE
$ fivem help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
```
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.4/src\commands\help.ts)_
## `fivem init`
Creates a new FiveM server running in Docker.
```
USAGE
$ fivem init
OPTIONS
-k, --licensekey=licensekey Server license key - This can be obtained from https://keymaster.fivem.net.
-p, --rconpass=rconpass Password for RCON access.
-s, --servername=servername Name of the FiveM Docker container.
```
_See code: [src\commands\init.js](https://github.com/justweb1/fivem-docker-cli/blob/v0.1.10/src\commands\init.js)_
## `fivem restart`
Restarts a FiveM server Docker container.
```
USAGE
$ fivem restart
OPTIONS
-i, --serverid=serverid ID of the FiveM Docker container.
-s, --servername=servername Name of the FiveM Docker container.
```
_See code: [src\commands\restart.js](https://github.com/justweb1/fivem-docker-cli/blob/v0.1.10/src\commands\restart.js)_
## `fivem start`
Starts a FiveM server Docker container.
```
USAGE
$ fivem start
OPTIONS
-i, --serverid=serverid ID of the FiveM Docker container.
-s, --servername=servername Name of the FiveM Docker container.
```
_See code: [src\commands\start.js](https://github.com/justweb1/fivem-docker-cli/blob/v0.1.10/src\commands\start.js)_
## `fivem status`
Display status of all FiveM server Docker containers.
```
USAGE
$ fivem status
```
_See code: [src\commands\status.js](https://github.com/justweb1/fivem-docker-cli/blob/v0.1.10/src\commands\status.js)_
## `fivem stop`
Stops a FiveM server Docker container.
```
USAGE
$ fivem stop
OPTIONS
-i, --serverid=serverid ID of the FiveM Docker container.
-s, --servername=servername Name of the FiveM Docker container.
```
_See code: [src\commands\stop.js](https://github.com/justweb1/fivem-docker-cli/blob/v0.1.10/src\commands\stop.js)_
<!-- commandsstop -->