zeabur-file

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Zeabur File

Zeabur 文件

Always use
npx zeabur@latest
to invoke Zeabur CLI.
Never use
zeabur
directly or any other installation method. If
npx
is not available, install Node.js first.
始终使用
npx zeabur@latest
调用 Zeabur CLI。
切勿直接使用
zeabur
或其他任何安装方式。如果没有
npx
,请先安装 Node.js。

Trigger

触发条件

When the user's message contains
<UploadedFile>upload_id</UploadedFile>
, extract the
upload_id
from inside the tag.
当用户消息中包含
<UploadedFile>upload_id</UploadedFile>
时,提取标签内的
upload_id

Workflow

工作流程

bash
undefined
bash
undefined

1. Pull the uploaded project to a local directory

1. 将上传的项目拉取到本地目录

npx zeabur@latest file pull <upload_id> /tmp/project -i=false
npx zeabur@latest file pull <upload_id> /tmp/project -i=false

2. Explore with standard bash tools

2. 使用标准 bash 工具探索项目

ls /tmp/project cat /tmp/project/package.json find /tmp/project -name ".ts" -o -name ".js" | head -20
undefined
ls /tmp/project cat /tmp/project/package.json find /tmp/project -name ".ts" -o -name ".js" | head -20
undefined

Command

命令

bash
undefined
bash
undefined

Download all files from an upload to a local directory

将上传的所有文件下载到本地目录

npx zeabur@latest file pull <upload_id> [target-dir] -i=false

- Default target directory is `.` (current directory)
- Binary files (images, fonts, archives, etc.) are skipped automatically
- Directory structure is preserved
npx zeabur@latest file pull <upload_id> [target-dir] -i=false

- 默认目标目录为 `.`(当前目录)
- 自动跳过二进制文件(图片、字体、归档文件等)
- 保留目录结构

Recommended Analysis Order

推荐分析顺序

  1. Pull the project:
    npx zeabur@latest file pull <upload_id> /tmp/project -i=false
  2. List structure:
    ls -la /tmp/project
    and
    find /tmp/project -type f
  3. Read config:
    cat /tmp/project/package.json
    (or
    go.mod
    ,
    requirements.txt
    ,
    Cargo.toml
    )
  4. Read
    Dockerfile
    if present
  5. Read entry point files (
    src/main.*
    ,
    index.*
    ,
    app.*
    )
  6. Summarize findings and suggest deployment with the
    zeabur-deploy
    skill
  1. 拉取项目:
    npx zeabur@latest file pull <upload_id> /tmp/project -i=false
  2. 列出结构:
    ls -la /tmp/project
    find /tmp/project -type f
  3. 读取配置文件:
    cat /tmp/project/package.json
    (或
    go.mod
    requirements.txt
    Cargo.toml
  4. 如果存在
    Dockerfile
    则读取该文件
  5. 读取入口文件(
    src/main.*
    index.*
    app.*
  6. 总结分析结果,并建议使用
    zeabur-deploy
    技能进行部署

Tips

提示

TipDetails
Binary files are skippedImages, fonts, archives won't be downloaded
Use a temp directoryPull to
/tmp/project
to keep the workspace clean
Use standard toolsAfter pulling,
grep
,
find
,
wc
,
cat
all work normally
提示详情
跳过二进制文件不会下载图片、字体、归档文件
使用临时目录拉取到
/tmp/project
以保持工作区整洁
使用标准工具拉取完成后,
grep
find
wc
cat
均可正常使用