Linux command
mcli 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List configured
mcli server list
Show server info
mcli server info [server]
Start a server
mcli server start [server]
Stop a server
mcli server stop [server]
Attach to the server
mcli server attach [server]
Create a backup
mcli backup create [server]
Tail server
mcli log [server]
说明
mcli is a command-line interface for managing one or more Minecraft server instances on a Linux host. It wraps the server JAR lifecycle, console attachment, world backups, and per-instance configuration behind a single CLI. Servers are typically defined in a configuration file or directory; `mcli server list` enumerates them, and the `start`/`stop`/`attach` subcommands act on a named instance. Backups are produced from the world directory while the server is running or stopped, depending on configuration.
参数
- server
- Manage server lifecycle: list, info, start, stop, restart, attach.
- backup
- Create, list, or restore server backups.
- log
- Show or tail server logs.
- config
- Read or modify mcli/server configuration.
- --help
- Display help information.
FAQ
What is the mcli command used for?
mcli is a command-line interface for managing one or more Minecraft server instances on a Linux host. It wraps the server JAR lifecycle, console attachment, world backups, and per-instance configuration behind a single CLI. Servers are typically defined in a configuration file or directory; `mcli server list` enumerates them, and the `start`/`stop`/`attach` subcommands act on a named instance. Backups are produced from the world directory while the server is running or stopped, depending on configuration.
How do I run a basic mcli example?
Run `mcli server list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does server do in mcli?
Manage server lifecycle: list, info, start, stop, restart, attach.