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

supabase / cli / 19699968033

26 Nov 2025 10:07AM UTC coverage: 54.995% (-0.4%) from 55.403%
19699968033

Pull #4368

github

web-flow
Merge b6a3e01eb into 6558d59e6
Pull Request #4368: feat: add deploy command to push all changes to linked project

45 of 181 new or added lines in 10 files covered. (24.86%)

15 existing lines in 2 files now uncovered.

6705 of 12192 relevant lines covered (55.0%)

6.2 hits per line

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

0.0
/cmd/status.go
1
package cmd
2

3
import (
4
        "fmt"
5
        "os"
6
        "os/signal"
7

8
        env "github.com/Netflix/go-env"
9
        "github.com/spf13/afero"
10
        "github.com/spf13/cobra"
11
        "github.com/supabase/cli/internal/status"
12
        "github.com/supabase/cli/internal/utils"
13
)
14

15
var (
16
        override         []string
17
        names            status.CustomName
18
        useLinkedProject bool
19

20
        statusCmd = &cobra.Command{
21
                GroupID: groupLocalDev,
22
                Use:     "status",
23
                Short:   "Show status of local Supabase containers or linked project",
24
                PreRunE: func(cmd *cobra.Command, args []string) error {
×
25
                        es, err := env.EnvironToEnvSet(override)
×
26
                        if err != nil {
×
27
                                return err
×
28
                        }
×
29
                        return env.Unmarshal(es, &names)
×
30
                },
31
                RunE: func(cmd *cobra.Command, args []string) error {
×
32
                        ctx, _ := signal.NotifyContext(cmd.Context(), os.Interrupt)
×
NEW
33
                        if useLinkedProject {
×
NEW
34
                                fmt.Fprintf(os.Stderr, "Project health check:\n")
×
NEW
35
                                return status.RunRemote(ctx, utils.OutputFormat.Value, afero.NewOsFs())
×
NEW
36
                        }
×
37
                        return status.Run(ctx, names, utils.OutputFormat.Value, afero.NewOsFs())
×
38
                },
39
                Example: `  supabase status -o env --override-name api.url=NEXT_PUBLIC_SUPABASE_URL
40
  supabase status -o json
41
  supabase status --linked`,
42
        }
43
)
44

45
func init() {
×
46
        flags := statusCmd.Flags()
×
47
        flags.StringSliceVar(&override, "override-name", []string{}, "Override specific variable names.")
×
NEW
48
        flags.BoolVar(&useLinkedProject, "linked", false, "Check health of linked project.")
×
49
        rootCmd.AddCommand(statusCmd)
×
50
}
×
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

© 2025 Coveralls, Inc