You need to enable JavaScript to run this app.
文档中心
向量数据库VikingDB

向量数据库VikingDB

复制全文
下载 pdf
文件系统
write-更新资源
复制全文
下载 pdf
write-更新资源

命令说明

更新已有资源的文本内容。

语法

ov write <uri> (--content <text>|--from-file <path>) [options]

参数说明

参数

必填

说明

默认值

<uri>

已存在的资源 URI

常用选项

参数

必填

说明

默认值

--content <text>

二选一

行内替换内容

--from-file <path>

二选一

从本地文件读取替换内容

--append

追加而不是替换

--wait

等待异步处理完成

高级选项

参数

必填

说明

默认值

--mode <replace|append|create>

显式指定写入模式

replace

使用示例

1. 用行内文本替换文件

ov write viking://notes/todo.md --content "Ship config UX"

2. 从本地文件写入并等待处理

ov write viking://notes/todo.md --from-file ./todo.md --wait

下一步

写入后,可以确认更新:

# 确认更新后的内容
ov read <uri>

# 如果没有使用 --wait,可以查看处理状态
ov task list
最近更新时间:2026.06.10 16:56:49
这个页面对您有帮助吗?
有用
有用
无用
无用