配置完成后,机器就能开始交接。
前置要求Node.js 20.x机器上还没有的话,需要先安装。
CLI 配置与演示
第一步
产出文件的机器先推送。
每台机器只需配置一次,之后一条命令即可推送。
ubuntu-gpu-01
# point the CLI at the service$ relay config set url <service-url>
# we hand this out once the service opens# create an account — prompts for your password$ relay signup --username <username> --device ubuntu-gpu-01
# create your first workspace and make it the default$ relay ws create main --use
# push the folder — the note is required$ relay bundle push ./results --note "benchmark-v3"# see how much of your quota is used$ relay storage stats只有注册需要人来做:密码必须由你提供。
第二步
另一台机器之后再拉取。
同一个 service、同一个 workspace —— 两端只需要共享这两样。
macbook-main
# point at the same service$ relay config set url <service-url>
# sign in — prompts for your password$ relay login --identifier <username>
# switch to the workspace the bundle was sent to$ relay ws use main
# what is waiting for this device?$ relay bundle inbox
# pull it into a directory of your choice$ relay bundle pull b_7f3a91 --output ./incoming拉取不会覆盖已有文件,目录结构按原样还原。
所有命令都支持 --json,脚本与 agent 可以直接驱动 CLI。
展开交接演示
每一步,都能看清文件在哪里。
从上传文件夹到另一台机器取回,逐步查看一次模拟交接。
ubuntu-gpu-01
macbook-main
Relay Cloud
工作区Bundle设备历史
ubuntu-gpu-01
$ relay bundle push ./results --note "benchmark-v3"
Created bundle b_7f3a91 in main
folder: /
files: 14
size: 30 MB
收件箱0
- 暂无待接收
历史1
- 2026-09-19 15:47ubuntu-gpu-01 · 已创建
01 / 05
一条命令把文件与备注变成一个 Bundle。不需要对方的地址、路径或在线状态。这次演示里,我们传递的是 ./results 目录,里面有 14 个文件。