# Quickstart (/docs/quickstart)



You need an Expo or bare React Native app in a GitHub repository, and Node.js 18.18 or newer.

<Steps>
  <Step>
    ### Sign in [#sign-in]

    ```sh
    npx liftbay login
    ```

    Sign in in the browser, or with a code sent to your email, right in the terminal. New to Liftbay? Your account is created when you sign in for the first time. You can also skip this step: `liftbay init` signs you in when needed. In CI, set `LIFTBAY_TOKEN` to an organization API token instead.
  </Step>

  <Step>
    ### Set up your app [#set-up-your-app]

    Run this in your app's folder:

    ```sh
    npx liftbay init
    ```

    It walks you through:

    * creating your organization if this is a new account,
    * linking the app to a Liftbay project (created if needed),
    * build profiles `development`, `preview` and `production` in `liftbay.json`, with an environment for each,
    * the build workflow, written to `.github/workflows/liftbay.yml`,
    * over-the-air updates: `expo-updates`, the `@liftbay/expo-plugin` config plugin and a channel per profile.

    If the app has an `eas.json`, its build profiles and their `env` are imported too. Add any other variables your app needs, for example from your `.env` files:

    ```sh
    npx liftbay env import .env.production .env.preview
    ```

    At the end, `init` checks GitHub. If the Liftbay GitHub App isn't installed for your repository, it opens the install page and follows along until it's linked.

    The first `liftbay build` offers to commit the setup (`liftbay.json`, `app.json`, the workflow) and push your branch. The workflow doesn't have to be on your default branch: you can try Liftbay on a branch of its own.
  </Step>

  <Step>
    ### Connect GitHub [#connect-github]

    In the dashboard, open **GitHub** and click **Connect a GitHub account**. Install the Liftbay app on the account that owns the repo, choosing just that repository if you like.

    If you didn't push the workflow yourself, open the project's **Settings** and click **Propose workflow**: Liftbay opens a pull request that adds it. Merge it into every branch you want to build.
  </Step>

  <Step>
    ### Build [#build]

    ```sh
    npx liftbay build --platform android --profile preview
    ```

    The CLI queues the build, Liftbay starts the workflow on your GitHub Actions, and the logs stream to your terminal and the dashboard. The first Android build generates your upload key.
  </Step>

  <Step>
    ### Sign iOS builds [#sign-ios-builds]

    ```sh
    npx liftbay credentials ios
    ```

    Sign in with your Apple ID (two-factor code included). Liftbay creates the distribution certificate and a profile for the app and each extension. Until then, iOS builds are simulator builds. See [iOS signing](/docs/builds/ios-signing).
  </Step>

  <Step>
    ### Ship an update [#ship-an-update]

    Install a build that includes `expo-updates`, change some JavaScript, then:

    ```sh
    npx liftbay update publish --channel production
    ```

    Devices on that channel and runtime version get it on their next launch. [Roll it out gradually](/docs/updates/rollouts) or roll it back with one command.
  </Step>
</Steps>
