Template Management¶
The template command group allows you to manage server templates, which pre-configure server settings and files for
quick deployment.
Create a Template¶
Create a new template based on a specific server type and version. This will prompt you to configure the server settings which will be saved into the template.
Arguments¶
| Argument | Description |
|---|---|
server_type |
The type of server for the template (e.g., paper). |
server_version |
The version of the server (e.g., 1.20.1). |
template_name |
A unique name for your new template. |
Examples¶
Create a template named survival-1.20 for a Paper 1.20.1 server:
Use a Template¶
Create a new server using an existing template.
Arguments¶
| Argument | Description |
|---|---|
template_name |
The name of the template to use. |
path |
(Optional) The directory where the server will be created. Defaults to the current directory (.). |
Examples¶
Create a server from the survival-1.20 template in the current directory:
Create a server from the survival-1.20 template in a specific directory:
List Templates¶
List all available templates.
Import a Template¶
Import a template from a JSON file.
Arguments¶
| Argument | Description |
|---|---|
path |
Path to the template JSON file to import. |
Examples¶
Import a template from backup.json:
Export a Template¶
Export an existing template to a JSON file.
Arguments¶
| Argument | Description |
|---|---|
template_name |
The name of the template to export. |
destination |
The destination path or directory for the exported JSON file. |
Examples¶
Export the survival-1.20 template to backup.json:
Delete a Template¶
Delete an existing template.
Arguments¶
| Argument | Description |
|---|---|
template_name |
The name of the template to delete. |
Examples¶
Delete the survival-1.20 template:
Refresh a Template¶
Update the download links and metadata within a template to match the current locker version.
Arguments¶
| Argument | Description |
|---|---|
template_name |
The name of the template to refresh. |
Examples¶
Refresh the survival-1.20 template: