{"_id":"@vercel/cli-exec@1.0.1","bugs":{"url":"https://github.com/vercel/vercel/issues"},"dist":{"shasum":"5b1d1e8b2dd6909ab810d5e5ee990e6263a0f5a9","tarball":"http://registry-npm.ywwl.com/@vercel/cli-exec/download/@vercel/cli-exec-1.0.1.tgz","fileCount":33,"integrity":"sha512-g9XerViJ/paZujufXYcu5XYI2vU2rtB4sgdpjUHde5RnOkdmpu0ngH46LCFGHoPXO/C+qDPSczIHIRN+8Q2YKQ==","signatures":[{"sig":"MEUCIG8Lrx/CQqfLSbiTDZyYCqv+tYoG2qAapHSfmxInnhVcAiEA/leiJRcCLVrN26YXEQtrWnQVzw6s6TEe7xDEmrf1+t4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDE4NL2/iwub/gOVMYe7NUHTOC9cQNdRoM3z0TI6c7XWgIhAN3UNKwvbPRGq2SFMW0VMeNneNHQfoGec9sKHqXLIrH2"}],"unpackedSize":133923,"size":30095,"noattachment":false,"key":"/@vercel/cli-exec/-/@vercel/cli-exec-1.0.1.tgz"},"name":"@vercel/cli-exec","_from":"file:/tmp/tmp.VxOyp6VmAI/vercel-cli-exec-1.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">= 18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"license":"Apache-2.0","scripts":{"test":"vitest run -c ../../vitest.config.mts","build":"node ../../utils/build.mjs","type-check":"tsc --noEmit","vitest-run":"vitest run -c ../../vitest.config.mts","vitest-unit":"glob --absolute 'tests/*.test.ts'"},"version":"1.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1ab34e39-ae3d-477a-b39f-57dea93b9122"}},"homepage":"https://vercel.com","_resolved":"/tmp/tmp.VxOyp6VmAI/vercel-cli-exec-1.0.1.tgz","_integrity":"sha512-g9XerViJ/paZujufXYcu5XYI2vU2rtB4sgdpjUHde5RnOkdmpu0ngH46LCFGHoPXO/C+qDPSczIHIRN+8Q2YKQ==","repository":{"url":"git+https://github.com/vercel/vercel.git","type":"git","directory":"packages/cli-exec"},"_npmVersion":"11.19.0","description":"Helpers for locating and executing the Vercel CLI","directories":{},"maintainers":[{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"zeit-bot","email":"team@zeit.co"}],"_nodeVersion":"24.18.0","dependencies":{"execa":"5.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"2.1.4","@types/node":"20.11.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli-exec_1.0.1_1785795861173_0.18450445520110792"},"readme":"# `@vercel/cli-exec`\n\nHelpers for locating and executing the Vercel CLI from other Node packages.\n\n## API\n\n### `findVercelCli(options?)`\n\nAsynchronously resolves the Vercel CLI executable without running it.\n\nReturns a `Promise<VercelCliInvocation | null>`.\n\n- Prefers the nearest `node_modules/.bin/vercel`\n- Falls back to the provided `PATH`\n- Returns `null` when no usable CLI installation is found\n\n### `execVercelCli(args, options?)`\n\nResolves and runs the Vercel CLI, returning:\n\n- `stdout`\n- `stderr`\n- `invocation`\n\nIt preserves access to local `node_modules/.bin` entries and Node itself even\nwhen the caller passes a sanitized `PATH`.\n\n### `clearVercelCliLookupCache()`\n\nClears cached CLI lookups. Use this when a long-lived process needs to pick up\nan install or uninstall that happened after an earlier resolution attempt.\n\n### `VercelCliError`\n\nThrown when resolution or execution fails. The `code` field is one of:\n\n- `VERCEL_CLI_INVALID_CWD`\n- `VERCEL_CLI_NOT_FOUND`\n- `VERCEL_CLI_PERMISSION_DENIED`\n- `VERCEL_CLI_ERRORED`\n- `VERCEL_CLI_TIMED_OUT`\n- `VERCEL_CLI_CANCELED`\n- `VERCEL_CLI_SIGNALED`\n- `VERCEL_CLI_EXEC_FAILED`\n\nAvailable fields:\n\n- `message`: human-readable error message\n- `code`: stable machine-readable error code\n- `invocation`: resolved CLI command metadata when a command was selected\n- `stdout`: captured standard output when the child process produced output\n- `stderr`: captured standard error when the child process produced output\n- `exitCode`: numeric exit code for non-zero process exits\n- `cause`: original underlying error when available\n","publish_time":1785795861265,"_cnpm_publish_time":1785795861265,"dist-tags":{"latest":"1.0.1"}}