---
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:125](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/skills/github.ts#L125)

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

## Returns

`string`
