cli
cli copied to clipboard
Add Custom Config File Support
Add Custom Config File Support
Introduces a new --config-file flag to the Supabase CLI, enabling users to specify alternative configuration files. This enhancement allows running multiple parallel local development environments with different configurations (https://github.com/supabase/cli/issues/2139).
Example Usage
supabase start --config-file=supabase/config.test.toml
Benefits
- Supports multiple local database instances with different configurations
- Simplifies management of different environment setups (e.g., testing, staging)
- Maintains backwards compatibility with default config path
Pull Request Test Coverage Report for Build 13083225214
Details
- 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
- 7 unchanged lines in 2 files lost coverage.
- Overall coverage decreased (-0.05%) to 58.128%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| internal/utils/flags/config_path.go | 0 | 6 | 0.0% |
| <!-- | Total: | 0 | 6 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| internal/storage/rm/rm.go | 2 | 89.53% |
| internal/gen/keys/keys.go | 5 | 12.9% |
| <!-- | Total: | 7 |
| Totals | |
|---|---|
| Change from base Build 13077628442: | -0.05% |
| Covered Lines: | 7609 |
| Relevant Lines: | 13090 |
💛 - Coveralls
Generally agree to add this functionality. However, the current implementation doesn't handle changing workdir based on the given config path.
Thanks for the feedback! I think I have addressed the issues with my latest changes.