# Adding variables to ionic-deeplinks-plugin using NPM

**URL:** <https://forum.ionicframework.com/t/adding-variables-to-ionic-deeplinks-plugin-using-npm/204553>\
**Category:** Ionic Framework\
**Created:** [February 10, 2021, 5:01pm UTC](https://forum.ionicframework.com/t/adding-variables-to-ionic-deeplinks-plugin-using-npm/204553 "2021-02-10T17:01:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tusksoft](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tusksoft](https://forum.ionicframework.com/u/tusksoft)\
**Post date:** [February 10, 2021, 5:01pm UTC](https://forum.ionicframework.com/t/adding-variables-to-ionic-deeplinks-plugin-using-npm/204553/1 "2021-02-10T17:01:33Z")

</div>

Hello,

I’m currently implementing deeplinks into our app using [Simon Grimm’s wonderful tutorial](https://devdactic.com/universal-links-ionic/). However, I’m having trouble setting the`URL_SCHEME`, `DEEPLINK_SCHEME`, and `DEEPLINK_HOST`. The tutorial recommends adding via cordova cli, but our project is using capacitor.

When I try to run `npm i ionic-deeplinks-plugin --variable URL_SCHEME={scheme} --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST={host}`, I get the following npm error:

```auto
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "URL_SCHEME={scheme}": Tags may not have any characters that encodeURIComponent encodes.

```

I have tried updating npm to most recent (7.5.3), and still receive this error. Is there another way to set these variables using npm? Or, failing that, can I set these variables manually elsewhere?

Thanks!

---

<div class="post-metadata">

**Author:** ![tusksoft](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tusksoft](https://forum.ionicframework.com/u/tusksoft)\
**Post date:** [March 4, 2021, 8:14pm UTC](https://forum.ionicframework.com/t/adding-variables-to-ionic-deeplinks-plugin-using-npm/204553/2 "2021-03-04T20:14:11Z")

</div>

So it turns out Capacitor [does not support CLI config variables](https://capacitorjs.com/docs/cordova/using-cordova-plugins).

Our solution to this problem was to use [Capacitor Deeplinks](https://capacitorjs.com/docs/guides/deep-links), which is considerably simpler than Cordova.
