# opn-cli **Repository Path**: mirrors_sindresorhus/opn-cli ## Basic Information - **Project Name**: opn-cli - **Description**: Open stuff like URLs, files, executables. Cross-platform. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-25 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # open-cli > Open stuff like URLs, files, executables. Cross-platform. ## Install ```sh npm install --global open-cli ``` ## Usage ``` $ open-cli --help Usage $ open-cli [--wait] [--background] [-- [args]] $ cat | open-cli [--extension] [--wait] [--background] [-- [args]] Options --wait Wait for the app to exit --background Do not bring the app to the foreground (macOS only) --extension File extension for when stdin file type cannot be detected Examples $ open-cli https://sindresorhus.com $ open-cli https://sindresorhus.com -- firefox $ open-cli https://sindresorhus.com -- 'google chrome' --incognito $ open-cli unicorn.png $ cat unicorn.png | open-cli $ echo '

Unicorns!

' | open-cli --extension=html ``` The [following file types](https://github.com/sindresorhus/file-type#supported-file-types) are automagically detected when using stdin mode. ## Related - [open](https://github.com/sindresorhus/open) - API for this package