Optional global CLI wrapper for Detox, a gray-box end-to-end testing library for React Native and native mobile apps. This package (v20.51.0) provides the `detox` command-line tool for running tests on simulators/emulators. It is updated alongside the main `detox` package with frequent releases (multiple per month) and supports React Native 0.84 and iOS 26. Key differentiator: lightweight wrapper that can be installed globally, delegating to the local `detox` package to avoid version mismatches.
npm install detox-cliVerified import paths — ran on the pinned version, not inferred.
Shows global install of detox-cli and basic test command, assuming local detox setup.
npm install --save-dev detox and npm install -g detox-cli
Use Node.js 18 or later.
Upgrade to detox-cli v20 and refer to current docs.
Run npm install -g detox-cli or use npx detox-cli.
Add 'detox' as a devDependency: npm install --save-dev detox
Ensure 'detox' is installed locally: npm install --save-dev detox