my-turborepo/
Pick any file or folder on the left to see what it is, why it exists, when you add it and the mistakes people make with it. Switch the stage to watch the project grow.
# Create the monorepo from the basic starter with pnpm
npx create-turbo@latest my-turborepo -m pnpm# Run every app in dev mode (web on 3000, docs on 3001)
cd my-turborepo && pnpm dev# Install the turbo CLI globally so you can type turbo instead of pnpm turbo
pnpm add -g turbo# Add a new internal package from a generator
turbo gen workspace --name @repo/validators# Add a dependency to one package only
pnpm add zod --filter @repo/validators# Connect the remote cache (Vercel or self-hosted)
turbo login && turbo link# Run only what a change affects, as CI does
turbo run lint check-types test build --affected# Make a pruned copy of one app for its Docker image
turbo prune web --docker# Add Changesets when packages are published
pnpm add -Dw @changesets/cli && pnpm changeset init