Skip to main content

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​

ParameterRequiredDescriptionDefault
<pattern>YesFile name pattern, wildcards supported—
--dir <dir>NoSearch directoryRoot directory
--type <ext>NoFile type, for example jpg, png, pdf—
--regexNoTreat pattern as a regular expressionfalse
-e, --env-id <envId>NoEnvironment 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