Skip to content

createTurboClient

createTurboClient(opts): object

Defined in: index.ts:11

Creates a client for Turborepo’s Remote Cache (served by Vercel) with cache and token groups, sharing one REST client.

TurboClientOptions

object

cache: object

status: (team) => Promise<TurboCacheStatus>

GET /v8/artifacts/status for the team: whether Remote Caching is enabled, and whether the token is read-only.

string

Promise<TurboCacheStatus>

token: object

current: () => Promise<TurboTokenResponse>

GET /v5/user/tokens/current: when the token in use was made and when it stops working.

Promise<TurboTokenResponse>