> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Views

## Description

The getAllViews() function lists all available views.

​

## Syntax

Here is how to list all available views:

```sql theme={null}
const allViews = await MindsDB.Views.getAllViews();
console.log('all views:')
allViews.forEach(v => {
  console.log(v.name);
});
```
