supabase-plus
π Extra tools for managing Supabase projects β going beyond the regular Supabase CLI.
supabase-plus (spb) is a command-line utility that extends the official Supabase CLI with additional project management capabilities
βΈ»
π€ Features
π Stop any running Supabase project with a single command πͺ£ Create migration files for creating new buckets via an interactive CLI π Self-upgrade capability through cargo π¨βπ» Shell completion support β―οΈ Works alongside existing Supabase CLI
βΈ»
π¦ Installation
Install from crates.io using cargo:
After installation, the spb command will be available in your terminal.
βΈ»
π§ͺ Usage
Stop Any Running Project
Quickly stop all running Supabase projects:
This command will:
- Scan for running Supabase Docker containers
- Identify project IDs
- Stop each detected project using the official Supabase CLI (in theory there might be only one supabase project running but sometimes single containers from other projects haunt the docker runtime if the project hasn't been stopped properly)
This way you're gaining an ability to stop any running Supabase project with a single command without the need of:
- Figuring out what other project is running
- Navigating to its directory (or finding its slug) to stop it
Create Storage Buckets
Interactively create new storage buckets with automatic migration generation:
This command will:
- Guide you through bucket configuration with an interactive prompt
- Set bucket name/slug
- Configure visibility (public/private)
- Optionally set MIME type restrictions by file extension
- Generate a timestamped migration file in
supabase/migrations/ - Optionally apply the migration immediately to your local database (so it might be your main workflow for new buckets given that buckets are stored as records in
"storage"."buckets"andsupabase db diffonly compares schemas ignorging data entirely)
Self-Update
Keep your installation up to date:
Shell Completions
Generate shell completions for your preferred shell:
# For zsh it tries to write a completion script to ~/.zsh/completion/_spb path by default in future
# there might be an option to automatically write the script for other shells too
# If you want to get the completion script just printed you can pass `-n` flag
βΈ»
π οΈ Requirements
- docker socket: Properly working
/var/run/docker.sockon Unix-based systems and\\.\pipe\docker_engineon Windows - npx: For running
supabaseCLI commands when needed (in the future there will be an option of customising the source of this command), it usually comes with Node.js installation - cargo: For installation and self-updates
βΈ»
π Repo & Contributions
π οΈ Repo: https://github.com/dsplce-co/supabase-plus π¦ Crate: https://crates.io/crates/supabase-plus
PRs welcome, feel free to contribute
βΈ»
π License
MIT or Apache-2.0, at your option.