npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@debugswift/ios-simulator-cli

v1.7.0

Published

CLI for interacting with the iOS simulator

Readme

iOS Simulator CLI

NPM Version

A command-line tool for interacting with iOS simulators. Control UI, capture screenshots and video, install apps, and inspect accessibility elements from your terminal or automation scripts.

Security Notice: Command injection vulnerabilities present in versions < 1.3.3 have been fixed. Please update to v1.3.3 or later. See SECURITY.md for details.

Installation

Homebrew (recommended)

The formula lives in this repo, so tap it explicitly (Homebrew otherwise looks for a separate homebrew-ios-simulator-cli repo that does not exist):

brew tap DebugSwift/ios-simulator-cli https://github.com/DebugSwift/ios-simulator-cli
brew install ios-simulator-cli

To install the latest from main:

brew install --HEAD ios-simulator-cli

npm

npm install -g ios-simulator-cli

From source

git clone https://github.com/DebugSwift/ios-simulator-cli
cd ios-simulator-cli
npm install
npm run build
npm link

Prerequisites

  • macOS (iOS simulators are only available on macOS)
  • Xcode and iOS simulators installed
  • Facebook IDB tool (install guide)

Usage

ios-simulator-cli --help
ios-simulator-cli --version

Commands

| Command | Description | | --- | --- | | get-booted-sim-id | Get the booted simulator UUID | | open | Open Simulator.app | | ui describe-all | Describe all UI accessibility elements | | ui tap | Tap at coordinates | | ui type | Input text | | ui swipe | Swipe gesture | | ui describe-point | Get element at coordinates | | ui find-element | Search accessibility tree | | ui view | Capture compressed screenshot (JPEG base64 or file) | | screenshot | Save screenshot to file | | record-video | Start video recording | | stop-recording | Stop video recording | | install-app | Install an app bundle (.app or .ipa) | | launch-app | Launch an app by bundle identifier |

Examples

# Get the booted simulator
ios-simulator-cli get-booted-sim-id

# Open Simulator.app
ios-simulator-cli open

# Describe the current screen
ios-simulator-cli ui describe-all

# Tap at coordinates
ios-simulator-cli ui tap --x 200 --y 400

# Type text
ios-simulator-cli ui type "Hello World"

# Swipe down
ios-simulator-cli ui swipe --x-start 200 --y-start 600 --x-end 200 --y-end 200

# Find a button by label
ios-simulator-cli ui find-element --search "Search" --type Button

# Save a screenshot
ios-simulator-cli screenshot --output home.png

# Capture a compressed view to a file
ios-simulator-cli ui view --output screen.jpg

# Start and stop recording
ios-simulator-cli record-video --output demo.mp4
ios-simulator-cli stop-recording

# Install and launch an app
ios-simulator-cli install-app --app-path ./MyApp.app
ios-simulator-cli launch-app --bundle-id com.apple.mobilesafari --terminate-running
ios-simulator-cli launch-app --bundle-id com.example.app --env FOO=bar --env BAZ=qux

Configuration

Environment Variables

| Variable | Description | Example | | --- | --- | --- | | IOS_SIMULATOR_CLI_DEFAULT_OUTPUT_DIR | Default directory for relative output paths (screenshots, recordings). Defaults to ~/Downloads. | ~/Code/project/tmp | | IOS_SIMULATOR_CLI_IDB_PATH | Custom path to the IDB executable. Defaults to idb on PATH. | ~/bin/idb |

Legacy IOS_SIMULATOR_MCP_* environment variables are still supported for output directory and IDB path.

License

MIT