3

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.

nits
  • 115
  • 8

2 Answers2

6

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 )

nits
  • 115
  • 8
  • This is a necessary setup in the walkthrough guide, I don't know why this is not included in the docs for setting up codepush. – Usman Kazmi Jul 26 '21 at 05:28
2

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

Titan
  • 5,567
  • 9
  • 55
  • 90