使用 JFrog CLI 下载文件到当前目录

Download file to current directory using the JFrog CLI

当我做的时候

jfrog rt dl a/b/c.zip

我希望 c.zip 位于当前目录中,但不知为何它被写入了 a/b/c.zip。如何强制 CLI 将其下载到当前目录?

--flat 选项就是您要找的。

来自documentation

[Default: false]

If true, artifacts are downloaded to the exact target path specified and their hierarchy in the source repository is ignored.

If false, artifacts are downloaded to the target path in the file system while maintaining their hierarchy in the source repository.