Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add --all flag to stop command #2672

Merged

Conversation

avallete
Copy link
Member

What kind of change does this PR introduce?

This PR introduces a new feature to the Supabase CLI that allows users to stop all local Supabase instances across different projects with a single command via a --all flag.

What is the current behavior?

Currently, users can only stop Supabase instances for individual projects. When working with multiple projects, developers need to manually navigate to each project directory and stop the instances one by one. This can be time-consuming and may lead to forgotten running instances that consume system resources.

Closes #2104

What is the new behavior?

This PR adds a new --all flag to the supabase stop command. When used, it stops all local Supabase instances across all projects on the machine.

Additional context

Add any other context or screenshots.

Add a --all flag to stop command to stop all services/volumes of all projects on the machine
@avallete avallete requested a review from a team as a code owner September 11, 2024 09:32
@coveralls
Copy link

coveralls commented Sep 11, 2024

Pull Request Test Coverage Report for Build 10848254914

Details

  • 34 of 36 (94.44%) changed or added relevant lines in 6 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 60.037%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/stop.go 2 3 66.67%
internal/start/start.go 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 10843473595: 0.02%
Covered Lines: 6409
Relevant Lines: 10675

💛 - Coveralls

internal/stop/stop.go Outdated Show resolved Hide resolved
internal/stop/stop.go Outdated Show resolved Hide resolved
@sweatybridge sweatybridge enabled auto-merge (squash) September 13, 2024 11:26
@sweatybridge sweatybridge merged commit 92669a8 into supabase:develop Sep 13, 2024
8 checks passed
@github-actions github-actions bot mentioned this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we get a supabase stop --all to stop all running local projects [Feature request]
3 participants