跳到主要内容

tcb storage search

按文件名模式搜索云端文件。

v3.0.0+

tcb storage search 自 v3.0.0 起提供。

语法​

tcb storage search <pattern> [options]

参数​

参数必填说明默认值
<pattern>是文件名模式,支持通配符—
--dir <dir>否搜索目录根目录
--type <ext>否文件类型,如 jpg、png、pdf—
--regex否将 pattern 作为正则表达式处理false
-e, --env-id <envId>否环境 ID—

模式用引号包裹,避免 Shell 提前展开通配符。

示例​

tcb storage search '*.jpg'
tcb storage search '*' --dir images/ --type png
tcb storage search '^photo.*\.jpg$' --regex