업로드된 릴리즈는 취소/제거 불가
업데이트는 한번 업로드 하면 제거할 수 없다.
하지만 잘못된 코드를 올렸을 경우 되돌릴 수 있어야 하는데, 그 때 사용하는 명령어가
rollback
명령어다.enable
속성을 false로 바꿀 순 있으나, 이미 버전을 다운로드 받은 유저를 되돌릴 수 있는 옵션은 아니다.롤백 명령어
롤백 명령어는 가장 최신버전으로 올라와있는 버전에서 그 이전 버전으로 되돌리는 코드를 가장 최신 업데이트로 새로 배포한다.
appcenter codepush rollback <ownerName>/<appName> <deploymentName> appcenter codepush rollback -a <ownerName>/MyApp-iOS Production
Executing this command creates a new release for the deployment that includes the exact same code and metadata as the version prior to the latest one. For example, imagine that you released the following updates to your app:

If you ran the
rollback
command on that deployment, a new release (v4
) would be created that included the contents of the v2
release.
End users that already acquired
v3
would now be "moved back" to v2
when the app does an update check. Additionally, any users that were still running v2
, and therefore, had never acquired v3
, wouldn't receive an update since they're already running the latest release (this is why our update check uses the package hash in addition to the release label).특정 버전을 명시해서 롤백 버전 만들기
If you want to roll back a deployment to a release other than the previous (for example,
v3
-> v2
), you can specify the optional --target-release
parameter:appcenter codepush rollback -a <ownerName>/MyApp-iOS Production --target-release v34
The release produced by a rollback will be annotated in the output of the
deployment history
command to help identify them more easily.