> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-es/scenes-sdk7/libraries/manage-dependencies.md).

# Gestionar dependencias

Cómo añadir librerías a una escena

Muchas veces, tu Scene puede necesitar funcionalidades que ya están encapsuladas en una Library reutilizable. Usar Libraries externas puede facilitar mucho tu trabajo.

Puedes importar Libraries externas en un proyecto de Decentraland y luego hacer referencia a los Systems, Components o Functions descritos en ellas.

Consulta la [página de Examples](https://studios.decentraland.org/resources?sdk_version=SDK7\&resource_type=Library) para encontrar una serie de Libraries, creadas tanto por la Decentraland Foundation como por miembros de la comunidad, que resuelven problemas comunes.

## Mediante la CLI

### Instalar

Para instalar una Library en la carpeta de tu proyecto, ejecuta `npm i` y el nombre de la Library en la ruta raíz de tu proyecto. Por ejemplo:

`npm i @dcl-sdk/utils`

> **📔 Nota**: Es posible que tengas que ejecutar `npm run start` o `npm run build` después de instalar la Library para que se instalen sus dependencias.

### Actualizar

Si tu archivo `package.json` indica que la versión de la Library es `@latest`, ejecuta `npm i` para actualizar todas las Libraries a sus respectivas versiones más recientes.

Si tu archivo `package.json` hace referencia a un número de versión específico, puedes actualizarlo ejecutando el comando para instalar la Library y añadiendo `@` y el número de versión al final. Por ejemplo:

`npm i @dcl-sdk/utils@1.7.5`

### Desinstalar

Para eliminar una Library de las dependencias de tu Scene, ejecuta `npm rm` y el nombre de la Library. Por ejemplo:

`npm rm @dcl-sdk/utils`

Es una buena práctica eliminar las Libraries que no estés usando. Las Libraries sin usar siguen ocupando espacio en la Scene y afectan la experiencia de los jugadores al descargarla y ejecutarla.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-es/scenes-sdk7/libraries/manage-dependencies.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
