Metadata-Version: 2.1
Name: ketacli
Version: 0.11
Summary: KetaDB Client
Home-page: https://xishuhq.com
Author: lvheyang
Author-email: cuiwenzheng@ymail.com
License: MIT
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: prettytable
Requires-Dist: pyyaml
Requires-Dist: mando
Requires-Dist: argcomplete

# ketadb 工具

## 示例

```shell
ketacli login --name <username> --endpoint http://localhost:9000 --token <yourtoken>

ketacli logout

# 枚举所有仪表盘
ketacli list dashboard --fields id,app,updateTime --sort updateTime --order asc --prefix test 

# 描述资源的字段
ketacli describe dashboard 

# 插入一条数据

ketacli insert --repo test01 '[{"a":1}]'

# 查询一条数据

ketacli search 'repo=test01 | limit 10' 

# 指定返回格式，支持json、csv、html、latex等

ketacli search 'repo=test01 | limit 10' --format json

#  创建一个资源

ketacli create repos test_repo --file file.json
```

## 自动补全

在你的 .bashrc / .zshrc 中加入以下语句

```shell
#zshrc 中不存在的话也需要添加
autoload -U +X bashcompinit && bashcompinit

eval "$(register-python-argcomplete ketacli)"
```
