{"_id":"56d1f33900a2a70b00b365a6","__v":0,"version":{"_id":"56d1f33700a2a70b00b3658e","project":"5526c95cf69851170038b48f","__v":2,"createdAt":"2016-02-27T19:04:23.946Z","releaseDate":"2016-02-27T19:04:23.946Z","categories":["56d1f33900a2a70b00b3658f","56d1f33900a2a70b00b36590","56d1f33900a2a70b00b36591","56d1f33900a2a70b00b36592","56d1f33900a2a70b00b36593","56d1f33900a2a70b00b36594","56d1f33900a2a70b00b36595","56d1f33900a2a70b00b36596","56d1f33900a2a70b00b36597","56d1f33900a2a70b00b36598","56d1f33900a2a70b00b36599","56d1f33900a2a70b00b3659a","571f9497ada30c34003b7cee"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"beta","version_clean":"2.0.0-beta","version":"2.0.0-beta"},"category":{"_id":"56d1f33900a2a70b00b36594","pages":["56d1f33900a2a70b00b3659b","56d1f33900a2a70b00b3659c","56d1f33900a2a70b00b3659d","56d1f33900a2a70b00b3659e","56d1f33900a2a70b00b3659f","56d1f33900a2a70b00b365a0","56d1f33900a2a70b00b365a1","56d1f33900a2a70b00b365a2","56d1f33900a2a70b00b365a3","56d1f33900a2a70b00b365a4","56d1f33900a2a70b00b365a5","56d1f33900a2a70b00b365a6","56d1f33900a2a70b00b365a7","56d1f33900a2a70b00b365a8","56d1f33900a2a70b00b365a9"],"__v":1,"project":"5526c95cf69851170038b48f","version":"56d1f33700a2a70b00b3658e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-10T15:43:37.809Z","from_sync":false,"order":4,"slug":"ionic-deploy","title":"Ionic Deploy"},"parentDoc":null,"project":"5526c95cf69851170038b48f","user":"5526d4bb4a7ac121004c605c","updates":["5536af5a5b5ec80d001e0c3f"],"next":{"pages":[],"description":""},"createdAt":"2015-04-10T18:28:36.839Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"App [uploads](doc:io-uploading) can be deployed using your app dashboard or deployed directly from the CLI while running `ionic upload` with the `--deploy` command.\n\nThe deploy dashboard can also be used to rollback to prior versions, edit upload notes, or set the [binary versions](doc:deploy-binary-versioning) for an upload.\n\n1. [Deploy Updates](#section-deploy-updates)\n2. [Rollback](#section-rollback)\n3. [Deploy with CLI](#section-deploy-using-the-cli)\n4. [Submitting to the App Store](#section-submitting-to-the-app-store)\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n## Deploy Updates\n\nTap **DEPLOY** to promote that specific version to currently selected [Deploy Channel](doc:deploy-channels). \n\nDepending on your app update process, users may be notified and your app updated with the latest code.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/WUDZh8QYRNaOKBvJQtgo_Screen%20Shot%202015-07-01%20at%208.43.11%20AM.png\",\n        \"Screen Shot 2015-07-01 at 8.43.11 AM.png\",\n        \"2350\",\n        \"852\",\n        \"#aa4a7f\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n## Rollback\n\nIf you've previously deployed a version and you want to rollback the current deploy to use the older deploy, just find the previous deploy in the dashboard and tap **Roll back to here**.\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]\n## Deploy using the CLI\n\nIf you know you're going to immediately deploy something you're about to upload, you can do both in a single step using the *--deploy* flag of the of `ionic upload` command.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ ionic upload --note \\\"Added blue header\\\" --deploy=production\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nThe *--deploy* flag takes a [channel tag](doc:deploy-channels#configure-channels) but will default to the *dev* channel if nothing is specified.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Ionic CLI Version\",\n  \"body\": \"The *--deploy* flag was added in the 1.6.3 version of the CLI.\"\n}\n[/block]\n## Submitting to the app store\n\nWhenever you submit a new version of your app to the App Store or Google Play store, you'll want to set the [Binary Version](doc:deploy-binary-versioning) of your latest deploy to match the app version you are submitting to the app stores.\n\nThis will prevent new app store updates (or new app installs) from thinking that there is a new deploy available immediately after installing or updating the app.\n\nRead more in the [Binary Versioning](doc:deploy-binary-versioning) docs.","excerpt":"Send out new code for your app.","slug":"deploy-deploying-updates","type":"basic","title":"Deploying Updates"}

Deploying Updates

Send out new code for your app.

App [uploads](doc:io-uploading) can be deployed using your app dashboard or deployed directly from the CLI while running `ionic upload` with the `--deploy` command. The deploy dashboard can also be used to rollback to prior versions, edit upload notes, or set the [binary versions](doc:deploy-binary-versioning) for an upload. 1. [Deploy Updates](#section-deploy-updates) 2. [Rollback](#section-rollback) 3. [Deploy with CLI](#section-deploy-using-the-cli) 4. [Submitting to the App Store](#section-submitting-to-the-app-store) [block:api-header] { "type": "basic" } [/block] ## Deploy Updates Tap **DEPLOY** to promote that specific version to currently selected [Deploy Channel](doc:deploy-channels). Depending on your app update process, users may be notified and your app updated with the latest code. [block:image] { "images": [ { "image": [ "https://files.readme.io/WUDZh8QYRNaOKBvJQtgo_Screen%20Shot%202015-07-01%20at%208.43.11%20AM.png", "Screen Shot 2015-07-01 at 8.43.11 AM.png", "2350", "852", "#aa4a7f", "" ] } ] } [/block] [block:api-header] { "type": "basic" } [/block] ## Rollback If you've previously deployed a version and you want to rollback the current deploy to use the older deploy, just find the previous deploy in the dashboard and tap **Roll back to here**. [block:api-header] { "type": "basic" } [/block] ## Deploy using the CLI If you know you're going to immediately deploy something you're about to upload, you can do both in a single step using the *--deploy* flag of the of `ionic upload` command. [block:code] { "codes": [ { "code": "$ ionic upload --note \"Added blue header\" --deploy=production", "language": "shell" } ] } [/block] The *--deploy* flag takes a [channel tag](doc:deploy-channels#configure-channels) but will default to the *dev* channel if nothing is specified. [block:callout] { "type": "info", "title": "Ionic CLI Version", "body": "The *--deploy* flag was added in the 1.6.3 version of the CLI." } [/block] ## Submitting to the app store Whenever you submit a new version of your app to the App Store or Google Play store, you'll want to set the [Binary Version](doc:deploy-binary-versioning) of your latest deploy to match the app version you are submitting to the app stores. This will prevent new app store updates (or new app installs) from thinking that there is a new deploy available immediately after installing or updating the app. Read more in the [Binary Versioning](doc:deploy-binary-versioning) docs.