Cloudflare vinext CLI
$ vinext Official Med Riskvinext is Cloudflare's MIT-licensed TypeScript Vite plugin and CLI (9.4k+ stars) reimplementing the Next.js API surface on Vite for Cloudflare Workers and edge runtimes. It provides vinext check compatibility auditing, vinext init automated migration, vinext start, @vinext/cloudflare deploy, and ships an official SKILL.md.
npm install -g vinext vinext runs AST/project compatibility checks (vinext check), Vite builds, and @vinext/cloudflare deploy locally—tasks requiring filesystem access rather than MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Ships SKILL.md (official_skill via npx skills add cloudflare/vinext) and clean vinext check pre-flight diagnostics, though output is human-oriented text.
- Ships
SKILL.md(official_skill) incloudflare/vinext vinext checkgives structured compatibility report before edits
Read-only vinext check audits repos safely before vinext init modifies files, and @vinext/cloudflare previews deploy isolates preview Workers.
- Read-only
vinext checkand isolated Worker preview deployments
Standard npm/npx TypeScript package (vinext, @vinext/cloudflare) running across macOS, Linux, and Windows with Node.js/Vite.
- Zero-install
npx vinextand npm ecosystem support
Automates Next.js-to-Vite/Workers migration, RSC/SSR builds, and Workers previews in one cohesive toolchain.
- End-to-end
check->init->build->@vinext/cloudflare deployflow
Official cloudflare/vinext repository (9.4k+ stars, MIT) actively maintained by Cloudflare.
- Official
cloudflare/vinextrepo (9.4k+ stars, MIT)
Clear vinext.dev documentation, README workflow, and SKILL.md agent instructions.
- Official docs at vinext.dev and
SKILL.md
Security, Auth & Guardrails
Local vinext check and init need no credentials; deploying to Workers reuses Wrangler / CLOUDFLARE_API_TOKEN auth.
CLI is free (MIT); deploying to Cloudflare Workers uses your Cloudflare plan limits.
# vinext CLI Agent Rules - Always run `npx vinext check` first on an existing Next.js codebase before `npx vinext init`. - Run `npx vite build` and verify local behavior with `vinext start` before deploying. - Deploy to `--preview-name` environments before promoting to production Workers.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx vinext check
Scans the Next.js repository and reports compatibility status without editing files.
npx vinext --help
Lists available vinext migration, build, and local server commands.
Controlled Writes & Previews
npx @vinext/cloudflare previews deploy --preview-name pr-preview
Publishes an isolated Workers preview environment rather than overwriting production.
Strengths for Agents
- + Read-only
vinext checkaudits Next.js compatibility before touching project files. - + Ships official
SKILL.md(npx skills add cloudflare/vinext) tailored for coding agents. - + Rapid adoption (9.4k+ stars) and clean Workers preview deployment flow.
Caveats & Pitfalls
- ! Diagnostic output from
vinext checkis text-oriented rather than--json. - ! Requires Node.js and Vite toolchain dependencies.