Upgrading to Turborepo v1.x
Turborepo has been acquired by Vercel! With this announcement, Vercel is open sourcing the
turbo CLI and offering Remote Caching for free on all accounts during the transition period.
Existing Turborepo customers should upgrade their
turbo CLI to v1.x as soon as possible and migrate to Vercel (instructions below). Earlier versions of
turbo CLI prior to 1.x will no longer be maintained going forward. New account creation on beta.turborepo.com has been disabled. The beta.turborepo.com dashboard and remote caching service will be shutdown on January 15th, 2022 and older versions will not be installable.
All existing Remote Cache artifacts will also be deleted at this time.
Below is a step-by-step migration guide for existing Turborepo users. If you get stuck, please reach out in the community Discord or file an issue on GitHub. Thank you again for your continued support as we begin this awesome new chapter of Turborepo together.
For good hygiene, ensure you logout of
turbo to remove old credentials:
yarn turbo logout
If it exists, also delete the
.turbo directory from the root of your monorepo:
rm -rf .turbo
Install the latest version version of
yarn add turbo -W --dev
As mentioned, Turborepo now provides zero-config Remote Caching through Vercel. Remote Caching is free for all Vercel plans during this transition period. Each Vercel account has a shared Remote Cache. This cache is shared across all environments (Development, Preview, and Production).
Important: turborepo.com allowed multiple caches (i.e. projects) per team (denoted through
--project flag). With v1.x caching on Vercel, each Vercel account (user or team) has a single shared Remote Cache. If you were actively using multiple turborepo.com projects for your team, please let us know in Discord.
Please note that we are not migrating cache artifacts to Vercel. We apologize for the slower builds during your migration as you rehydrate your remote cache on Vercel or custom cache infra.
If you were using Remote Caching for local development, upgrading will take a minute or two. To get started, login to the Vercel CLI:
npx vercel login
Now we can set up Remote Caching through Vercel by running:
npx turbo link
Follow the prompts and select the Vercel account (user or team) to wish to connect to.
If you already used Turborepo and Vercel together, you should remove
TURBO_PROJECTenvironment variables from all projects. These are now automatically set on your behalf by Vercel.
Remove the usage of
--projectCLI flags in your Vercel project settings and/or
- Replace your turborepo.com personal access token with a new Vercel personal access token and update
TURBO_TOKENenvironment variable or equivalent usage of the
TURBO_PROJECTenvironment variable and remove all usage of the
--projectCLI flag. This has been deprecated.
- Update the value of the
TURBO_TEAMenvironment variable and
--teamCLI flag to be your Vercel account slug (i.e.