ti fs move-file
移动或重命名远程路径。该命令的别名是 ti fs mv。
语法
ti fs move-file
--from-remote <string>
--to-remote <string>
[--dry-run]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--overwrite]
[--version]
选项
--from-remote <string>:源文件路径。[必需]--to-remote <string>:目标文件路径。[必需]--dry-run:验证请求,但不应用更改。--file-system-id <string>:选择文件系统。你也可以设置TI_FS_FILE_SYSTEM_ID。--fs-token <string>:设置 Filesystem 访问令牌。如果省略,命令会使用TI_FS_TOKEN环境变量。如果两者都未提供,命令会使用为所选 Filesystem 在本地存储的令牌。--help:显示帮助信息。--overwrite:替换已存在的目标文件。--version:显示版本信息。
有关所有命令共享的选项,请参见全局选项。
示例
移动远程文件:
# Rename or relocate an object entirely within the selected Filesystem. ti fs move-file --file-system-id <file-system-id> --from-remote /draft.md --to-remote /reports/final.md