AI开发平台MODELARTS-使用Gallery CLI配置工具上传文件:命令说明

时间:2024-04-11 20:22:42

命令说明

登录Gallery CLI配置工具后,使用命令“gallery-cli upload --help”可以获取Gallery CLI配置工具上传文件的帮助信息。

gallery-cli upload --help

获得命令“gallery-cli upload”可用选项的完整列表如下所示。

 Usage: gallery-cli upload [OPTIONS] REPO_ID [LOCAL_PATH] [PATH_IN_REPO]

 Upload File

╭─ Arguments ────────────────────────────────────────────────────────────────────────│ *    repo_id           TEXT            ID of the repo to upload to (e.g. `username/repo-name`) [required]                                                         ││      local_path        [LOCAL_PATH]    Directory upload to repo [default: ./]                                                                                     ││      path_in_repo      [PATH_IN_REPO]  The repo path you want to upload (e.g. `dir1/dir2`)                                                                        │╰─────────────────────────────────────────────────────────────────────╯
╭─Options──────────────────────────────────────────────────────────────────╮│|  --include        TEXT  Glob patterns to match files to download.                                                                                                  ││ --exclude        TEXT  Glob patterns to exclude from files to download.                                                                                           ││ --help                 Show this message and exit.                                                                                                                │╰─────────────────────────────────────────────────────────────────────╯
具体支持如下使用场景:
  • 上传单个文件
  • 上传多个文件
  • 上传单个文件到指定仓库目录
  • 上传整个文件夹
support.huaweicloud.com/aimarket-modelarts/ma_gallery_0056.html