---
url: /process-functions/cube-save.md
description: Saves a cube's data to disk straight away.
---

# cube.save

Saves a cube's data to disk straight away.

The server saves cubes on its own, so you don't normally need this. You can use it at the end of a large data load to have the result on disk without waiting for the next save. Saving a large cube can take a while.

```js
cube.save(cubeName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `cubeName` | `string` | The cube's name or id. |

## Returns

`true` when it succeeds, or `false` when the cube can't be found.

## Examples

```js
cube.save("Sales");
```
