Turborepo

create-turbo

The easiest way to get started with Turborepo is by using create-turbo. Use this CLI tool to quickly start building a new monorepo, with everything set up for you.

Terminal
npx create-turbo@latest

Start with an example

The community curates a set of examples to showcase ways to use common tools and libraries with Turborepo. To bootstrap your monorepo with one of the examples, use the --example flag:

Terminal
npx create-turbo@latest --example [example-name]

Use any of the example's names below:

NameDescription
basicMinimal Turborepo example for learning the fundamentals.
design-systemUnify your site's look and feel by sharing a design system across multiple apps.
kitchen-sinkWant to see a more in-depth example? Includes multiple frameworks, both frontend and backend.
non-monorepoExample of using Turborepo in a single project without workspaces
with-changesetsSimple Next.js monorepo preconfigured to publish packages via Changesets
with-dockerMonorepo with an Express API and a Next.js App deployed with Docker utilizing turbo prune
with-gatsbyMonorepo with a Gatsby.js and a Next.js app both sharing a UI Library
with-prismaMonorepo with a Next.js App fully configured with Prisma
with-react-native-webSimple React Native & Next.js monorepo with a shared UI library
with-rollupMonorepo with a single Next.js app sharing a UI library bundled with Rollup
with-svelteMonorepo with multiple SvelteKit apps sharing a UI Library
with-tailwindMonorepo with multiple Next.js apps sharing a UI Library all using Tailwind CSS with a shared config
with-viteMonorepo with multiple Vanilla JS apps bundled with Vite, sharing a UI Library
with-vue-nuxtMonorepo with Vue and Nuxt, sharing a UI Library

Options

Terminal
-m, --package-manager to use (choices: "npm", "yarn", "pnpm", "bun")

--skip-install: Do not run a package manager install after creating the project (Default: false)

--skip-transforms: Do not run any code transformation after creating the project (Default: false)

--turbo-version <version>: Use a specific version of turbo (default: latest)

-e, --example [name]|[github-url]: An example to bootstrap the app with. You can use an example name from the official Turborepo repo or a GitHub URL. The URL can use any branch and/or subdirectory

-p, --example-path <path-to-example>: In a rare case, your GitHub URL might contain a branch name with a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar). In this case, you must specify the path to the example separately: --example-path foo/bar

-v, --version:  Output the current version

-h, --help: Display help for command

hours

Total Compute Saved
Get started with
Remote Caching →

On this page