• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 21442698789

28 Jan 2026 02:43PM UTC coverage: 51.225% (-5.0%) from 56.176%
21442698789

Pull #4770

github

web-flow
Merge 0b92817a1 into 3fe548f00
Pull Request #4770: feat: add `supabase dev` command

8 of 1187 new or added lines in 10 files covered. (0.67%)

5 existing lines in 1 file now uncovered.

6857 of 13386 relevant lines covered (51.23%)

5.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/dev.go
1
package cmd
2

3
import (
4
        "github.com/spf13/afero"
5
        "github.com/spf13/cobra"
6
        "github.com/supabase/cli/internal/dev"
7
)
8

9
var devCmd = &cobra.Command{
10
        GroupID: groupLocalDev,
11
        Use:     "dev",
12
        Short:   "Start reactive development mode with multiple workflows",
13
        Long: `Start a development session that watches for file changes and
14
automatically applies them to your local environment.
15

16
WORKFLOWS:
17

18
  schemas   Watch schema files and auto-apply changes to local database
19
            Configure via [dev.schemas] in config.toml
20

21
  seed      Auto-run seeds on startup and when seed files change
22
            Configure via [dev.seed] in config.toml
23

24
  functions (coming soon) Watch and auto-deploy edge functions
25

26
The dev command starts the local database if not running, then enables
27
all configured workflows. Schema changes are applied directly without
28
creating migration files - use 'supabase db diff -f' when ready to commit.
29

30
CONFIGURATION:
31

32
  [dev.schemas]
33
  enabled = true                    # Enable schema workflow (default: true)
34
  watch = ["schemas/**/*.sql"]      # Glob patterns to watch
35
  on_change = ""                    # Custom command (e.g., "npx drizzle-kit push")
36
  types = "src/types/database.ts"   # Auto-generate TypeScript types
37

38
  [dev.seed]
39
  enabled = true                    # Enable seed workflow (default: true)
40
  on_change = ""                    # Custom command (e.g., "npx prisma db seed")
41

42
DEBUG LOGGING:
43

44
  DEBUG=supabase:dev:*        All dev logs
45
  DEBUG=supabase:dev:timing   Timing information
46
  DEBUG=supabase:dev:watcher  File watcher logs
47
  DEBUG=supabase:dev:sql      SQL statements being executed
48

49
Press Ctrl+C to stop the development session.`,
NEW
50
        RunE: func(cmd *cobra.Command, args []string) error {
×
NEW
51
                return dev.Run(cmd.Context(), afero.NewOsFs())
×
NEW
52
        },
×
53
}
54

NEW
55
func init() {
×
NEW
56
        rootCmd.AddCommand(devCmd)
×
NEW
57
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc