code-push: How to find deployment keys for the app added from appcenter website ( add new app option )

2.3k Views Asked by At

I added a react-native android app using the Add new app option on appcenter website. Now i need to find the deployment keys for the same. I tried
code-push deployment list YourAppName --displayKeys
but it didnt return keys.

Although when I add the app using CLI code-push app add YourAppName android react-native
and then retrieve the keys using earlier command it works fine and gives both staging and pro keys.

Please somebody explain this.

Thanks.

2

There are 2 best solutions below

1
On

this worked -
appcenter codepush deployment add -a {User_Name}/{App_Name} Production
appcenter codepush deployment add -a {User_Name}/{App_Name} Staging

Note : Make sure appcenter is installed ( sudo npm instal -g appcenter-cli )

0
On

appcenter codepush deployment list -a username/appname --displayKeys works for me