# Edit

To make changes to a dataset, you'll need to start by retrieving the asset's [Decentralized Data Object](https://docs.oceanprotocol.com/developers/ddo-specification) (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'
```

<figure><img src="https://932814818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzQlpIJEeu8x5yl0OLuXn%2Fuploads%2Fgit-blob-82d25accea6c2e302c9bb7fe260ddb0a5b08e097%2FgetAsset.png?alt=media" alt=""><figcaption><p>Retrieve DDO</p></figcaption></figure>

## 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:

```bash
npm run cli editAsset 'DATASET_DID' 'PATH_TO_UPDATED_FILE`

```
