Skip to content

Commit

Permalink
adapt example to upload move
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed May 22, 2024
1 parent d8399ac commit 1d3cd1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/create-upload-publish/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ This command uploads the file `data.csv` to the dataset created in the previous
persistent_id=$(jq -r '.persistentId' dataset_output.json)

# Upload the file to the dataset
dvcli file upload files/data.csv --id $persistent_id --body file.json
dvcli dataset upload files/data.csv --id $persistent_id --body file.json
```

```bash
Expand Down
2 changes: 1 addition & 1 deletion examples/create-upload-publish/workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dvcli dataset create --collection $alias --body dataset.json >> dataset_output.j

# Get the persistent ID of the dataset and upload a file
persistent_id=$(jq -r '.persistentId' dataset_output.json)
dvcli file upload files/data.csv \
dvcli dataset upload files/data.csv \
--id $persistent_id \
--body file.json

Expand Down

0 comments on commit 1d3cd1b

Please sign in to comment.