tcb storage search
Search cloud files by file name pattern.
v3.0.0+
tcb storage search has been available since v3.0.0.
Usage
tcb storage search <pattern> [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
<pattern> | Yes | File name pattern, wildcards supported | — |
--dir <dir> | No | Search directory | Root directory |
--type <ext> | No | File type, for example jpg, png, pdf | — |
--regex | No | Treat pattern as a regular expression | false |
-e, --env-id <envId> | No | Environment ID | — |
Quote the pattern so the shell does not expand the wildcards first.
Examples
tcb storage search '*.jpg'
tcb storage search '*' --dir images/ --type png
tcb storage search '^photo.*\.jpg$' --regex