{"id":6995,"date":"2018-12-19T13:46:26","date_gmt":"2018-12-19T20:46:26","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vsappcenter\/?p=6995"},"modified":"2019-02-16T15:29:48","modified_gmt":"2019-02-16T22:29:48","slug":"cheers-to-new-codepush-features","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/appcenter\/cheers-to-new-codepush-features\/","title":{"rendered":"Cheers to New CodePush Features"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/3\/2019\/02\/2018-Holiday-series-01-1024x201.png\" alt=\"\" width=\"1024\" height=\"201\" class=\"aligncenter size-large wp-image-6675\" \/>\n&nbsp;\n&nbsp;\nAs we close out 2018, our team is still busy delivering useful new additions to Visual Studio App Center for you. Today, I\u2019ll be highlighting the addition of three all-new CodePush features: Install Metrics and Update Metadata in the App Center CLI, Deployment Management in the App Center Portal, and our re-try mechanism for CodePush rollbacks. <\/p>\n<p>All three of these features were heavily requested by you in the community, bringing a better experience to React Native developers end-to-end and ultimately make distributing releases via CodePush a more polished process for you. <\/p>\n<p>Here\u2019s more information on how you can improve your release flow with the newest CodePush features and how to get started.<\/p>\n<h2>Install Metrics and Update Metadata in the App Center CLI<\/h2>\n<p>We\u2019ve brought install metrics and update metadata to the App Center CLI, completing parity between the CodePush CLI and the App Center CLI. This feature enables you to see various statistics associated with your releases, such as version of the app, whether it\u2019s mandatory or not, release time, and who distributed a particular release. In addition, one can see how many users are actively running a specific release. To use this feature, simply run either the `appcenter codepush deployment list` or the ` appcenter codepush deployment history `commands in the App Center CLI. <\/p>\n<h2>Deployment Management in the App Center Portal<\/h2>\n<p>Today, you can now completely manage your deployments in the App Center Portal without needing to access commands associated with deployments in the CLI. Now. By navigating to the CodePush page within the Distribution service, you can add deployments, rename deployments, and delete deployments with the click of a button without ever leaving the App Center portal. \n&nbsp;\n&nbsp;\n<img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/3\/2019\/02\/Deployments-1024x649.png\" alt=\"\" width=\"1024\" height=\"649\" class=\"aligncenter size-large wp-image-7005\" \/>\n&nbsp;\n&nbsp;<\/p>\n<h2>Re-Try Mechanism for CodePush Rollbacks<\/h2>\n<p>The re-try mechanism for CodePush rollbacks was one of our biggest feature requests. With this feature, it\u2019s now possible to customize this flow in a way that can re-attempt previously unsuccessful updates. This allows users who are running older versions due to rollbacks an opportunity to now run the latest release. For example, you can set options like this:\n&nbsp;\n&nbsp;\n<img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/3\/2019\/02\/Capture.png\" alt=\"\" width=\"452\" height=\"411\" class=\"aligncenter size-full wp-image-7015\" \/>\n&nbsp;\n&nbsp;\nThen use one of the following options `App = CodePush(syncOptions)(App)`   or `CodePush.sync(syncOptions)`. The above code means that in the case of a rollback, the app will re-attempt to download the release in 1 hour after the rollback at maximum one more time. These numbers can be adjusted to best for your flow. This feature minimizes the time users spend on old versions and ensure your newly distributed code gets in the hands of your users. <\/p>\n<p>To get started with these features, simply <a href=\"https:\/\/appcenter.ms\/sign-in\" rel=\"noopener\" target=\"_blank\">log in to App Center<\/a> and\/or download the App Center CLI. We hope you\u2019re as excited about these features as we are. We appreciate your passion and great feedback this past year and look forward to another exciting year ahead with Code Push and App Center.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; As we close out 2018, our team is still busy delivering useful new additions to Visual Studio App Center for you. Today, I\u2019ll be highlighting the addition of three all-new CodePush features: Install Metrics and Update Metadata in the App Center CLI, Deployment Management in the App Center Portal, and our re-try mechanism [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":38034,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-6995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobiledev"],"acf":[],"blog_post_summary":"<p>&nbsp; &nbsp; As we close out 2018, our team is still busy delivering useful new additions to Visual Studio App Center for you. Today, I\u2019ll be highlighting the addition of three all-new CodePush features: Install Metrics and Update Metadata in the App Center CLI, Deployment Management in the App Center Portal, and our re-try mechanism [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/posts\/6995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/comments?post=6995"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/posts\/6995\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/media\/38034"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/media?parent=6995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/categories?post=6995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/appcenter\/wp-json\/wp\/v2\/tags?post=6995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}