---
url: /process-functions/cube-list.md
description: Lists every cube in the model.
---

# cube.list

Lists every cube in the model.

```js
cube.list()
```

## Returns

The cubes as a JSON string, read with `JSON.parse()`. Each cube has an `id` and `name`.

## Examples

::: code-group

```js [list.js]
const cubes = JSON.parse(cube.list());
```

```json [Result]
[
    { "id": "c-1a2b3c", "name": "Finance" },
    { "id": "c-4d5e6f", "name": "Sales" }
]
```

:::
