# Link a theme

## `yarn run link <path>` or `npm run link <path>`

Sets ScandiPWA as a Magento Theme from your specified folder.

{% hint style="warning" %}

### Heads up!

Please follow [this guide](/usage-guide/themes.md) for linking ScandiPWA theme to your Magento App.
{% endhint %}

{% hint style="danger" %}
Since **magento-scripts** version 2 to link a theme it must be located within Magento project!
{% endhint %}

### Command options

#### `-v, --verbose`

{% hint style="info" %}
Since **magento-scripts\@1.9.0**
{% endhint %}

This option will enable printing of logs from linking a theme.

```bash
yarn run link ./path/to/scandipwa --verbose # for Yarn
npm run link ./path/to/scandipwa -- --verbose # for NPM
```

## Usage example

```bash
yarn run link ./path/to/scandipwa # for Yarn
npm run link ./path/to/scandipwa # for NPM
```


---

# 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.create-magento-app.com/getting-started/available-commands/link.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.
