ue-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseue-cli
ue-cli
CLI for controlling Unreal Engine Editor via Remote Control API (HTTP :30010).
一款通过Remote Control API(HTTP端口30010)控制Unreal Engine Editor的CLI工具。
Prerequisites
前提条件
- UE Editor running with plugin enabled (HTTP :30010)
Web Remote Control - enabled (for script commands)
Python Editor Script Plugin - installed:
ue-clinpm install -g @banaba/ue-cli
- 运行已启用插件的UE Editor(HTTP端口30010)
Web Remote Control - 已启用(用于脚本命令)
Python Editor Script Plugin - 已安装:
ue-clinpm install -g @banaba/ue-cli
Commands
命令
Object operations
对象操作
| Command | Description |
|---|---|
| Call a function |
| Read a property |
| Write a property |
| Get object schema |
| 命令 | 描述 |
|---|---|
| 调用函数 |
| 读取属性 |
| 写入属性 |
| 获取对象架构 |
Discovery
发现功能
| Command | Description |
|---|---|
| Browse available objects/functions (offline, from GitHub) |
| Show function signatures with examples |
| Filter by class name |
| Filter by category (subsystem, library) |
| List all API routes (online, from UE) |
| Search assets (online, from UE) |
| Full object schema (online, from UE) |
| 命令 | 描述 |
|---|---|
| 浏览可用的对象/函数(离线模式,数据来自GitHub) |
| 显示带示例的函数签名 |
| 按类名筛选 |
| 按类别筛选(子系统、库) |
| 列出所有API路由(在线模式,数据来自UE) |
| 搜索资源(在线模式,数据来自UE) |
| 获取完整对象架构(在线模式,数据来自UE) |
Python scripts
Python脚本
| Command | Description |
|---|---|
| Execute a bundled Python template |
| List available templates with parameters |
| 命令 | 描述 |
|---|---|
| 执行捆绑的Python模板 |
| 列出所有带参数的可用模板 |
Batch
批量操作
| Command | Description |
|---|---|
| Execute multiple requests |
| 命令 | 描述 |
|---|---|
| 执行多个请求 |
Workflow
工作流程
- Use to check API connectivity
ue-cli info - Use to find available objects and functions (offline — no UE connection needed)
ue-cli discover - Use for full schema when exact parameter details are needed (online)
ue-cli describe <objectPath> - Use for reads,
ue-cli get/ue-cli callfor writesue-cli set - For complex operations (BP creation, node wiring, UMG widgets), use
ue-cli script
- 使用检查API连通性
ue-cli info - 使用查找可用的对象和函数(离线模式——无需连接UE)
ue-cli discover - 当需要确切的参数详情时,使用获取完整的对象架构(在线模式)
ue-cli describe <objectPath> - 使用执行读取操作,使用
ue-cli get/ue-cli call执行写入操作ue-cli set - 对于复杂操作(蓝图创建、节点连接、UMG组件),使用
ue-cli script
Global flags
全局标志
| Flag | Description |
|---|---|
| UE host (default: http://localhost:30010) |
| Preview HTTP request without sending |
| Skip confirmation for write commands |
| HTTP timeout (default: 5000) |
| Print request/response headers |
| Generate undo transaction (call, set) |
| 标志 | 描述 |
|---|---|
| UE主机地址(默认值:http://localhost:30010) |
| 预览HTTP请求但不发送 |
| 跳过写入命令的确认步骤 |
| HTTP超时时间(默认值:5000毫秒) |
| 打印请求/响应头信息 |
| 生成可撤销的事务(适用于call、set命令) |
Safety
安全提示
- ,
call,set,scriptare write commands — require confirmationbatch - Use to skip confirmation (always use this flag)
--force - Use to preview requests before sending
--dry-run
[!CAUTION] Write commands modify editor state and are hard to undo. Usefirst for unfamiliar operations.--dry-run
- 、
call、set、script为写入命令——执行前需要确认batch - 使用标志可跳过确认步骤(建议始终使用此标志)
--force - 使用标志可在发送请求前预览请求内容
--dry-run
[!CAUTION] 写入命令会修改编辑器状态,且难以撤销。对于不熟悉的操作,请先使用预览。--dry-run