Lists every cube in the model.
cube.list()
The cubes as a JSON string, read with JSON.parse(). Each cube has an id and name.
JSON.parse()
id
name
const cubes = JSON.parse(cube.list());
[ { "id": "c-1a2b3c", "name": "Finance" }, { "id": "c-4d5e6f", "name": "Sales" } ]