跳到主要内容

Dataset Commands: dataset

Commands

CommandUsageDescription
listbohr dataset list [flags]List and filter datasets
getbohr dataset get <id>Get dataset details
versionsbohr dataset versions <id>List dataset versions
createbohr dataset create [flags]Create a dataset and upload local data
downloadbohr dataset download <dataset-id> [flags]Download a version with resume support
deletebohr dataset delete <datasetId>...Delete datasets

List and inspect

bohr dataset list -n 10
bohr dataset list --projectId 123 --title training -o json
bohr dataset get 456
bohr dataset versions 456

--projectId has no -p shorthand. Use -n, --number to control the number of rows and -t, --title to search by title.

Create and upload

bohr dataset create \
--name training-data \
--path training-data \
--pid 123 \
--lp ./data \
--comment "Training inputs"

The local path flag is -l, --lp; it accepts one local path. If an upload is interrupted, rerun with --resume. Adjust parallel uploads with --upload-concurrency (default 5).

Download

bohr dataset download 456 --version-id 789 --dest ./training-data.zip

The command supports resumable downloads. --force allows replacement of an existing destination or partial file, so use it carefully.

Delete

bohr dataset delete 456 457

Deletion is destructive and requires confirmation. Preview with --dry-run when automating.