Command Line Interface

PixelCloud CLI

在终端管理你的游戏服务器。同样适配 AI 编程助手。

安装

$npm install -g @pixelcloud/cli

需要 Node.js >= 18

快速开始

1
pixel auth login

通过设备码流程认证(会打开浏览器)

2
pixel search image "minecraft"

搜索可用的游戏服务器镜像

3
pixel create --image-id 1 --plan 1

创建新的游戏服务器

4
pixel status

列出你的所有服务器

5
pixel prompt "create a minecraft server"

用自然语言让 AI 帮你操作

Agent Skill

教你的 AI 编程助手使用 PixelCloud CLI 管理游戏服务器。

通过 Skills CLI 安装

支持 Claude Code、Copilot、Cursor、Codex 等 40+ AI 编程助手,基于开放的 Skills 生态。

$npx skills add skyquakers/pixelcloud-skills

手动复制

或将下方内容复制到你的 Agent 的系统提示词或 Skill 配置中。

You have access to the `pixel` CLI for managing game servers on PixelCloud.

Available commands:
  pixel auth login                        # authenticate (opens browser)
  pixel create --image-id <id> --plan <id> [--name <n>] [--env K=V...]
  pixel start --server-id <id>
  pixel stop --server-id <id>
  pixel restart --server-id <id>
  pixel force-restart --server-id <id>
  pixel delete --server-id <id> [--yes]
  pixel search image [keywords]           # search game images
  pixel prompt <message>                  # AI assistant
  pixel status                            # list all servers
  pixel status --server-id <id>           # details of one server

Add --json to any command for machine-readable output.
Environment variables: PIXELCLOUD_TOKEN, PIXELCLOUD_API_URL, PIXELCLOUD_WEB_URL