---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [skills](../index.md) / getCacheDir

# Function: getCacheDir()

> **getCacheDir**(): `string`

Defined in: [packages/b2c-tooling-sdk/src/skills/github.ts:132](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/skills/github.ts#L132)

Get the cache directory for skills.
Uses XDG_CACHE_HOME on Linux, ~/.cache otherwise.

## Returns

`string`
