# 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](https://docs.create-magento-app.com/usage-guide/themes) 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
```
