microsoft / code-push

A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
https://microsoft.github.io/code-push/
Other
4.34k stars 484 forks source link

Select multiple labels when patching releases #803

Closed yasircodingcrafts closed 1 year ago

yasircodingcrafts commented 1 year ago

Hi

I want to use the appcenter-cli to disable all previous releases for a specific version so when the user first install an app they see no updates.

I searched around and found this issue https://github.com/microsoft/code-push/issues/571 and it's marked closed now that's why I have created a new one as I can't comment.

I have tried this command

appcenter codepush patch -a <owner-name>/<app-name> <deployment-name> -t <versions> -x

but it only disables the latest one, so I tried this

appcenter codepush patch -a <owner-name>/<app-name> <deployment-name> -t <versions> -x -l <label-name>

it does disable the previous or whatever you mentioned but I can do it for multiple or if given a range for example I tried the following

appcenter codepush patch -a <owner-name>/<app-name> <deployment-name> -t <versions> -x -l "<start-label-name> - <end-label-name>"

Any way to achieve it?

PS: I know I can push the latest code so that the user is up-to-date but I wanna avoid that, and there are more than 20 releases already and I was wondering if there is way to do it by one command.

ghost commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.