1--- 2title: Getting started 3--- 4 5import { Terminal } from '~/ui/components/Snippet'; 6import { Step } from '~/ui/components/Step'; 7 8Setting up EAS Update allows you to push critical bug fixes and improvements that your users need right away. 9 10## Prerequisites 11 12EAS Update requires the following versions or greater: 13 14- EAS CLI >= 0.50.0 15- Expo SDK >= 45.0.0 16- expo-updates >= 0.13.0 17 18<Step label="1"> 19## Install the latest EAS CLI 20 21EAS CLI is the command-line app that you will use to interact with EAS services from your terminal. To install it, run the command: 22 23<Terminal cmd={['$ npm install --global eas-cli']} /> 24 25You can also use the above command to check if a new version of EAS CLI is available. We encourage you to always stay up to date with the latest version. 26 27> We recommend using `npm` instead of `yarn` for global package installations. You may alternatively use `npx eas-cli`, just remember to use that instead of `eas` whenever it's called for in the documentation. 28</Step> 29 30<Step label="2"> 31## Create a project 32 33Create a project by running: 34 35<Terminal cmd={['$ npx create-expo-app']} /> 36</Step> 37 38<Step label="3"> 39## Configure your project 40 41To configure your project, run the following commands in the order they are specified: 42 43<Terminal 44 cmd={[ 45 '# Install the latest `expo-updates` library', 46 '$ npx expo install expo-updates', 47 '', 48 '# Initialize your project with EAS Update', 49 '$ eas update:configure', 50 '', 51 '# Set up the configuration file for builds', 52 '$ eas build:configure', 53 ]} 54 cmdCopy="expo install expo-updates && eas update:configure && eas build:configure" 55/> 56 57After running these commands, **eas.json** file will be created in the root directory of your project. 58 59Inside the `preview` and `production` build profiles in **eas.json**, add a `channel` property for each: 60 61```json eas.json 62{ 63 "build": { 64 "preview": { 65 "channel": "preview" 66 // ... 67 }, 68 "production": { 69 "channel": "production" 70 // ... 71 } 72 } 73} 74``` 75 76The `channel` allows you to point updates at builds. For example, if we set up a GitHub Action to publish changes on merge, it will make it so that we can merge code into the "production" Git branch. Then, each commit will trigger a GitHub Action that will publish an update that will be available to builds with the channel "production". 77 78> **Optional**: If your project is a bare React Native project, see [Updating bare app](/bare/updating-your-app) for any additional configuration. 79</Step> 80 81<Step label="4"> 82## Create a build for the project 83 84Next, we'll need to create a build for Android or iOS. [Learn more](/build/setup). 85 86We recommend creating a build with the `preview` build profile first. [Learn more](/build/internal-distribution) about setting up your devices for internal distribution. 87 88Once you have a build running on your device or in a simulator, we'll be ready to send it an update. 89</Step> 90 91<Step label="5"> 92## Make changes locally 93 94Once we've created a build, we're ready to iterate on our project. Start a local development server with: 95 96<Terminal cmd={['$ npx expo start']} /> 97 98Then, make any desired changes to your project's JavaScript, styling, or image assets. 99</Step> 100 101<Step label="6"> 102## Publish an update 103 104Now we're ready to publish an update to the build created in the previous step. 105 106Then publish an update with the following command: 107 108<Terminal 109 cmd={[ 110 '$ eas update --branch [branch] --message [message]', 111 '', 112 '# Example', 113 '$ eas update --branch preview --message "Updating the app"', 114 ]} 115 cmdCopy={null} 116/> 117 118Once the update is built and uploaded to EAS and the command completes, force close and reopen your app up to two times to download and view the update. 119</Step> 120 121## Next steps 122 123You can publish updates continuously with GitHub Actions. Learn more: [Using GitHub Actions with EAS Update](/eas-update/github-actions) 124