2023-10-03 13:30:44 +02:00
# Edit a Dataset ✏️
2023-10-03 13:10:54 +02:00
To make changes to a dataset, you'll need to start by retrieving the asset's [Decentralized Data Object ](../ddo-specification.md ) (DDO).
## Retrieve DDO
Obtaining the DDO of an asset is a straightforward process. You can accomplish this task by executing the following command:
```bash
npm run cli getDDO 'assetDID'
```
2023-10-03 13:18:40 +02:00
< figure > < img src = "../../.gitbook/assets/cli/getAsset.png" alt = "" > < figcaption > Retrieve DDO< / figcaption > < / figure >
2023-10-03 13:10:54 +02:00
2023-10-03 13:18:40 +02:00
## Edit the Dataset
After retrieving the asset's DDO and saving it as a JSON file, you can proceed to edit the metadata as needed. Once you've made the necessary changes, you can utilize the following command to apply the updated metadata:
2023-10-03 13:10:54 +02:00
```bash
npm run cli editAsset 'DATASET_DID' 'PATH_TO_UPDATED_FILE`
```