Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Cloudflare vinext CLI

$ vinext Official Med Risk
Cloudflare · Code & DevOps · MIT · macos / linux / windows

vinext 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.

FCRS-1.0 Score
84 /100
Good
High Confidence
Zero-Friction Install
npm install -g vinext
CLI vs MCP Decision CLI Preferred vs MCP

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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) in cloudflare/vinext
  • vinext check gives structured compatibility report before edits
Trust & Safety 20 / 25

Read-only vinext check audits repos safely before vinext init modifies files, and @vinext/cloudflare previews deploy isolates preview Workers.

  • Read-only vinext check and isolated Worker preview deployments
Setup & Portability 13 / 15

Standard npm/npx TypeScript package (vinext, @vinext/cloudflare) running across macOS, Linux, and Windows with Node.js/Vite.

  • Zero-install npx vinext and npm ecosystem support
Utility & Efficiency 14 / 15

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 deploy flow
Maintenance & Lineage 9 / 10

Official cloudflare/vinext repository (9.4k+ stars, MIT) actively maintained by Cloudflare.

  • Official cloudflare/vinext repo (9.4k+ stars, MIT)
Docs & Verifiability 8 / 10

Clear vinext.dev documentation, README workflow, and SKILL.md agent instructions.

  • Official docs at vinext.dev and SKILL.md

Security, Auth & Guardrails

Auth Modes
No Auth OAuth Browser Env API Key
Credential Storage

Local vinext check and init need no credentials; deploying to Workers reuses Wrangler / CLOUDFLARE_API_TOKEN auth.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI is free (MIT); deploying to Cloudflare Workers uses your Cloudflare plan limits.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Audit Next.js compatibility before migration
npx vinext check

Scans the Next.js repository and reports compatibility status without editing files.

Inspect vinext CLI options
npx vinext --help

Lists available vinext migration, build, and local server commands.

Controlled Writes & Previews

Deploy preview Worker for a branch
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 check audits 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 check is text-oriented rather than --json.
  • ! Requires Node.js and Vite toolchain dependencies.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI