---
url: /reference/cli/kvs-list.md
---

# kvs list

列出当前应用的 KVS 键值数据

## 使用

```
Usage: nexus kvs list [options]
```

## 选项

```
-v, --verbose                    enable verbose mode
-e, --environment <environment>  specify the environment (see your default environment by running nexus settings list)
-s, --siteUrl <siteUrl>          specify the site URL (see your default site by running nexus settings list)
-k, --keyword <keyword>          specify the keyword to filter by
-l, --limit <limit>              specify the number of keys to show (default: 25)
--order <order>                  specify the sort order (asc or desc, default: desc)
--non-interactive                run the command without input prompts
-h, --help                       display help for command
```

## 示例

列出 KVS 数据

```
nexus kvs list
```

指定环境和站点列出 KVS 数据

```
nexus kvs list -e development -s example.pingcode.com
```

指定关键字过滤并限制返回数量

```
nexus kvs list -e development -s example.pingcode.com -k ui -l 10
```

指定排列顺序

```
nexus kvs list -e development -s example.pingcode.com --order asc
```
