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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
cache:
object
cache.status
Section titled “cache.status”status: (
team) =>Promise<TurboCacheStatus>
GET /v8/artifacts/status for the team: whether Remote Caching is enabled, and whether the token is read-only.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<TurboCacheStatus>
token:
object
token.current
Section titled “token.current”current: () =>
Promise<TurboTokenResponse>
GET /v5/user/tokens/current: when the token in use was made and when it stops working.
Returns
Section titled “Returns”Promise<TurboTokenResponse>