From 9d3001634ef3e2b2aade7f379f4c6ef11784cae8 Mon Sep 17 00:00:00 2001 From: Matt Pocock Date: Mon, 13 Dec 2021 12:30:32 +0000 Subject: [PATCH 1/2] Added explanation for where to acquire a turbo token --- docs/pages/docs/reference/command-line-reference.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/pages/docs/reference/command-line-reference.mdx b/docs/pages/docs/reference/command-line-reference.mdx index b8decf38c4bee..dccfc4ac4011b 100644 --- a/docs/pages/docs/reference/command-line-reference.mdx +++ b/docs/pages/docs/reference/command-line-reference.mdx @@ -230,6 +230,8 @@ turbo run build --team=my-team --token=xxxxxxxxxxxxxxxxx You can also set the value of the current token by setting an environment variable named `TURBO_TOKEN`. The flag will take precedence over the environment variable if both are present. +> If you're using remote caching on Vercel, you can use a Vercel Personal Access Token as your bearer token. + #### `--team` The slug of the remote cache team. Useful for running in non-interactive shells in combination with `--token` and `--team` flags. From c3bd735bc03d97dfd58eaff6d7d2bbc1a2a880a7 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Mon, 13 Dec 2021 08:44:07 -0500 Subject: [PATCH 2/2] Update docs/pages/docs/reference/command-line-reference.mdx --- docs/pages/docs/reference/command-line-reference.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/docs/reference/command-line-reference.mdx b/docs/pages/docs/reference/command-line-reference.mdx index dccfc4ac4011b..adaa19b022906 100644 --- a/docs/pages/docs/reference/command-line-reference.mdx +++ b/docs/pages/docs/reference/command-line-reference.mdx @@ -230,7 +230,7 @@ turbo run build --team=my-team --token=xxxxxxxxxxxxxxxxx You can also set the value of the current token by setting an environment variable named `TURBO_TOKEN`. The flag will take precedence over the environment variable if both are present. -> If you're using remote caching on Vercel, you can use a Vercel Personal Access Token as your bearer token. +If you're using Remote Caching on Vercel, and your building your project on Vercel, this environment variable and flag are not needed because they are automatically set for you. If you’re using Remote Caching on Vercel, but building in another CI provider like CircleCI or GitHub Actions, you can use a Vercel Personal Access Token as your `—token` or `TURBO_TOKEN`. If you are using a custom Remote Cache, this value will be used to send an HTTP Bearer token with requests to your custom Remote Cache. #### `--team`