Skip to content

Commit

Permalink
import-url/update: add --no-download/--check-url flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrifiro committed Jul 18, 2022
1 parent 73c8e88 commit e578b23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion content/docs/command-reference/import-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ etc.), and download it to the local project, or make a copy in

```usage
usage: dvc import-url [-h] [-q | -v] [-j <number>] [--file <filename>]
[--no-exec] [--to-remote] [-r <name>]
[--no-exec | --no-download] [--to-remote] [-r <name>]
[--desc <text>]
url [out]
Expand Down Expand Up @@ -140,6 +140,11 @@ produces a regular stage in `dvc.yaml`.
finish the operation(s)); or if the target data already exist locally and you
want to "DVCfy" this state of the project (see also `dvc commit`).

- `--no-download` - create the import `.dvc` with data checksums but without
downloading the associated data. This is useful if you need track changes in
remote data but do not (yet) need to download data to the local workspace.
Data can be later downloaded using `dvc update`.

- `--to-remote` - import a target, but neither move it into the workspace, nor
cache it. [Transfer it](#example-transfer-to-remote-storage) directly to
remote storage (the default one unless one is specified with `-r`) instead.
Expand Down
5 changes: 4 additions & 1 deletion content/docs/command-reference/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import `.dvc` files.
## Synopsis

```usage
usage: dvc update [-h] [-q | -v] [--rev <commit>] [-R] [--to-remote]
usage: dvc update [-h] [-q | -v] [--rev <commit>] [-R] [--no-download] [--to-remote]
[-r <name>] [-j <number>] targets [targets ...]
positional arguments:
Expand Down Expand Up @@ -50,6 +50,9 @@ $ dvc update --rev master
directory and its subdirectories for import `.dvc` files to inspect. If there
are no directories among the targets, this option has no effect.

- `--no-download` - Update checksums in `.dvc` without actually downloading the
associated data. Cannot be used with `--to-remote`.

- `--to-remote` - update a `.dvc` file created with `dvc import-url` without
downloading the latest data.
[Transfer it](/doc/command-reference/import-url#example-transfer-to-remote-storage)
Expand Down

0 comments on commit e578b23

Please sign in to comment.