---
title: "Set up Supabase for every Expo environment in one command"
description: "Expo has built a Supabase integration into the EAS CLI that creates a Supabase project, installs the SDK, and writes keys to every Expo environment with a single command. The integration gives each Expo environment its own Supabase project, so preview builds never touch production data. Supabase Security and Performance Advisors run from the CLI, and their findings appear in the Expo build dashboard for connected projects. Every command runs without prompts and returns JSON, enabling agent-driven workflows for scaffolding and maintenance. The project created by the CLI includes Auth, Storage, Realtime, and Edge Functions, making features like sign-in, file uploads, and push notifications a configuration step away."
---

# Set up Supabase for every Expo environment in one command

[Supabase](https://yomu.fyi/company/supabase) · grant\_huston, tyler\_shukert, shaziya\_bandukia, elsa\_heffernan · Nov 10, 2026

**Type:** Announcement

## Summary

Expo has built a Supabase integration into the EAS CLI that creates a Supabase project, installs the SDK, and writes keys to every Expo environment with a single command. The integration gives each Expo environment its own Supabase project, so preview builds never touch production data. Supabase Security and Performance Advisors run from the CLI, and their findings appear in the Expo build dashboard for connected projects. Every command runs without prompts and returns JSON, enabling agent-driven workflows for scaffolding and maintenance. The project created by the CLI includes Auth, Storage, Realtime, and Edge Functions, making features like sign-in, file uploads, and push notifications a configuration step away.

## Approach / What changed

The Expo team built a CLI integration that runs eas integrations:supabase:connect in an Expo project. The command authorizes a Supabase account, creates a Supabase project, installs the SDK, and writes the keys into every Expo environment (Production, Preview, Development) in one pass. The --environment preview flag creates a separate Supabase project for preview builds. The integration also runs Supabase Security and Performance Advisors from the CLI, surfacing findings in the Expo build dashboard. Every command runs without prompts and returns JSON, enabling agent-driven workflows.

## Takeaways

- Running eas integrations:supabase:connect creates a Supabase project, installs the SDK, and writes keys to every Expo environment in one step.
- The --environment preview flag gives preview builds their own Supabase project, isolating preview data from production data.
- Supabase Security and Performance Advisors run from the EAS CLI, and their findings appear in the Expo build dashboard for connected projects.

## FAQ

### How do I connect Supabase to my Expo project?

Run \`eas integrations:supabase:connect\` in an Expo project. The command creates a Supabase project, installs the SDK, and writes the keys to every Expo environment automatically.

### Can preview builds use a separate database?

Add the \`--environment preview\` flag. This creates a separate Supabase project for preview builds, so preview data is isolated from production data.

### Does the integration surface security issues?

Yes. The integration runs Supabase Security and Performance Advisors from the EAS CLI, and their findings appear in the Expo build dashboard for connected projects.

**Tags:** [CI/CD](https://yomu.fyi/topic/ci-cd), [CLI](https://yomu.fyi/topic/cli), [Expo](https://yomu.fyi/topic/expo), [React Native](https://yomu.fyi/topic/react-native), [Supabase](https://yomu.fyi/topic/supabase)

- Source: [Supabase](https://supabase.com/blog/set-up-supabase-for-every-expo-environment-in-one-command)
- Source URL: https://supabase.com/blog/set-up-supabase-for-every-expo-environment-in-one-command
- Ingested by Yomu: 2026-11-10T18:01:10.999Z

[Read original post](https://supabase.com/blog/set-up-supabase-for-every-expo-environment-in-one-command)
