docs-v2/content/shared/influxctl/database/list.md

26 lines
1.0 KiB
Markdown

The `influxctl database list` command lists all databases in an {{% product-name omit=" Clustered" %}}
cluster.
The `--format` flag lets you print the output in other formats.
The `json` format is available for programmatic parsing by other tooling.
Default: `table`.
## Usage
```sh
influxctl database list [--format=table|json]
```
## Flags
| Flag | | Description |
| :--- | :---------------- | :----------------------------------------------------------------------------- |
| | `--filter-status` | Only list databases with a specific status (`active` _(default)_ or `deleted`) |
| | `--format` | Output format (`table` _(default)_ or `json`) |
| `-h` | `--help` | Output command help |
{{% caption %}}
_Also see [`influxctl` global flags](/influxdb3/version/reference/cli/influxctl/#global-flags)._
{{% /caption %}}