Skip to content

get: show url to cache #2994

@dmpetrov

Description

@dmpetrov

In some cases, users need a direct link to a data file in the cloud. It might be just a matter of convenience or when DVC is used from automation tools like CD4ML scenarios. We need to provide a way to get a direct link.

I suggest creating a new command dvc resolve. Other options can be also be considered. For example, it might be a part of dvc status (when it start supporting data files as argument).

$ dvc resolve file.txt df.csv
file.txt s3://dvc-temp/dataset1/2d10f00a05f1fe70eaa3c42aa9f44b95
df.csv s3://dvc-temp/dataset1/99370a5386cac00c93c9fdc836076a7d

It should support revisions (checksum, tag, branch or HEAD^^):

$ dvc resolve file.txt df.csv --rev ada9d973
file.txt s3://dvc-temp/dataset1/d30abac6950583e6a5f1dcd31cb1043b
df.csv gs://project42/cache/2290babda371e52eeca2a2065a358783

Note, the commands with revision options should resolve old remotes as well (see s3:// and gs:// above).

Metadata

Metadata

Assignees

Labels

discussionrequires active participation to reach a conclusionfeature requestRequesting a new featurep2-mediumMedium priority, should be done, but less importantproduct: VSCodeIntegration with VSCode extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions