Export data
You can download machine data from cloud storage to your computer with the Viam CLI.
If you prefer to manage your data with SDK code, see the data client API documentation.
In this page
Prerequisites
Export data with the Viam CLI
To export your data from the cloud using the Viam CLI:
1. Filter the data you want to download
Navigate to the DATA page in the Viam app.
Use the filters on the left side of the page to filter only the data you wish to export.
2. Copy the export command from the DATA page
In the upper right corner of the DATA page, click the Export button.
Click Copy export command. This copies the command, including your org ID and the filters you selected, to your clipboard.
3. Run the command
Run the copied command in a terminal:
viam data export --org-ids=<org-id> --data-type=<binary|tabular> --mime-types=<mime types> --destination=.
This command uses the Viam CLI to download the data onto your computer based on the search criteria you select in the Viam app.
By default, the command creates two new directories named data
and metadata
in the current directory and downloads the specified data into the data
folder and metadata, like bounding box information and labels, in JSON format into the metadata
folder.
If you want to store the data in a different location, change the specified folder with the --destination
flag.
Once the command has finished running and downloading the data, you can view and use the data locally.
Since data is downloaded in parallel, the order is not guaranteed. Sort your folder by filename in order to see them in chronological order.
You can see more information about exporting data in the Viam CLI documentation.
Next steps
Other how-to guides for using and querying data include:
Have questions, or want to meet other people working on robots? Join our Community Discord.
If you notice any issues with the documentation, feel free to file an issue or edit this file.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!