Skip to main content

tcb storage upload

Upload a local file or folder to classic mode cloud storage. When localPath is a folder, every file inside it is uploaded.

Usage​

tcb storage upload <localPath> <cloudPath>

Parameters​

ParameterRequiredDescriptionDefault
<localPath>YesLocal file or folder path, for example ./index.js, ./images—
<cloudPath>YesTarget path relative to the storage root, for example index.js, images/photo.jpg—
--times <count>NoRetry count, 0 to 101
--interval <ms>NoRetry interval in milliseconds500

Cloud paths always use / as the separator; local paths use the separator of the operating system. A leading / means an absolute path from the root, anything else is a relative path.

Examples​

tcb storage upload ./photo.jpg images/photo.jpg
tcb storage upload ./images images --times 3 --interval 1000