Chrome DevTools Protocol adaptor for Webkit on iOS
npm install @inspectdotdev/cliInspect CLI is a Chrome DevTools Protocol adapter for WebKit on iOS that enables debugging websites and web views with Chrome DevTools and other CDP-compatible tools.
It's the command-line counterpart to Inspect, providing lower-level CDP endpoints for iOS debugging.
Inspect CLI is the spiritual successor to ios-webkit-debug-proxy, handling device communication, simulator discovery, and protocol mappings between WebKit and CDP.
Note: Inspect CLI is a commercial product that requires an Inspect Pro or Inspect Teams subscription.
``bash`
npm install -g @inspectdotdev/cli
Start Inspect CLI by running
`bash`
inspect
Key Features:
- 🔍 Debug iOS and Android apps with Chrome DevTools
- 🔐 Secure OAuth authentication with inspect.dev
- 📱 Automatic device discovery and connection
- ⚡ Fast setup - works in seconds
- Node.js: 16 or higher
- macOS: Required for iOS device debugging
- iOS Devices: iOS 6+ with Web Inspector enabled
Before using Inspect CLI, you need to authenticate with your inspect.dev account:
`bashLogin to your inspect.dev account
inspect login
📖 Usage
$3
`bash
Start Inspect with default settings
inspectStart with debug output
inspect --debug
`$3
`bash
Use custom ports
inspect --ports 9221,9222Filter to specific device
inspect --device-id 4ea8dd11e8c4fbc1a2deadbeefa0fd3bbbb268c7Use custom DevTools frontend
inspect --frontend http://chrome-devtools-frontend.appspot.com/static/latest/devtools.htmlDisable telemetry
inspect --no-telemetryEnable debug mode (includes telemetry debug)
inspect --debug
`📋 Command Reference
$3
| Command | Description |
| ---------------- | -------------------------------- |
|
inspect login | Login to inspect.dev using OAuth |
| inspect logout | Logout from inspect.dev |
| inspect | Start the debug server |$3
| Option | Short | Description | Default |
| ---------------- | ----- | ----------------------------------------- | -------------------------------------------- |
|
--ports | -p | Port assignment configuration | 9221,9222 |
| --frontend | -f | Frontend source URL or path | devtools://devtools/bundled/inspector.html |
| --device-id | -d | Filter to specific device ID | |
| --debug | | Enable verbose output and telemetry debug | false |
| --no-telemetry | | Disable telemetry for this session | false |
| --help | | Show help | |
| --version | | Show version | |🔌 Getting Started
$3
For iOS:
1. Connect iPhone/iPad via USB
2. Enable Web Inspector: Settings → Safari → Advanced → Web Inspector
3. Trust your computer when prompted
$3
`bash
inspect
`$3
1. Visit http://localhost:9221 to see connected devices
2. Click on your device to see available apps
3. Click on an app to open Chrome DevTools
🔧 Configuration
$3
By default, Inspect CLI uses ports 9221 and 9222:
- 9221: Device list server
- 9222: Debug target server
Change ports if needed:
`bash
inspect --ports 8221,8222
`$3
Use a different DevTools frontend:
`bash
inspect --frontend http://chrome-devtools-frontend.appspot.com/static/latest/devtools.html
`📊 Telemetry & Privacy
Inspect CLI collects anonymous usage analytics to help improve the product. All telemetry data is processed through PostHog and follows our privacy policy.
$3
- Application Events: CLI startup, shutdown, errors
- Authentication Events: Login/logout success/failure (no credentials)
- Server Events: Port usage, connection status
- Usage Statistics: Commands used, configuration options
- Technical Context: CLI version, Node.js version, platform
$3
- Personal information or credentials
- Code or file contents
- URLs or sensitive debugging data
- Device-specific identifying information
$3
You can disable telemetry in several ways:
`bash
Disable for a single session
inspect --no-telemetry
`$3
To see what telemetry events are being sent:
`bash
inspect --debug
`🐛 Troubleshooting
$3
"Not authenticated" error:
`bash
inspect login
`"Port already in use" error:
`bash
inspect --ports 8221,8222
`iOS device not showing:
- Ensure Web Inspector is enabled in Safari settings
- Try disconnecting and reconnecting the USB cable
- Check that you've trusted the computer
Telemetry issues:
- Use
--debug to see telemetry events being sent
- Use --no-telemetry` to disable if causing issuesThis software is proprietary and requires a valid Inspect Pro or Inspect Teams subscription.
- Documentation: https://inspect.dev/docs
- Support: https://inspect.dev/support
- Issues: https://github.com/inspectdev/inspect-issues/issues
---
Made with ❤️ by the Inspect team.