Skip to main content
These commands require you to be signed in.

Download

Download all files from an asset’s latest content into a local directory. Partial downloads resume automatically.
dataerai download --asset <ASSET_UUID> --output ./my-data
FlagDescription
--assetAsset UUID to download (required).
--outputDirectory to write files into (default: current directory).
--serverOverride the server (defaults to the one stored at login).

Upload

Create or update an asset from a local file and a JSON metadata file.
dataerai upload \
  --collection <COLLECTION_UUID> \
  --metadata meta.json \
  --file dataset.csv
FlagDescription
--collectionCollection UUID to place the asset in (required).
--metadataPath to a JSON metadata file (required).
--fileLocal file to upload (omit for a metadata-only placeholder).
--projectProject UUID (required if the metadata file doesn’t supply owner_id).
The metadata JSON file accepts:
{
  "title":       "My dataset",
  "description": "optional",
  "alias":       "my-dataset",
  "tags":        ["ml", "csv"],
  "metadata":    { "version": 1 },
  "owner_type":  "project",
  "owner_id":    "<project-uuid>"
}

Metadata

Read an asset’s metadata as JSON:
dataerai metadata get --asset <ASSET_UUID>
Update fields from a JSON patch file — only the fields you include change; the accepted fields are title, description, alias, tags, and metadata:
dataerai metadata set --asset <ASSET_UUID> patch.json
{
  "title": "Renamed dataset",
  "metadata": { "env": "prod" }
}

Next steps

Python SDK

Drive the same operations from Python.

Node SDK

Drive the same operations from Node.js.