ionic-cli: Sorry! The configured backend (pro) does not know about ionic upload.

Description: I’m not able to upload a build to my pro deploy instance.

Steps to Reproduce:

  1. Login to your account with the ionic CLI : ionic login
  2. Add your SSH key
  3. Run ionic upload --note="Test Deploy"
  4. 💥

Output:

ionic upload --note="Test Deploy" 

[ERROR] Sorry! The configured backend (pro) does not know about ionic upload.

My ionic info:

cli packages: (/Users/hugo/dev/ourco/mobile/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.4.0 ios_bk 4.4.0
    Ionic Framework    : ionic-angular 3.4.2-201707210037

System:

    Android SDK Tools : 26.0.2
    ios-deploy        : 1.9.1
    Node              : v7.10.1
    npm               : 4.2.0
    OS                : macOS Sierra
    Xcode             : Xcode 8.3.3 Build version 8E3004b

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 40 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Ok so I found out a solution, type :

ionic config set -g backend legacy

to get back to the cloud backend and be able to use the ionic upload command. If you want to go back to the pro version just type :

ionic config -set backend pro

@aleksvidak Here’s what worked for us :

ionic link --pro-id abc45678 
(Y) --> Choose YES to regenerate SSH keys
git remote add ionic git@git.ionicjs.com:ORGANIZATION-NAME/app-name.git
git add .
git commit -m "initial commit"
git push ionic master

@patwaswapnil The upload service is still up but you need to use the old backed. You juste have to push to ionic as stated on the pro dashboard:

1. Install the latest Ionic CLI

npm install -g ionic@latest

2. Connect your app to Ionic Pro

START A NEW APP

ionic start --pro-id YOUR_ID
cd test

OR : CONNECT EXISTING APP

ionic link --pro-id YOUR_ID

3. Push your code up to the dashboard!

git push ionic master

4. Add your own external Repository as the default origin (optional)

git remote add origin [YOUR_REPOSITORY_URL]
git push --set-upstream origin master

@timbru31 If we do that, then devs would need to log in to each app independently. The backends do not share authentication. I’m fine with this being a configurable option, but it would be a feature request.

If you have a mix of Cloud and Pro apps, you could use different global config files for each backend with the IONIC_CONFIG_DIRECTORY environment variable: https://github.com/ionic-team/ionic-cli#environment-variables

I apologize for how convoluted this is. The CLI has a unique problem of handling both these backends. It does not have the luxury of having two distinct websites (https://apps.ionic.io and https://dashboard.ionicjs.com).

@HugoHeneault No, we ended up only using git for now... :(

This is my first time using Ionic Pro. I followed docs but I’m still stuck with error. How were you able to upload your code to the Ionic Pro? Push from git-hub to Ionic Pro? It’ll be really helpful if you could explain the steps to deploy it to ionic cloud?