# IONIC AppFlow

**URL:** <https://forum.ionicframework.com/t/ionic-appflow/170147>\
**Category:** Appflow\
**Created:** [August 1, 2019, 5:18am UTC](https://forum.ionicframework.com/t/ionic-appflow/170147 "2019-08-01T05:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigzane](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bigzane](https://forum.ionicframework.com/u/bigzane)\
**Post date:** [August 1, 2019, 5:18am UTC](https://forum.ionicframework.com/t/ionic-appflow/170147/1 "2019-08-01T05:18:14Z")

</div>

When i run the below command i am getting “Unable to find command: deploy add” error in terminal.

Command : ionic deploy add --app-id=“51c98ce5” --channel-name=“Production” --update-method=“background”

Anyone can help me setup my app to deploy using IONIC Appflow? I have already connected my GitHub repository to app flow

---

<div class="post-metadata">

**Author:** ![Calll](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@Calll](https://forum.ionicframework.com/u/Calll)\
**Post date:** [August 1, 2019, 4:48pm UTC](https://forum.ionicframework.com/t/ionic-appflow/170147/2 "2019-08-01T16:48:44Z")

</div>

Did you copy and paste that straight from appflow? If so - I had to paste it into a notepad first, delete some spaces and copy and paste it from there into the command line before it worked.

---

<div class="post-metadata">

**Author:** ![ishaquemujtaba](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ishaquemujtaba/32/125667_2.png) [@ishaquemujtaba](https://forum.ionicframework.com/u/ishaquemujtaba)\
**Post date:** [August 2, 2019, 1:29pm UTC](https://forum.ionicframework.com/t/ionic-appflow/170147/3 "2019-08-02T13:29:04Z")

</div>

first run **npm install** and try to use use commands again

---

<div class="post-metadata">

**Author:** ![jezzapower](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jezzapower](https://forum.ionicframework.com/u/jezzapower)\
**Post date:** [November 8, 2019, 6:40am UTC](https://forum.ionicframework.com/t/ionic-appflow/170147/4 "2019-11-08T06:40:08Z")

</div>

A little bit of trial and error and using [https://ionicframework.com/docs/appflow/deploy/api#plugin-variables](https://ionicframework.com/docs/appflow/deploy/api#plugin-variables), I got to the setup below and it worked.

ionic cordova plugin add cordova-plugin-ionic   
–variable APP\_ID=12345   
–variable CHANNEL\_NAME=Master  
–variable UPDATE\_METHOD=background
