Export Data
First, install the Viam CLI and authenticate.
go install go.viam.com/rdk/cli/viam@latest
viam auth
To export data from the Data Management Service in the cloud:
Navigate to the DATA page in the Viam app.
Below the SEARCH button in the Filtering panel, click Copy Export Command to copy the export command to the clipboard.
Run the copied command in a terminal:
go run go.viam.com/rdk/cli/viam data export --org_ids=<org_id> --data_type=binary --mime_types=<mime_types> --destination=.
This command uses the Viam CLI to download the data locally onto your computer based on the search criteria you select in the Viam app.
By default, the command creates a new directory named
data
in the current directory and downloads the specified data. 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
For a comprehensive tutorial on data management, see Intro to Data Management.
Have questions, or want to meet other people working on robots? Join our Community Discord.
Was this page helpful?
Glad to hear it! If there is anything we could be doing better, please create an issue.
We're sorry about that. If you'd like to talk to us for help, please join the Community Discord. To ensure we know what's wrong with this page, you can also open an issue.