Rust Admin Commands
give 物品列表 →用于 F1 菜单或 RCON 的控制台命令。来源:社区维护的 Rust 自身生成的命令元数据导出——请将其视为有用的参考,而非详尽无遗的清单。
Commands that need admin rights on the server: moderation, teleporting, spawning items, spectating and running the server. Use them from the F1 console as an admin, or over RCON.
命令数:653
| 命令 | 描述 | 分类 | 类型 | 默认 | 权限 | |
|---|---|---|---|---|---|---|
player.wakeupall |
(自动生成)一次性唤醒服务器上所有睡眠玩家;仅限管理员/开发者/过场动画模式;适用于重置后清理睡眠玩家列表 | player | 服务器 | 管理员 | ||
powergrid.fusestatus |
powergrid | 服务器 | 管理员 | |||
powergrid.status |
powergrid | 服务器 | 管理员 | |||
printpos <Steam64ID> |
输出你当前的坐标位置。可加前缀 "sv" 以便输入玩家的 Steam64ID 并获取其位置 | 通用 | 无 | 获取其他玩家的位置需要管理员权限 | ||
profile.countsyncmoveentities |
(自动生成)统计并输出所有使用同步移动更新的实体,按预制体分组,帮助找出开销大的逐帧移动实体 | profile | 服务器 | 管理员 | ||
profile.perfsnapshot |
profile.perfsnapshot [delay=15, int] [name='Profile', str, 无扩展名, 最多 32 个字符] [frames=10, int, 最大 10] [debug=false, 同时转储二进制快照] 将生成 <frames> 帧的 JSON 性能快照,可在 Perfetto 或类似工具中查看 | profile | 服务器 | 管理员 | ||
profile.perfsnapshot_stream |
profile.perfsnapshot_stream [name='Profile', str, 无扩展名, 最多 32 个字符] [MainCap=32, int, 最大 256, 主线程缓冲区大小(MB)] [WorkerCap=8, int, 最大 256, 每个工作线程缓冲区大小(MB)] [debug=false, 同时转储二进制快照] 将流式传输 <mainCap>MB 的数据并生成可在 Perfetto 或类似工具中查看的 JSON 快照 | profile | 服务器 | 管理员 | ||
profile.resetexportinterval |
(自动生成)重置分析器导出间隔计时器,使下一次导出在距现在完整的 ExportIntervalS 之后进行 | profile | 服务器 | 管理员 | ||
profile.stopwatchingallocs |
停止追踪内存分配 | profile | 服务器 | 管理员 | ||
profile.watchallocs |
参数:[Name = 'Allocs'] [maxStackDepth = 16]。开始追踪内存分配,条件满足后转储 [Name].json.gz 记录 | profile | 服务器 | 管理员 | ||
quit |
关闭游戏回到桌面。可加前缀 "sv" 以保存并关闭服务器 | 通用 | 无 | 关闭服务器需要管理员权限 | ||
rcon.ban_ip |
从 RCON 封禁一个 IP 地址,阻止其连接并踢出该 IP 的所有客户端,此封禁是永久且持久的 | rcon | 服务器 | 管理员 | ||
rcon.clear_rcon_failed_logins |
清除所有失败的登录尝试 | rcon | 服务器 | 管理员 | ||
rcon.clear_subscribers |
清除服务器上的所有订阅者。 | rcon | 服务器 | 管理员 | ||
rcon.print_rcon_bans |
输出被永久封禁的 IP 和网络表格。使用 '--json' 可返回 JSON 对象 | rcon | 服务器 | 管理员 | ||
rcon.print_rcon_clients |
输出已连接的 RCON 客户端表格。使用 '--json' 可返回 JSON 对象 | rcon | 服务器 | 管理员 | ||
rcon.print_rcon_failed_logins |
输出密码错误的客户端表格。使用 '--json' 可返回 JSON 对象 | rcon | 服务器 | 管理员 | ||
rcon.subscribe |
订阅/取消订阅当前 RCON 连接对服务器状态变化的通知。这可能会影响性能,仅在需要时才使用。 | rcon | 服务器 | 管理员 | ||
rcon.unban_ip |
解除对某个 IP 地址连接 RCON 的封禁,同时会移除其所有尝试历史 | rcon | 服务器 | 管理员 | ||
refillvitals |
将生命值、饥饿和口渴补满 | 管理员 | 无 | 是 | ||
relationshipmanager.addtoteam |
(自动生成)将调用玩家加入其已有的队伍,必要时创建队伍条目 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.createandaddtoteam |
(自动生成)用调用玩家创建新队伍并加入指定玩家(按 UID);返回状态字符串 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.fakeinvite |
(自动生成)从给定队伍 ID 向调用玩家发送一个虚假的组队邀请;用于测试队伍邀请界面流程 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.forceaddtoteam |
将玩家加入队伍,无论其是否在服务器上 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.sleeptoggle |
(自动生成)切换调用管理员玩家注视的实体(在 5m 范围内)的睡眠/唤醒状态;仅限管理员 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.trycreateteam |
(自动生成)以调用玩家为队长创建新队伍;若队伍被禁用(maxTeamSize == 0)则失败 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.wipe_all_contacts |
(自动生成)清除服务器上每名玩家的所有关系联系人数据;仅限管理员 | relationshipmanager | 服务器 | 管理员 | ||
relationshipmanager.wipecontacts |
(自动生成)清除调用玩家的所有关系联系人数据 | relationshipmanager | 服务器 | 管理员 | ||
relay.cfg_reload |
从磁盘重新加载 Rust Relay 配置,这会停止 Rust Relay 功能(使用 relay.restart 重启) | relay | 服务器 | 管理员 | ||
relay.cfg_save |
强制将 Rust Relay 配置保存到磁盘 | relay | 服务器 | 管理员 | ||
relay.clear_queue |
清除中继发送队列(当中继服务器出现问题时有用) | relay | 服务器 | 管理员 | ||
relay.reconnect_reset |
清除重连尝试历史,重置重连额度 | relay | 服务器 | 管理员 | ||
relay.restart |
尝试重启 Rust Relay 连接(可能造成短暂卡顿) | relay | 服务器 | 管理员 | ||
relay.rpc_whitelist_add |
将一条 RPC 消息添加到 RPC 白名单 | relay | 服务器 | 管理员 | ||
relay.rpc_whitelist_rebuild |
重建 RPC 白名单 ID 列表 | relay | 服务器 | 管理员 | ||
relay.rpc_whitelist_remove |
从 RPC 白名单中移除一条 RPC 消息 | relay | 服务器 | 管理员 | ||
relay.shutdown |
关闭与 Rust Relay 服务器的连接 | relay | 服务器 | 管理员 | ||
relay.status |
返回详细的 Rust Relay 状态报告 | relay | 服务器 | 管理员 | ||
removemoderator Steam64ID |
移除玩家的第二高管理员权限级别(1) | 管理员 | 无 | 是 | ||
removeowner Steam64ID |
移除玩家的最高管理员权限级别(2) | 管理员 | 无 | 是 | ||
render.tree_entities |
输出树木数量,以确认服务器已发送全部树木 | render | 服务器 | 管理员 | ||
rentableshop.closenearestshop |
关闭 10m 范围内最近的商店。适用于测试 | rentableshop | 服务器 | 管理员 | ||
rentableshop.processrenttick |
rentableshop | 服务器 | 管理员 | |||
rentableshop.randomiseownerofnearestshop |
随机化 10m 范围内最近商店的所有者。适用于测试 | rentableshop | 服务器 | 管理员 | ||
rentableshop.resettakeoverprotectionofclosestshop |
重置最近商店的接管保护持续时间。适用于测试 | rentableshop | 服务器 | 管理员 | ||
resetstate Steam64ID |
重置指定玩家的状态,例如他们对安全区是否处于敌对状态 | 管理员 | 无 | 是 | ||
ridablehorse2.ragdoll |
ridablehorse2 | 服务器 | 管理员 | |||
ridablehorse2.setforsale |
ridablehorse2 | 服务器 | 管理员 | |||
ridablehorse2.sethorsebreed |
ridablehorse2 | 服务器 | 管理员 | |||
ridablehorse.ragdoll |
(自动生成)使调用管理员玩家正前方的可骑乘马匹实体变成布娃娃;适用于测试马匹物理和死亡状态 | ridablehorse | 服务器 | 管理员 |
Commands that need admin rights on the server: moderation, teleporting, spawning items, spectating and running the server. Use them from the F1 console as an admin, or over RCON. Search by name, description or category; every row has a copy button.
常见问题
Press F1 in game. Type a command and press Enter; press F1 again to close it.
A community-maintained export of Rust's own generated command metadata. Commands change with game updates, so treat it as a helpful reference rather than an exhaustive one.