← 返回
开发者工具 中文

React Native Logs

Use rn-logs to read React Native Metro logs via CDP without MCP overhead. Default output is plain text and safe for non-interactive agent runs.
使用 rn-logs 通过 CDP 读取 React Native Metro 日志,无需 MCP 开销。默认输出纯文本,适合非交互式智能体运行。
okwasniewski
开发者工具 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 2
Stars
📥 969
下载
💾 11
安装
1
版本
#latest

概述

rn-logs cli

Use rn-logs to read React Native Metro logs via CDP without MCP overhead.

Default output is plain text and safe for non-interactive agent runs.

When to use

  • You need live Metro logs from a running RN app
  • You want low-context, plain text log output

Installation

npm install -g rn-logs-cli
bun add -g rn-logs-cli

Then verify:

rn-logs --help

Requirements

  • rn-logs is installed and available in PATH
  • Metro is running
  • App is running on a simulator or device

Core workflow

# 1. List connected apps
rn-logs apps

# 2. Stream logs
rn-logs logs --app "<id|name>"

# 3. Snapshot logs
rn-logs logs --app "<id|name>" --limit 50

Command options

# Changing default port or host
rn-logs "[command]" --host "<host>"    # Metro host (default: localhost)
rn-logs "[command]" --port "<port>"    # Metro port (default: 8081)

rn-logs help

Non-interactive mode

  • When multiple apps are connected, you must pass --app.
  • Output is plain text for agent-friendly consumption.

Common failures

  • metro not reachable -> start Metro or fix host/port
  • no apps connected -> run app on simulator or device
  • multiple apps connected -> pass --app

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 17:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,937
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,520
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,410