zeabur-server-list
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZeabur Server List & Get
Zeabur 服务器列表、详情查询与管理操作
Always useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
请始终使用调用 Zeabur CLI。 切勿直接使用npx zeabur@latest或其他安装方式。如果未安装zeabur,请先安装 Node.js。npx
List All Servers
列出所有服务器
bash
npx zeabur@latest server list -i=falsebash
npx zeabur@latest server list -i=falseOutput Example
输出示例
ID NAME IP PROVIDER LOCATION STATUS VM STATUS
-----------------+-------------+---------------+----------+----------------+--------+----------
6989b00fd42b... my-server 103.45.67.89 Hetzner Singapore, SG Online RUNNING
6989b00fd42b... dev-box 45.67.89.12 Vultr Tokyo, JP Online RUNNING ID NAME IP PROVIDER LOCATION STATUS VM STATUS
-----------------+-------------+---------------+----------+----------------+--------+----------
6989b00fd42b... my-server 103.45.67.89 Hetzner Singapore, SG Online RUNNING
6989b00fd42b... dev-box 45.67.89.12 Vultr Tokyo, JP Online RUNNINGGet Server Details
获取服务器详情
bash
undefinedbash
undefinedBy server ID
通过服务器ID
npx zeabur@latest server get <server-id> -i=false
Shows detailed info: CPU/memory/disk usage, provider, location, managed status, creation time.npx zeabur@latest server get <server-id> -i=false
显示详细信息:CPU/内存/磁盘使用率、服务商、位置、托管状态、创建时间。Reboot a Server
重启服务器
bash
npx zeabur@latest server reboot <server-id> -y-ybash
npx zeabur@latest server reboot <server-id> -y-yServers and Projects
服务器与项目
Each dedicated server can have Zeabur projects bound to it. A project's will be when it is deployed on a dedicated server.
Region.IDserver-<server-id>- To deploy a service to a server, use the skill with the project bound to that server — do NOT SSH in and manually set up web servers or copy files.
zeabur-deploy - SSH is for low-level debugging only (e.g. checking kubectl, inspecting disk, network diagnostics). It is not needed for deploying or managing services.
每个专属服务器可绑定Zeabur项目。当项目部署在专属服务器上时,其将为。
Region.IDserver-<server-id>- 如需将服务部署到服务器,请使用与该服务器绑定的项目对应的技能 — 请勿通过SSH登录手动搭建Web服务器或复制文件。
zeabur-deploy - SSH仅用于底层调试(例如检查kubectl、磁盘检测、网络诊断)。部署或管理服务无需使用SSH。
SSH into a Server (Debugging Only)
SSH登录服务器(仅用于调试)
bash
npx zeabur@latest server ssh <server-id>For managed servers, the password is fetched automatically. If is installed, login is fully automatic; otherwise the password is printed for manual entry.
sshpassbash
npx zeabur@latest server ssh <server-id>对于托管服务器,密码会自动获取。若已安装,则可完全自动登录;否则会打印密码供手动输入。
sshpassNon-Interactive SSH (Running Remote Commands)
非交互式SSH(执行远程命令)
In non-interactive environments (e.g. Claude Code, CI/CD), you cannot use an interactive SSH session. Instead, pipe commands via stdin with :
-i=falsebash
echo 'kubectl get pods -A' | npx zeabur@latest server ssh <server-id> -i=falseFor multiple commands, separate them with or :
;&&bash
echo 'kubectl get pods -A; kubectl get svc -A' | npx zeabur@latest server ssh <server-id> -i=falseImportant notes:
- The output includes the server's MOTD (Message of the Day) banner. Filter it out when parsing results:
bash
echo 'kubectl get pods -A' | npx zeabur@latest server ssh <server-id> -i=false 2>&1 \ | grep -v "Welcome\|Documentation\|Management\|Support\|System load\|Usage of /\|Memory usage\|Swap usage\|Strictly\|just raised\|https://ubuntu\|Expanded\|updates can\|To see these\|Enable ESM\|See https://ubuntu\|New release\|Run 'do-release\|restart required\|INFO.*Connecting\|Pseudo-terminal\|^ \*" - If the remote command has a non-zero exit code (e.g. with no matches), the CLI will print
grep. This does not necessarily mean the SSH connection failed.ERROR exit status 1 - Heredoc syntax () does not work reliably with this command. Always use
<<'EOF'instead.echo '...' |
在非交互式环境中(例如Claude Code、CI/CD),无法使用交互式SSH会话。此时请通过标准输入管道传递命令并添加参数:
-i=falsebash
echo 'kubectl get pods -A' | npx zeabur@latest server ssh <server-id> -i=false若需执行多条命令,请用或分隔:
;&&bash
echo 'kubectl get pods -A; kubectl get svc -A' | npx zeabur@latest server ssh <server-id> -i=false重要说明:
- 输出内容包含服务器的MOTD(每日消息)横幅。解析结果时请将其过滤掉:
bash
echo 'kubectl get pods -A' | npx zeabur@latest server ssh <server-id> -i=false 2>&1 \ | grep -v "Welcome\|Documentation\|Management\|Support\|System load\|Usage of /\|Memory usage\|Swap usage\|Strictly\|just raised\|https://ubuntu\|Expanded\|updates can\|To see these\|Enable ESM\|See https://ubuntu\|New release\|Run 'do-release\|restart required\|INFO.*Connecting\|Pseudo-terminal\|^ \*" - 若远程命令返回非零退出码(例如未匹配到内容),CLI会输出
grep。这并不一定表示SSH连接失败。ERROR exit status 1 - 此处命令无法可靠支持Heredoc语法()。请始终使用
<<'EOF'方式替代。echo '...' |