{"id":29111517,"url":"https://github.com/sindresorhus/opn-cli","last_synced_at":"2026-01-12T01:54:57.297Z","repository":{"id":34342215,"uuid":"38263069","full_name":"sindresorhus/open-cli","owner":"sindresorhus","description":"Open stuff like URLs, files, executables. Cross-platform.","archived":false,"fork":false,"pushed_at":"2023-12-19T02:14:56.000Z","size":31,"stargazers_count":423,"open_issues_count":3,"forks_count":23,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-22T22:02:10.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-06-29T18:15:59.000Z","updated_at":"2025-05-02T06:40:34.000Z","dependencies_parsed_at":"2022-08-08T00:16:20.640Z","dependency_job_id":"c41a4300-f7ef-41c2-90d9-9e62d34845ae","html_url":"https://github.com/sindresorhus/open-cli","commit_stats":{"total_commits":38,"total_committers":6,"mean_commits":6.333333333333333,"dds":"0.23684210526315785","last_synced_commit":"9550e180641aa42fd7ceb15b7e43a568d10f806a"},"previous_names":["sindresorhus/opn-cli"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/sindresorhus/open-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fopen-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fopen-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fopen-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fopen-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/open-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fopen-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262574091,"owners_count":23330775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-29T10:01:25.581Z","updated_at":"2026-01-12T01:54:57.291Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript","Packages","Other Utilities"],"sub_categories":["Utility Packs"],"readme":"# open-cli\n\n\u003e Open stuff like URLs, files, executables. Cross-platform.\n\n## Install\n\n```sh\nnpm install --global open-cli\n```\n\n## Usage\n\n```\n$ open-cli --help\n\n  Usage\n    $ open-cli \u003cfile|url\u003e [--wait] [--background] [-- \u003capp\u003e [args]]\n    $ cat \u003cfile\u003e | open-cli [--extension] [--wait] [--background] [-- \u003capp\u003e [args]]\n\n  Options\n    --wait         Wait for the app to exit\n    --background   Do not bring the app to the foreground (macOS only)\n    --extension    File extension for when stdin file type cannot be detected\n\n  Examples\n    $ open-cli https://sindresorhus.com\n    $ open-cli https://sindresorhus.com -- firefox\n    $ open-cli https://sindresorhus.com -- 'google chrome' --incognito\n    $ open-cli unicorn.png\n    $ cat unicorn.png | open-cli\n    $ echo '\u003ch1\u003eUnicorns!\u003c/h1\u003e' | open-cli --extension=html\n```\n\nThe [following file types](https://github.com/sindresorhus/file-type#supported-file-types) are automagically detected when using stdin mode.\n\n## Related\n\n- [open](https://github.com/sindresorhus/open) - API for this package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fopn-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fopn-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fopn-cli/lists"}