# Install the Magento Extension

## Install using Composer

Use Composer to install the Digital River Extension for Magento.

1. Run the following Composer command in the root of Magento:\
   `composer require digitalriver/module-drpay`
2. Update Magento to execute the install and update scripts in the command line in the root of Magento by executing:\
   `bin/magento setup:upgrade`
3. In the Magento Admin panel click **System**, click **Cache Management**, and then click **Flush Cache Storage**.
4. Log out of Magento and then log back in.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/adobe-commerce-extension/2.1.1/install-the-magento-extension.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
