{"name":"@vercel/cli-exec","version":"1.0.0","license":"Apache-2.0","_id":"@vercel/cli-exec@1.0.0","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"}],"homepage":"https://vercel.com","bugs":{"url":"https://github.com/vercel/vercel/issues"},"dist":{"shasum":"a4d38ea2fae6d850c6b4af3a3e1ad2bda7d52bf9","tarball":"http://registry-npm.ywwl.com/@vercel/cli-exec/download/@vercel/cli-exec-1.0.0.tgz","fileCount":33,"integrity":"sha512-kQF8LGie/Hbdq9/psJxLE7owRTcqMQMhgybU04gCeR7cbQAr5t8OrjefDNColJv1QSSucFt4pLwRiARVmlOnug==","signatures":[{"sig":"MEUCIQDbsXcZl01NICR8xmBT+ujtwqUD18zJ+uos98gWdC92GAIgfBHXiTvQjofPCR6P/RDao2URg1ucmwQp2kRKRLq5+wE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vercel%2fcli-exec@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":133923,"size":30094,"noattachment":false,"key":"/@vercel/cli-exec/-/@vercel/cli-exec-1.0.0.tgz"},"_from":"file:/tmp/tmp.i70mOZPc05/vercel-cli-exec-1.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">= 18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"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'"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0d7f92b5-7a97-49c1-b1a6-85371d87c3ee"}},"_resolved":"/tmp/tmp.i70mOZPc05/vercel-cli-exec-1.0.0.tgz","_integrity":"sha512-kQF8LGie/Hbdq9/psJxLE7owRTcqMQMhgybU04gCeR7cbQAr5t8OrjefDNColJv1QSSucFt4pLwRiARVmlOnug==","repository":{"url":"git+https://github.com/vercel/vercel.git","type":"git","directory":"packages/cli-exec"},"_npmVersion":"11.17.0","description":"Helpers for locating and executing the Vercel CLI","directories":{},"_nodeVersion":"24.16.0","dependencies":{"execa":"5.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"2.1.4","@types/node":"20.11.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-exec_1.0.0_1781817428612_0.5250066277531635","host":"s3://npm-registry-packages-npm-production"},"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":1781817428741,"_cnpm_publish_time":1781817428741,"dist-tags":{"latest":"1.0.1"}}