# ViraStack Start (full) > `virastack` CLI (2.0), scaffold production-ready Next.js or TanStack Start apps with a feature-based layout, TypeScript strict, Tailwind CSS 4, Vitest tests, ViraStack AI rules, design skills and optional ViraStack tools. ## Install / run ```bash npx virastack@latest npx virastack@latest init my-app --template nextjs --agent claude,cursor --tools mask,password --yes ``` Docs: https://virastack.com/start/docs; Index: https://virastack.com/start/llms.txt; Repo: https://github.com/virastack/start ## Commands | Command | Purpose | | --- | --- | | `init [name]` | Create a new project (interactive unless `--yes`) | | `add ` | Add a ViraStack tool (`mask`, `password`, `address`, `ai`) or a module (`users`, `checkout-address`, `checkout-card`) to an existing project | | `remove ` | Remove a module. Its packages stay. `--yes` also deletes files you changed | | `add ai --agent ` | Add AI rules for the given coding tools | ## Flags | Flag | Meaning | | --- | --- | | `--name ` | Project name (`.` = current directory) | | `--template ` | `nextjs` or `tanstack` | | `--agent ` | AI coding tools: `claude`, `cursor` (comma separated) or `none`. Default: both | | `--tools ` | Comma-separated: `mask`, `password`, `address` | | `--i18n` / `--no-i18n` | Multi-language templates on/off | | `--yes`, `-y` | Non-interactive defaults | | `--skip-install` | Skip package install (AI rules and skills are still added) | | `--tr` | Turkish CLI prompts / success messages | | `--telemetry-disable` | Disable anonymous usage tracking | | `-v`, `--version` | Version | | `-h`, `--help` | Help | ## Interactive questions Order: template, AI coding tools (Claude Code, Cursor; both selected by default), i18n, extra tools (Mask, Password, Address). ## Setup order 1. `git init` 2. Package install (skipped with `--skip-install`) 3. Next.js only: Next.js agent rules block in `AGENTS.md` 4. ViraStack AI: `npx @virastack/ai init --agent ` writes rules for the selected tools 5. Design skills (see below) 6. Initial commit ## Design skills Installed in every project with the `skills` CLI (https://github.com/vercel-labs/skills), into `.agents/skills/` plus the selected agents (only `.claude/skills/` when Claude Code is the only tool): - `emil-design-eng` from https://github.com/emilkowalski/skills - `better-ui` from https://github.com/jakubkrehel/skills - `better-accessibility` from https://github.com/jakubkrehel/skills ## Templates Four variants: 1. `templates/nextjs`: Next.js 16 App Router, React 19, no i18n by default 2. `templates/tanstack`: TanStack Start + Router, React 19, no i18n by default 3. `templates-i18n/nextjs`: Next.js + `next-intl`, messages in `src/messages/` 4. `templates-i18n/tanstack`: TanStack Start + Paraglide, messages in `src/messages/` ### Shared stack (typical) - TypeScript strict + `noUncheckedIndexedAccess` (`tsc` on TypeScript 7, `typescript-eslint` and `next build` on TypeScript 6), Node `^22.22.2 || ^24.15.0 || >=26.0.0` - Tailwind CSS 4 design tokens - UI: Base UI (unstyled), shadcn `components.json`, Sonner, Lucide, `next-themes`, CVA - Server state: TanStack Query 5 - Client state: Zustand - URL state: `nuqs` on Next.js, `validateSearch` on TanStack Start - Forms: React Hook Form + Zod - API: `createApi({ baseUrl, getHeaders })` over native `fetch`, `api.get(path, { schema })` validates with Zod, `ApiError.kind` is `http`, `network`, `timeout` or `parse` - Env: Zod schema in `src/env.ts` (no `@t3-oss/env-nextjs` required) - Tests: Vitest, Testing Library, jsdom, MSW - Tooling: ESLint 10, Prettier 3, Husky, Knip, Commitlint - Agent: ViraStack AI v2 writes `.claude/rules/virastack/`, `.cursor/rules/virastack/`, an `AGENTS.md` block and `.virastack/ai.json` (see https://virastack.com/ai/llms-full.txt) - Intentionally omitted by default: Auth, DB/ORM, CSP ### Tests - `vitest.config.ts` and `src/test/`: jsdom setup, a `renderWithProviders` helper and an MSW server that fails on unhandled requests - Example test in `features/home`: a helper. `virastack add users` adds a helper, an API function with MSW and a component ### Architecture for agents - Feature-based: default work under `src/features/[feature]/` - No cross-feature imports; promote to `src/` only when a second feature needs it - Shared constants live in `src/constants/` - One alias: `@/*`. No barrels: import from the defining file. Shared folders must not import features or routes - Scaffold includes a deletable start page in `features/home`, remove it when building the real app - Search codebase for `FIXME:` after scaffold (site config, remote images, etc.) ### Formatting `.prettierignore` lists the AI rule files and skills, so `pnpm lint:ci` does not reformat files that ViraStack AI tracks by hash. ## Modules `npx virastack@latest add ` installs a working feature into `src/features/` of a project created with Start 2.0 or newer: `users`, `checkout-address`, `checkout-card`. Modules run on a dummy API or dummy data; connecting a real API is the installer's work. - It adds missing packages and `components/ui` components, and merges messages into `src/messages` in i18n templates. If a file or message already exists, nothing changes. - It creates no page. Render the component from your own route. Each module's page at `https://virastack.com/start/features/` has a live preview, its code for all four templates and a prompt that adds it to a page. - Features cannot import each other, so a page such as `/checkout` renders `CheckoutAddress` and `CheckoutCard` and reads `useCheckoutAddress` and `useCheckoutCard`. - `npx virastack@latest remove ` deletes its files, empty folders and messages. Packages and your page stay. Docs: https://virastack.com/start/docs/modules ## Scripts - Day-to-day: `pnpm dev`, `pnpm build`, `pnpm start` - Quality: `pnpm typecheck`, `pnpm lint` / `lint:ci`, `pnpm knip`, `pnpm format` - Tests: `pnpm test` (once), `pnpm test:watch` - CI order: `typecheck → lint:ci → knip → test → build` ## Related products - AI: https://virastack.com/ai/llms-full.txt - Mask: https://virastack.com/mask/llms-full.txt - Password: https://virastack.com/password/llms-full.txt - Address: https://virastack.com/address/llms-full.txt - Ecosystem: https://virastack.com/llms.txt